We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b3684 commit 296f1d8Copy full SHA for 296f1d8
shared/src/commonMain/kotlin/com/llamatik/app/platform/Helper.kt
@@ -11,11 +11,14 @@ fun initKoin() {
11
modules(appModule())
12
}
13
14
+ // Bind ReviewRequestManager into ReviewEntryPoint after Koin is started.
15
bindReviewEntryPointToKoin()
16
17
-fun bindReviewEntryPointToKoin() {
18
- val koin = KoinPlatformTools.defaultContext().get()
19
- val manager = koin.get<ReviewRequestManager>()
20
- ReviewEntryPoint.setManager(manager)
+private fun bindReviewEntryPointToKoin() {
+ runCatching {
+ val koin = KoinPlatformTools.defaultContext().get()
21
+ val manager = koin.get<ReviewRequestManager>()
22
+ ReviewEntryPoint.setManager(manager)
23
+ }
24
0 commit comments