Skip to content

Froyder/kmp-inapp-review

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KMP In-App Review

Maven Central License

A Kotlin Multiplatform library that wraps the native in-app review APIs for Android and iOS under a unified, coroutine-friendly interface.

  • Android: Google Play In-App Review API
  • iOS: SKStoreReviewController
  • Unified API: single requestReview() call from shared code

Installation

// build.gradle.kts
commonMain.dependencies {
    implementation("io.github.froyder:kmp-inapp-review:1.0.0")
}

Usage

Create a platform-specific instance once, at app startup:

// Android
val reviewManager = ReviewManager(activity)

// iOS
val reviewManager = ReviewManager()

Then call from shared commonMain code — identical for both platforms:

viewModelScope.launch {
    try {
        reviewManager.requestReview()
    } catch (e: Exception) {
        // handle error
    }
}

Important notes

  • Neither platform guarantees the dialog will be shown
  • Android rate-limits via Google Play; iOS rate-limits to 3 times per year
  • The library contract is "flow completed without error", not "dialog was shown"

Platform support

Platform Minimum version
Android API 21
iOS iOS 16

License

Apache 2.0

About

A Kotlin Multiplatform library that wraps Google Play In-App Review (Android) and SKStoreReviewController (iOS) under a unified coroutine-friendly API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages