pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.
https://pub.dev/packages/flutter_braintree
MIT License
64 stars 115 forks source link

Play Store has given a warning about the (com.google.android.gms:play-services-maps) being 16.0.0 #143

Closed BunnyBuddy closed 7 months ago

BunnyBuddy commented 8 months ago

We're using this Braintree sdk in our app for a long time and now today when I published an update on PlayStore it gave me a warning,

Warning
The developer of Maps SDK for Android (com.google.android.gms:play-services-maps) has reported version 16.0.0 as outdated. After 90 days from releasing this version of your app, you won't be able to release new versions which contain this SDK until you upgrade to a newer version (17.0.0+).
Learn more about the SDKs that you're using and make informed SDK choices with [Google Play SDK Index](https://play.google.com/sdks).
FLUTTER DOCTOR:
[✓] Flutter (Channel stable, 2.10.4, on macOS 12.6.8 21G725 darwin-x64, locale en-PK) • Flutter version 2.10.4 at /Users/macbookpro/src/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision c860cba910 (1 year, 7 months ago), 2022-03-25 00:23:12 -0500 • Engine revision 57d3bac3dd • Dart version 2.16.2 • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/macbookpro/Library/Android/sdk • Platform android-34, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.10.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

What do I do now?

BunnyBuddy commented 8 months ago

The line I think that causes the issue is in android/build/ivy.xml,

<dependency org="com.google.android.gms" name="play-services-maps" rev="16.0.0" transitive="false" conf="releaseCompileClasspath-&gt;default"/>

BunnyBuddy commented 7 months ago

Okay, I've updated the versions in the respective files to 17.0.0 and it worked.