diff --git a/core-base/platform/src/commonMain/kotlin/template/core/base/platform/LocalManagerProviders.kt b/core-base/platform/src/commonMain/kotlin/template/core/base/platform/LocalManagerProviders.kt index b392d29d6..a292ebcf4 100644 --- a/core-base/platform/src/commonMain/kotlin/template/core/base/platform/LocalManagerProviders.kt +++ b/core-base/platform/src/commonMain/kotlin/template/core/base/platform/LocalManagerProviders.kt @@ -42,7 +42,7 @@ expect fun LocalManagerProvider( * Provides access to the app review manager throughout the app. */ val LocalAppReviewManager: ProvidableCompositionLocal = compositionLocalOf { - error("CompositionLocal AppReviewManager not present") + NoOpAppReviewManager } /** @@ -58,3 +58,8 @@ val LocalIntentManager: ProvidableCompositionLocal = compositionL val LocalAppUpdateManager: ProvidableCompositionLocal = compositionLocalOf { error("CompositionLocal LocalAppUpdateManager not present") } + +object NoOpAppReviewManager : AppReviewManager { + override fun promptForReview() = Unit + override fun promptForCustomReview() = Unit +}