app_review icon indicating copy to clipboard operation
app_review copied to clipboard

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

Open jonas2808 opened this issue 1 year ago • 5 comments

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

jonas2808 avatar Jun 19 '24 05:06 jonas2808

Same issue.

1394813277 avatar Jun 20 '24 09:06 1394813277

same for me

ambr89 avatar Jun 21 '24 13:06 ambr89

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'
}

filiph avatar Jun 21 '24 13:06 filiph

You can temporarily use my repository:

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

honzasima avatar Jun 24 '24 08:06 honzasima

Following

chriscarman-mp avatar Aug 09 '24 09:08 chriscarman-mp