fluttercommunity / app_review

App Review - Request and Write Reviews and Open Store Listing for Android and iOS in Flutter. Maintainer: @rodydavis
https://fluttercommunity.github.io/app_review/
MIT License
329 stars 108 forks source link

Upgrade com.google.android.play:core for Android 14 Google target #91

Open jonas2808 opened 1 week ago

jonas2808 commented 1 week ago

For apps targeting Android 14 and using app_review plugin, the Google Play Console API is sending warnings to migrate com.google.android.play:core like in the tutorial: https://developer.android.com/guide/playcore?hl=de#playcore-migration

https://github.com/fluttercommunity/app_review/blob/master/android/build.gradle#L38

1394813277 commented 1 week ago

Same issue.

ambr89 commented 1 week ago

same for me

filiph commented 1 week ago

FWIW, here's the migration steps as I understand them, in case it's helpful:

Step 1

Replace play.core.tasks with gms.tasks in these import lines

import com.google.android.play.core.tasks.OnCompleteListener;
import com.google.android.play.core.tasks.Task;

Step 2

Depend on the newly separate Play in-app review library in android/build.gradle (here?).

dependencies {
    // This dependency is downloaded from the [Google’s Maven repository](https://developer.android.com/studio/build/dependencies#google-maven).
    // Make sure you also include that repository in your project's build.gradle file.
    implementation 'com.google.android.play:review:2.0.1'
}
honzasima commented 1 week ago

You can temporarily use my repository:

dependency_overrides:
  app_review:
    git:
      url: https://github.com/honzasima/app_review.git
      ref: updated_play_core