Skip to content

Add in-app review for Play Store variants#236

Merged
yogeshpaliyal merged 5 commits intomasterfrom
copilot/add-in-app-review-play-store
Oct 25, 2025
Merged

Add in-app review for Play Store variants#236
yogeshpaliyal merged 5 commits intomasterfrom
copilot/add-in-app-review-play-store

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 25, 2025

Implements Google Play In-App Review API for freePlaystore and pro variants while preserving existing Play Store redirect for free variant.

Changes

  • Dependencies: Added play-core:1.10.3 to freePlaystore and pro flavor configurations
  • Architecture: Introduced ReviewManager interface with variant-specific implementations:
    • PlayStoreReviewManager (main): Opens Play Store listing
    • InAppReviewManager (proFreePlaystore): Triggers in-app review flow
    • ReviewManagerFactory: Returns correct implementation per build variant via source set override
  • DI: Registered ReviewManager in Koin module
  • UI: Settings "Rate & Review" button now calls viewModel.requestReview() instead of direct Play Store intent

Implementation

// Interface in main source set
interface ReviewManager {
    fun requestReview(activity: Activity)
}

// proFreePlaystore source set overrides factory
object ReviewManagerFactory {
    fun create(): ReviewManager = InAppReviewManager()
}

// In Settings.kt
onClick = { viewModel.requestReview(context as MainActivity) }

Leverages existing proFreePlaystore source set shared by both freePlaystore and pro flavors per build configuration.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.13-bin/5xuhj0ry160q40clulazy9h7d/gradle-8.13/lib/gradle-daemon-main-8.13.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.13-bin/5xuhj0ry160q40clulazy9h7d/gradle-8.13/lib/agents/gradle-instrumentation-agent-8.13.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.13 (dns block)
    • Triggering command: curl -s -I REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add In app Review in Play Store variant</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: yogeshpaliyal <9381846+yogeshpaliyal@users.noreply.github.com>
Copilot AI changed the title [WIP] Add in-app review feature for Play Store variant Add in-app review for Play Store variants Oct 25, 2025
Copilot AI requested a review from yogeshpaliyal October 25, 2025 02:46
@yogeshpaliyal yogeshpaliyal marked this pull request as ready for review October 25, 2025 13:44
@yogeshpaliyal yogeshpaliyal merged commit a42c8b9 into master Oct 25, 2025
1 check passed
@yogeshpaliyal yogeshpaliyal deleted the copilot/add-in-app-review-play-store branch October 25, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add In app Review in Play Store variant

2 participants