Skip to content

Commit 296f1d8

Browse files
authored
Collect reviews feature (#62)
* Added Reviews Requester feature * Handled koin injection * corrected injection on ios * corrected injection on ios
1 parent 93b3684 commit 296f1d8

File tree

1 file changed

+7
-4
lines changed
  • shared/src/commonMain/kotlin/com/llamatik/app/platform

1 file changed

+7
-4
lines changed

shared/src/commonMain/kotlin/com/llamatik/app/platform/Helper.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ fun initKoin() {
1111
modules(appModule())
1212
}
1313

14+
// Bind ReviewRequestManager into ReviewEntryPoint after Koin is started.
1415
bindReviewEntryPointToKoin()
1516
}
1617

17-
fun bindReviewEntryPointToKoin() {
18-
val koin = KoinPlatformTools.defaultContext().get()
19-
val manager = koin.get<ReviewRequestManager>()
20-
ReviewEntryPoint.setManager(manager)
18+
private fun bindReviewEntryPointToKoin() {
19+
runCatching {
20+
val koin = KoinPlatformTools.defaultContext().get()
21+
val manager = koin.get<ReviewRequestManager>()
22+
ReviewEntryPoint.setManager(manager)
23+
}
2124
}

0 commit comments

Comments
 (0)