fix(core-base/platform): prevent crash on Profile tab tap (#3073)

This commit is contained in:
Kartikey Shukla 2026-01-17 14:03:23 +05:30 committed by GitHub
parent c5e270b2f0
commit 37b6bd9aa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ expect fun LocalManagerProvider(
* Provides access to the app review manager throughout the app.
*/
val LocalAppReviewManager: ProvidableCompositionLocal<AppReviewManager> = compositionLocalOf {
error("CompositionLocal AppReviewManager not present")
NoOpAppReviewManager
}
/**
@ -58,3 +58,8 @@ val LocalIntentManager: ProvidableCompositionLocal<IntentManager> = compositionL
val LocalAppUpdateManager: ProvidableCompositionLocal<AppUpdateManager> = compositionLocalOf {
error("CompositionLocal LocalAppUpdateManager not present")
}
object NoOpAppReviewManager : AppReviewManager {
override fun promptForReview() = Unit
override fun promptForCustomReview() = Unit
}