From cd9b8f30cf6a7ec7b8ec64c2ea032a8acfbd5a2e Mon Sep 17 00:00:00 2001 From: Michael Klimushyn Date: Thu, 7 Feb 2019 17:26:49 -0800 Subject: [PATCH] Add a gradle warning to the AndroidX plugins (#1138) This warning is only printed once per plugin on build failure. flutter/flutter#27106 --- packages/android_alarm_manager/CHANGELOG.md | 6 ++++++ .../android_alarm_manager/android/build.gradle | 13 +++++++++++++ packages/android_alarm_manager/pubspec.yaml | 2 +- packages/android_intent/CHANGELOG.md | 5 +++++ packages/android_intent/android/build.gradle | 13 +++++++++++++ packages/android_intent/pubspec.yaml | 2 +- packages/battery/CHANGELOG.md | 5 +++++ packages/battery/android/build.gradle | 13 +++++++++++++ packages/battery/pubspec.yaml | 2 +- packages/camera/CHANGELOG.md | 5 +++++ packages/camera/android/build.gradle | 13 +++++++++++++ packages/camera/pubspec.yaml | 2 +- packages/cloud_firestore/CHANGELOG.md | 6 ++++++ packages/cloud_firestore/android/build.gradle | 13 +++++++++++++ packages/cloud_firestore/pubspec.yaml | 2 +- packages/cloud_functions/CHANGELOG.md | 6 ++++++ packages/cloud_functions/android/build.gradle | 13 +++++++++++++ packages/cloud_functions/pubspec.yaml | 2 +- packages/connectivity/CHANGELOG.md | 5 +++++ packages/connectivity/android/build.gradle | 13 +++++++++++++ packages/connectivity/pubspec.yaml | 2 +- packages/device_info/CHANGELOG.md | 5 +++++ packages/device_info/android/build.gradle | 13 +++++++++++++ packages/device_info/pubspec.yaml | 2 +- packages/firebase_admob/CHANGELOG.md | 6 ++++++ packages/firebase_admob/android/build.gradle | 13 +++++++++++++ packages/firebase_admob/pubspec.yaml | 2 +- packages/firebase_analytics/CHANGELOG.md | 5 +++++ packages/firebase_analytics/android/build.gradle | 13 +++++++++++++ packages/firebase_analytics/pubspec.yaml | 2 +- packages/firebase_auth/CHANGELOG.md | 5 +++++ packages/firebase_auth/android/build.gradle | 14 ++++++++++++++ packages/firebase_auth/example/pubspec.yaml | 2 +- packages/firebase_auth/pubspec.yaml | 2 +- packages/firebase_core/CHANGELOG.md | 5 +++++ packages/firebase_core/android/build.gradle | 13 +++++++++++++ packages/firebase_core/pubspec.yaml | 2 +- packages/firebase_database/CHANGELOG.md | 5 +++++ packages/firebase_database/android/build.gradle | 13 +++++++++++++ packages/firebase_database/pubspec.yaml | 2 +- packages/firebase_dynamic_links/CHANGELOG.md | 6 ++++++ .../firebase_dynamic_links/android/build.gradle | 13 +++++++++++++ packages/firebase_dynamic_links/pubspec.yaml | 2 +- packages/firebase_messaging/CHANGELOG.md | 5 +++++ packages/firebase_messaging/android/build.gradle | 13 +++++++++++++ packages/firebase_messaging/pubspec.yaml | 2 +- packages/firebase_ml_vision/CHANGELOG.md | 7 ++++++- packages/firebase_ml_vision/android/build.gradle | 14 +++++++++++++- packages/firebase_ml_vision/pubspec.yaml | 2 +- packages/firebase_performance/CHANGELOG.md | 6 ++++++ .../firebase_performance/android/build.gradle | 13 +++++++++++++ packages/firebase_performance/pubspec.yaml | 2 +- packages/firebase_remote_config/CHANGELOG.md | 6 ++++++ .../firebase_remote_config/android/build.gradle | 13 +++++++++++++ packages/firebase_remote_config/pubspec.yaml | 2 +- packages/firebase_storage/CHANGELOG.md | 5 +++++ packages/firebase_storage/android/build.gradle | 13 +++++++++++++ packages/firebase_storage/pubspec.yaml | 2 +- packages/google_maps_flutter/CHANGELOG.md | 5 +++++ packages/google_maps_flutter/android/build.gradle | 13 +++++++++++++ packages/google_maps_flutter/pubspec.yaml | 2 +- packages/google_sign_in/CHANGELOG.md | 5 +++++ packages/google_sign_in/android/build.gradle | 13 +++++++++++++ packages/google_sign_in/pubspec.yaml | 2 +- packages/image_picker/CHANGELOG.md | 5 +++++ packages/image_picker/android/build.gradle | 13 +++++++++++++ packages/image_picker/pubspec.yaml | 2 +- packages/in_app_purchase/android/build.gradle | 13 +++++++++++++ packages/local_auth/CHANGELOG.md | 5 +++++ packages/local_auth/android/build.gradle | 13 +++++++++++++ packages/local_auth/pubspec.yaml | 2 +- packages/location_background/CHANGELOG.md | 5 +++++ packages/location_background/android/build.gradle | 13 +++++++++++++ packages/location_background/pubspec.yaml | 2 +- packages/package_info/CHANGELOG.md | 5 +++++ packages/package_info/android/build.gradle | 13 +++++++++++++ packages/package_info/pubspec.yaml | 2 +- packages/path_provider/CHANGELOG.md | 5 +++++ packages/path_provider/android/build.gradle | 13 +++++++++++++ packages/path_provider/pubspec.yaml | 2 +- packages/quick_actions/CHANGELOG.md | 5 +++++ packages/quick_actions/android/build.gradle | 13 +++++++++++++ packages/quick_actions/pubspec.yaml | 2 +- packages/sensors/CHANGELOG.md | 5 +++++ packages/sensors/android/build.gradle | 13 +++++++++++++ packages/sensors/pubspec.yaml | 2 +- packages/share/CHANGELOG.md | 5 +++++ packages/share/android/build.gradle | 13 +++++++++++++ packages/share/pubspec.yaml | 2 +- packages/shared_preferences/CHANGELOG.md | 5 +++++ packages/shared_preferences/android/build.gradle | 13 +++++++++++++ packages/shared_preferences/pubspec.yaml | 2 +- packages/url_launcher/CHANGELOG.md | 5 +++++ packages/url_launcher/android/build.gradle | 15 ++++++++++++++- packages/url_launcher/pubspec.yaml | 2 +- packages/video_player/CHANGELOG.md | 5 +++++ packages/video_player/android/build.gradle | 13 +++++++++++++ packages/video_player/pubspec.yaml | 2 +- packages/webview_flutter/CHANGELOG.md | 5 +++++ packages/webview_flutter/android/build.gradle | 13 +++++++++++++ packages/webview_flutter/pubspec.yaml | 2 +- 101 files changed, 651 insertions(+), 37 deletions(-) diff --git a/packages/android_alarm_manager/CHANGELOG.md b/packages/android_alarm_manager/CHANGELOG.md index 0ec184f085f7..dc2fe4088280 100644 --- a/packages/android_alarm_manager/CHANGELOG.md +++ b/packages/android_alarm_manager/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.1+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.4.1 * Added support for setting alarms which persist across reboots. * Both `AndroidAlarmManager.oneShot` and `AndroidAlarmManager.periodic` have @@ -23,6 +28,7 @@ ``` ## 0.4.0 + * **Breaking change**. Migrated the underlying AlarmService to utilize a BroadcastReceiver with a JobIntentService instead of a Service to handle processing of alarms. This requires AndroidManifest.xml to be updated to diff --git a/packages/android_alarm_manager/android/build.gradle b/packages/android_alarm_manager/android/build.gradle index b29e92fb3156..5f1f42c49379 100644 --- a/packages/android_alarm_manager/android/build.gradle +++ b/packages/android_alarm_manager/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "android_alarm_manager"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.androidalarmmanager' version '1.0-SNAPSHOT' diff --git a/packages/android_alarm_manager/pubspec.yaml b/packages/android_alarm_manager/pubspec.yaml index 5d3006a85aef..209334e8ce66 100644 --- a/packages/android_alarm_manager/pubspec.yaml +++ b/packages/android_alarm_manager/pubspec.yaml @@ -1,7 +1,7 @@ name: android_alarm_manager description: Flutter plugin for accessing the Android AlarmManager service, and running Dart code in the background when alarms fire. -version: 0.4.1 +version: 0.4.1+1 author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/android_alarm_manager diff --git a/packages/android_intent/CHANGELOG.md b/packages/android_intent/CHANGELOG.md index b9df1dcc2166..d9932e048a3a 100644 --- a/packages/android_intent/CHANGELOG.md +++ b/packages/android_intent/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.3.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.3.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/android_intent/android/build.gradle b/packages/android_intent/android/build.gradle index 5bbedab51aa1..8b21464f4b19 100644 --- a/packages/android_intent/android/build.gradle +++ b/packages/android_intent/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "android_intent"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.androidintent' version '1.0-SNAPSHOT' diff --git a/packages/android_intent/pubspec.yaml b/packages/android_intent/pubspec.yaml index 1991d5217c78..44e468d60e1e 100644 --- a/packages/android_intent/pubspec.yaml +++ b/packages/android_intent/pubspec.yaml @@ -2,7 +2,7 @@ name: android_intent description: Flutter plugin for launching Android Intents. Not supported on iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/android_intent -version: 0.3.0 +version: 0.3.0+1 flutter: plugin: diff --git a/packages/battery/CHANGELOG.md b/packages/battery/CHANGELOG.md index e93ac1a9b599..abb56c56aa6d 100644 --- a/packages/battery/CHANGELOG.md +++ b/packages/battery/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.3.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.3.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/battery/android/build.gradle b/packages/battery/android/build.gradle index ff485fbc6b29..ed302d2969e2 100644 --- a/packages/battery/android/build.gradle +++ b/packages/battery/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "battery"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.battery' version '1.0-SNAPSHOT' diff --git a/packages/battery/pubspec.yaml b/packages/battery/pubspec.yaml index 56f80bc28cc3..51b4d5aebb79 100644 --- a/packages/battery/pubspec.yaml +++ b/packages/battery/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for accessing information about the battery state (full, charging, discharging) on Android and iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/battery -version: 0.3.0 +version: 0.3.0+1 flutter: plugin: diff --git a/packages/camera/CHANGELOG.md b/packages/camera/CHANGELOG.md index 23eedd0ee0e4..aee29c63dca6 100644 --- a/packages/camera/CHANGELOG.md +++ b/packages/camera/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.3.0+3 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.3.0+2 * Fix issue with calculating iOS image orientation in certain edge cases. diff --git a/packages/camera/android/build.gradle b/packages/camera/android/build.gradle index 9c6001b0a5c9..fbce7b86f8f7 100644 --- a/packages/camera/android/build.gradle +++ b/packages/camera/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "camera"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.camera' version '1.0-SNAPSHOT' diff --git a/packages/camera/pubspec.yaml b/packages/camera/pubspec.yaml index 8fc800083724..5197d67f64a1 100644 --- a/packages/camera/pubspec.yaml +++ b/packages/camera/pubspec.yaml @@ -1,7 +1,7 @@ name: camera description: A Flutter plugin for getting information about and controlling the camera on Android and iOS. Supports previewing the camera feed and capturing images. -version: 0.3.0+2 +version: 0.3.0+3 authors: - Flutter Team - Luigi Agosti diff --git a/packages/cloud_firestore/CHANGELOG.md b/packages/cloud_firestore/CHANGELOG.md index f8b020662c63..86761c884ec3 100644 --- a/packages/cloud_firestore/CHANGELOG.md +++ b/packages/cloud_firestore/CHANGELOG.md @@ -1,4 +1,10 @@ +## 0.9.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.9.0 + * **Breaking change**. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to [also diff --git a/packages/cloud_firestore/android/build.gradle b/packages/cloud_firestore/android/build.gradle index bd8c9cba5d2c..34b58bb46f72 100755 --- a/packages/cloud_firestore/android/build.gradle +++ b/packages/cloud_firestore/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "cloud_firestore"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebase.firestore' version '1.0-SNAPSHOT' diff --git a/packages/cloud_firestore/pubspec.yaml b/packages/cloud_firestore/pubspec.yaml index 31e02101578e..98a6600f722c 100755 --- a/packages/cloud_firestore/pubspec.yaml +++ b/packages/cloud_firestore/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Cloud Firestore, a cloud-hosted, noSQL database live synchronization and offline support on Android and iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/cloud_firestore -version: 0.9.0 +version: 0.9.0+1 flutter: plugin: diff --git a/packages/cloud_functions/CHANGELOG.md b/packages/cloud_functions/CHANGELOG.md index a4ff66466c7b..109160f13283 100644 --- a/packages/cloud_functions/CHANGELOG.md +++ b/packages/cloud_functions/CHANGELOG.md @@ -1,4 +1,10 @@ +## 0.1.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.1.0 + * **Breaking change**. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to [also diff --git a/packages/cloud_functions/android/build.gradle b/packages/cloud_functions/android/build.gradle index deb98ba76478..8352b929797d 100644 --- a/packages/cloud_functions/android/build.gradle +++ b/packages/cloud_functions/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "cloud_functions"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebase.cloudfunctions.cloudfunctions' version '1.0-SNAPSHOT' diff --git a/packages/cloud_functions/pubspec.yaml b/packages/cloud_functions/pubspec.yaml index 40ee9cdc7de6..78ad901e200e 100644 --- a/packages/cloud_functions/pubspec.yaml +++ b/packages/cloud_functions/pubspec.yaml @@ -1,6 +1,6 @@ name: cloud_functions description: Flutter plugin for Cloud Functions. -version: 0.1.0 +version: 0.1.0+1 author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/cloud_functions diff --git a/packages/connectivity/CHANGELOG.md b/packages/connectivity/CHANGELOG.md index 80bde632186f..411b2a698bb2 100644 --- a/packages/connectivity/CHANGELOG.md +++ b/packages/connectivity/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.0+2 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.4.0+1 * Updated `Connectivity` to a singleton. diff --git a/packages/connectivity/android/build.gradle b/packages/connectivity/android/build.gradle index b9b147b29b77..681eb0438b75 100644 --- a/packages/connectivity/android/build.gradle +++ b/packages/connectivity/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "connectivity"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.connectivity' version '1.0-SNAPSHOT' diff --git a/packages/connectivity/pubspec.yaml b/packages/connectivity/pubspec.yaml index 49084bc65747..07e5dba9fcbf 100644 --- a/packages/connectivity/pubspec.yaml +++ b/packages/connectivity/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for discovering the state of the network (WiFi & mobile/cellular) connectivity on Android and iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/connectivity -version: 0.4.0+1 +version: 0.4.0+2 flutter: plugin: diff --git a/packages/device_info/CHANGELOG.md b/packages/device_info/CHANGELOG.md index 2028425f57b8..0cd39ed0b6eb 100644 --- a/packages/device_info/CHANGELOG.md +++ b/packages/device_info/CHANGELOG.md @@ -1,5 +1,10 @@ ## 0.4.0 +* Log a more detailed warning at build time about the previous AndroidX + migration. + +## 0.4.0 + * **Breaking change**. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to [also diff --git a/packages/device_info/android/build.gradle b/packages/device_info/android/build.gradle index 92dc70f6ed72..df08280c0b1b 100644 --- a/packages/device_info/android/build.gradle +++ b/packages/device_info/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "device_info"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.deviceinfo' version '1.0-SNAPSHOT' diff --git a/packages/device_info/pubspec.yaml b/packages/device_info/pubspec.yaml index 81c059d6ffe2..762677c6a2e8 100644 --- a/packages/device_info/pubspec.yaml +++ b/packages/device_info/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/device_info -version: 0.4.0 +version: 0.4.0+1 flutter: plugin: diff --git a/packages/firebase_admob/CHANGELOG.md b/packages/firebase_admob/CHANGELOG.md index 5ee94567af8d..6039575c141d 100644 --- a/packages/firebase_admob/CHANGELOG.md +++ b/packages/firebase_admob/CHANGELOG.md @@ -1,4 +1,10 @@ +## 0.8.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.8.0 + * **Breaking change**. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to [also diff --git a/packages/firebase_admob/android/build.gradle b/packages/firebase_admob/android/build.gradle index 9d3d707cc1b8..cd82b1bf15b0 100644 --- a/packages/firebase_admob/android/build.gradle +++ b/packages/firebase_admob/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_admob"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebaseadmob' version '1.0-SNAPSHOT' diff --git a/packages/firebase_admob/pubspec.yaml b/packages/firebase_admob/pubspec.yaml index 6cc739a5d42e..1237d729fd80 100644 --- a/packages/firebase_admob/pubspec.yaml +++ b/packages/firebase_admob/pubspec.yaml @@ -2,7 +2,7 @@ name: firebase_admob description: Firebase AdMob plugin for Flutter applications. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_admob -version: 0.8.0 +version: 0.8.0+1 flutter: plugin: diff --git a/packages/firebase_analytics/CHANGELOG.md b/packages/firebase_analytics/CHANGELOG.md index b3880e843947..e657960f5b7e 100644 --- a/packages/firebase_analytics/CHANGELOG.md +++ b/packages/firebase_analytics/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.0.1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 2.0.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/firebase_analytics/android/build.gradle b/packages/firebase_analytics/android/build.gradle index 7d9e329938a1..5031bfd92710 100755 --- a/packages/firebase_analytics/android/build.gradle +++ b/packages/firebase_analytics/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_analytics"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebaseanalytics' version '1.0-SNAPSHOT' diff --git a/packages/firebase_analytics/pubspec.yaml b/packages/firebase_analytics/pubspec.yaml index d3cd02d1c23f..e8f889cfd166 100755 --- a/packages/firebase_analytics/pubspec.yaml +++ b/packages/firebase_analytics/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Google Analytics for Firebase, an app measuremen solution that provides insight on app usage and user engagement on Android and iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_analytics -version: 2.0.0 +version: 2.0.1 flutter: plugin: diff --git a/packages/firebase_auth/CHANGELOG.md b/packages/firebase_auth/CHANGELOG.md index b3b2cff91f77..3a95b2c152e2 100644 --- a/packages/firebase_auth/CHANGELOG.md +++ b/packages/firebase_auth/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.8.0+3 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.8.0+2 * Update Google sign-in example in the README. diff --git a/packages/firebase_auth/android/build.gradle b/packages/firebase_auth/android/build.gradle index d45757f3cdd0..2150001cff02 100755 --- a/packages/firebase_auth/android/build.gradle +++ b/packages/firebase_auth/android/build.gradle @@ -1,3 +1,17 @@ +def PLUGIN = "firebase_auth"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + + group 'io.flutter.plugins.firebaseauth' version '1.0-SNAPSHOT' diff --git a/packages/firebase_auth/example/pubspec.yaml b/packages/firebase_auth/example/pubspec.yaml index 6537e88a331f..ed5d762da670 100755 --- a/packages/firebase_auth/example/pubspec.yaml +++ b/packages/firebase_auth/example/pubspec.yaml @@ -7,7 +7,7 @@ dependencies: sdk: flutter firebase_auth: path: ../ - google_sign_in: ^3.0.4 + google_sign_in: ^4.0.0 firebase_core: ^0.3.0 flutter: diff --git a/packages/firebase_auth/pubspec.yaml b/packages/firebase_auth/pubspec.yaml index 8466b83c0b64..16ab145780bd 100755 --- a/packages/firebase_auth/pubspec.yaml +++ b/packages/firebase_auth/pubspec.yaml @@ -4,7 +4,7 @@ description: Flutter plugin for Firebase Auth, enabling Android and iOS like Google, Facebook and Twitter. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_auth -version: "0.8.0+2" +version: "0.8.0+3" flutter: plugin: diff --git a/packages/firebase_core/CHANGELOG.md b/packages/firebase_core/CHANGELOG.md index 377b4a330e32..c792b1f33da0 100644 --- a/packages/firebase_core/CHANGELOG.md +++ b/packages/firebase_core/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.3.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.3.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/firebase_core/android/build.gradle b/packages/firebase_core/android/build.gradle index 568a19d644a1..9aaf4bf3d7a6 100644 --- a/packages/firebase_core/android/build.gradle +++ b/packages/firebase_core/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_core"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebase.core' version '1.0-SNAPSHOT' diff --git a/packages/firebase_core/pubspec.yaml b/packages/firebase_core/pubspec.yaml index 0efe671c0041..5419620265c7 100644 --- a/packages/firebase_core/pubspec.yaml +++ b/packages/firebase_core/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Core, enabling connecting to multiple Firebase apps. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_core -version: 0.3.0 +version: 0.3.0+1 flutter: plugin: diff --git a/packages/firebase_database/CHANGELOG.md b/packages/firebase_database/CHANGELOG.md index d037f64e42c2..42aa1e2d4027 100644 --- a/packages/firebase_database/CHANGELOG.md +++ b/packages/firebase_database/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.0.1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 2.0.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/firebase_database/android/build.gradle b/packages/firebase_database/android/build.gradle index 6304130ff5a6..f51f2acfb444 100755 --- a/packages/firebase_database/android/build.gradle +++ b/packages/firebase_database/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_database"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebase.database' version '1.0-SNAPSHOT' diff --git a/packages/firebase_database/pubspec.yaml b/packages/firebase_database/pubspec.yaml index 913c247b5189..75ade3194293 100755 --- a/packages/firebase_database/pubspec.yaml +++ b/packages/firebase_database/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Database, a cloud-hosted NoSQL database with realtime data syncing across Android and iOS clients, and offline access. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_database -version: 2.0.0 +version: 2.0.1 flutter: plugin: diff --git a/packages/firebase_dynamic_links/CHANGELOG.md b/packages/firebase_dynamic_links/CHANGELOG.md index 4c309de85498..9414680bac01 100644 --- a/packages/firebase_dynamic_links/CHANGELOG.md +++ b/packages/firebase_dynamic_links/CHANGELOG.md @@ -1,4 +1,10 @@ +## 0.2.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.2.0 + * **Breaking change**. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to [also diff --git a/packages/firebase_dynamic_links/android/build.gradle b/packages/firebase_dynamic_links/android/build.gradle index 47c937902024..2077643d2db4 100644 --- a/packages/firebase_dynamic_links/android/build.gradle +++ b/packages/firebase_dynamic_links/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_dynamic_links"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebasedynamiclinks' version '1.0-SNAPSHOT' diff --git a/packages/firebase_dynamic_links/pubspec.yaml b/packages/firebase_dynamic_links/pubspec.yaml index 9ba9ef6c1329..105010314af4 100644 --- a/packages/firebase_dynamic_links/pubspec.yaml +++ b/packages/firebase_dynamic_links/pubspec.yaml @@ -1,7 +1,7 @@ name: firebase_dynamic_links description: Flutter plugin for Google Dynamic Links for Firebase, an app solution for creating and handling links across multiple platforms. -version: 0.2.0 +version: 0.2.0+1 author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_dynamic_links diff --git a/packages/firebase_messaging/CHANGELOG.md b/packages/firebase_messaging/CHANGELOG.md index 3a8f1c59e740..a729641d0163 100644 --- a/packages/firebase_messaging/CHANGELOG.md +++ b/packages/firebase_messaging/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.0.1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 3.0.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/firebase_messaging/android/build.gradle b/packages/firebase_messaging/android/build.gradle index 6fe6bcac24d0..34c75c16a46b 100644 --- a/packages/firebase_messaging/android/build.gradle +++ b/packages/firebase_messaging/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_messaging"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebasemessaging' version '1.0-SNAPSHOT' diff --git a/packages/firebase_messaging/pubspec.yaml b/packages/firebase_messaging/pubspec.yaml index a9cdfb5d5f7c..98a1b578ab09 100644 --- a/packages/firebase_messaging/pubspec.yaml +++ b/packages/firebase_messaging/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Cloud Messaging, a cross-platform messaging solution that lets you reliably deliver messages on Android and iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_messaging -version: 3.0.0 +version: 3.0.1 flutter: plugin: diff --git a/packages/firebase_ml_vision/CHANGELOG.md b/packages/firebase_ml_vision/CHANGELOG.md index 2bf3227ff497..dafd2fdb0219 100644 --- a/packages/firebase_ml_vision/CHANGELOG.md +++ b/packages/firebase_ml_vision/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.4.0 * **Breaking Change** Removal of base detector class `FirebaseVisionDetector`. @@ -6,7 +11,7 @@ ## 0.3.0 -* **Breaking Change** Migrate from the deprecated original Android Support +* **Breaking change**. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to [also migrate](https://developer.android.com/jetpack/androidx/migrate) if they're diff --git a/packages/firebase_ml_vision/android/build.gradle b/packages/firebase_ml_vision/android/build.gradle index ce0be9652cb5..395787374241 100644 --- a/packages/firebase_ml_vision/android/build.gradle +++ b/packages/firebase_ml_vision/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_ml_vision"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebasemlvision' version '1.0-SNAPSHOT' @@ -32,7 +45,6 @@ android { disable 'InvalidPackage' } dependencies { - api 'com.android.support:support-v4:27.1.1' api 'com.google.firebase:firebase-ml-vision:17.0.1' api 'com.google.firebase:firebase-ml-vision-image-label-model:16.2.0' implementation 'androidx.annotation:annotation:1.0.0' diff --git a/packages/firebase_ml_vision/pubspec.yaml b/packages/firebase_ml_vision/pubspec.yaml index 80cbef6c6ecd..a41791ccc1b6 100644 --- a/packages/firebase_ml_vision/pubspec.yaml +++ b/packages/firebase_ml_vision/pubspec.yaml @@ -2,7 +2,7 @@ name: firebase_ml_vision description: Flutter plugin for Firebase machine learning vision services. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_ml_vision -version: 0.4.0 +version: 0.4.0+1 dependencies: flutter: diff --git a/packages/firebase_performance/CHANGELOG.md b/packages/firebase_performance/CHANGELOG.md index 08be06d49bdf..f689650e5bb5 100644 --- a/packages/firebase_performance/CHANGELOG.md +++ b/packages/firebase_performance/CHANGELOG.md @@ -1,4 +1,10 @@ +## 0.1.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.1.0 + * **Breaking change**. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to [also diff --git a/packages/firebase_performance/android/build.gradle b/packages/firebase_performance/android/build.gradle index 285bf85093e9..d74a4b24bc6e 100644 --- a/packages/firebase_performance/android/build.gradle +++ b/packages/firebase_performance/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_performance"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebaseperformance' version '1.0-SNAPSHOT' diff --git a/packages/firebase_performance/pubspec.yaml b/packages/firebase_performance/pubspec.yaml index 7dfcc0b5b84b..c429248a1ca4 100644 --- a/packages/firebase_performance/pubspec.yaml +++ b/packages/firebase_performance/pubspec.yaml @@ -4,7 +4,7 @@ description: Flutter plugin for Google Performance Monitoring for Firebase, an a iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_performance -version: 0.1.0 +version: 0.1.0+1 dependencies: flutter: diff --git a/packages/firebase_remote_config/CHANGELOG.md b/packages/firebase_remote_config/CHANGELOG.md index e0f060b83655..9d312525f04e 100644 --- a/packages/firebase_remote_config/CHANGELOG.md +++ b/packages/firebase_remote_config/CHANGELOG.md @@ -1,4 +1,10 @@ +## 0.1.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.1.0 + * **Breaking change**. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to [also diff --git a/packages/firebase_remote_config/android/build.gradle b/packages/firebase_remote_config/android/build.gradle index 2b48c7b41b4c..5994006e4d7a 100644 --- a/packages/firebase_remote_config/android/build.gradle +++ b/packages/firebase_remote_config/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_remote_config"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebase.firebaseremoteconfig' version '1.0-SNAPSHOT' diff --git a/packages/firebase_remote_config/pubspec.yaml b/packages/firebase_remote_config/pubspec.yaml index b8aca7f0112e..867ff9f46de4 100644 --- a/packages/firebase_remote_config/pubspec.yaml +++ b/packages/firebase_remote_config/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Remote Config. Update your application re-releasing. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_remote_config -version: 0.1.0 +version: 0.1.0+1 dependencies: flutter: diff --git a/packages/firebase_storage/CHANGELOG.md b/packages/firebase_storage/CHANGELOG.md index 20aa66481d6e..7736238b9612 100644 --- a/packages/firebase_storage/CHANGELOG.md +++ b/packages/firebase_storage/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.0.1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 2.0.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/firebase_storage/android/build.gradle b/packages/firebase_storage/android/build.gradle index 1defb76f1d89..0445829f8300 100755 --- a/packages/firebase_storage/android/build.gradle +++ b/packages/firebase_storage/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "firebase_storage"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.firebase.storage' version '1.0-SNAPSHOT' diff --git a/packages/firebase_storage/pubspec.yaml b/packages/firebase_storage/pubspec.yaml index 3cb69f00ec92..45fefeb7e61b 100755 --- a/packages/firebase_storage/pubspec.yaml +++ b/packages/firebase_storage/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Cloud Storage, a powerful, simple, and cost-effective object storage service for Android and iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_storage -version: 2.0.0 +version: 2.0.1 flutter: plugin: diff --git a/packages/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/CHANGELOG.md index e274d3399c3b..85a6d530d795 100644 --- a/packages/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.2.0+2 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.2.0+1 * Fixed a bug which the camera is not positioned correctly at map initialization(temporary workaround)(https://github.com/flutter/flutter/issues/27550). diff --git a/packages/google_maps_flutter/android/build.gradle b/packages/google_maps_flutter/android/build.gradle index 74ef7d1e292e..c5abb710ccea 100644 --- a/packages/google_maps_flutter/android/build.gradle +++ b/packages/google_maps_flutter/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "google_maps_flutter"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.googlemaps' version '1.0-SNAPSHOT' diff --git a/packages/google_maps_flutter/pubspec.yaml b/packages/google_maps_flutter/pubspec.yaml index af96fda7adfc..f1ee54f78bc9 100644 --- a/packages/google_maps_flutter/pubspec.yaml +++ b/packages/google_maps_flutter/pubspec.yaml @@ -2,7 +2,7 @@ name: google_maps_flutter description: A Flutter plugin for integrating Google Maps in iOS and Android applications. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter -version: 0.2.0+1 +version: 0.2.0+2 dependencies: flutter: diff --git a/packages/google_sign_in/CHANGELOG.md b/packages/google_sign_in/CHANGELOG.md index d1da1336cc38..b357d8cf0c12 100644 --- a/packages/google_sign_in/CHANGELOG.md +++ b/packages/google_sign_in/CHANGELOG.md @@ -1,3 +1,8 @@ +## 4.0.1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 4.0.0+1 * Added a better error message for iOS when the app is missing necessary URL schemes. diff --git a/packages/google_sign_in/android/build.gradle b/packages/google_sign_in/android/build.gradle index f51d723219ff..9162c3080e50 100755 --- a/packages/google_sign_in/android/build.gradle +++ b/packages/google_sign_in/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "google_sign_in"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.googlesignin' version '1.0-SNAPSHOT' diff --git a/packages/google_sign_in/pubspec.yaml b/packages/google_sign_in/pubspec.yaml index 92e80ab5caba..23279a1e0a7f 100755 --- a/packages/google_sign_in/pubspec.yaml +++ b/packages/google_sign_in/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Google Sign-In, a secure authentication system for signing in with a Google account on Android and iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/google_sign_in -version: 4.0.0+1 +version: 4.0.1 flutter: plugin: diff --git a/packages/image_picker/CHANGELOG.md b/packages/image_picker/CHANGELOG.md index ee65ab4c29cf..f2ffce005561 100644 --- a/packages/image_picker/CHANGELOG.md +++ b/packages/image_picker/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.5.0+2 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.5.0+1 * Fix a crash when user calls the plugin in quick succession on Android. diff --git a/packages/image_picker/android/build.gradle b/packages/image_picker/android/build.gradle index f9a579843d40..7de0adc60eb9 100755 --- a/packages/image_picker/android/build.gradle +++ b/packages/image_picker/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "image_picker"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.imagepicker' version '1.0-SNAPSHOT' diff --git a/packages/image_picker/pubspec.yaml b/packages/image_picker/pubspec.yaml index 73e267977f92..607956edea58 100755 --- a/packages/image_picker/pubspec.yaml +++ b/packages/image_picker/pubspec.yaml @@ -5,7 +5,7 @@ authors: - Flutter Team - Rhodes Davis Jr. homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker -version: 0.5.0+1 +version: 0.5.0+2 flutter: plugin: diff --git a/packages/in_app_purchase/android/build.gradle b/packages/in_app_purchase/android/build.gradle index c30115927f91..2f6ec7d92222 100644 --- a/packages/in_app_purchase/android/build.gradle +++ b/packages/in_app_purchase/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "in_app_purchase"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.inapppurchase' version '1.0-SNAPSHOT' diff --git a/packages/local_auth/CHANGELOG.md b/packages/local_auth/CHANGELOG.md index 843ae0df45ca..f1e64da1c16e 100644 --- a/packages/local_auth/CHANGELOG.md +++ b/packages/local_auth/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.4.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/local_auth/android/build.gradle b/packages/local_auth/android/build.gradle index 0cea02c1b04b..fd9893f94e29 100644 --- a/packages/local_auth/android/build.gradle +++ b/packages/local_auth/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "local_auth"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.localauth' version '1.0-SNAPSHOT' diff --git a/packages/local_auth/pubspec.yaml b/packages/local_auth/pubspec.yaml index f238b034a75a..93afb6299fc4 100644 --- a/packages/local_auth/pubspec.yaml +++ b/packages/local_auth/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Android and iOS device authentication sensors such as Fingerprint Reader and Touch ID. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/local_auth -version: 0.4.0 +version: 0.4.0+1 flutter: plugin: diff --git a/packages/location_background/CHANGELOG.md b/packages/location_background/CHANGELOG.md index 50934f5f77e7..e9815106d525 100644 --- a/packages/location_background/CHANGELOG.md +++ b/packages/location_background/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.1.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.1.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/location_background/android/build.gradle b/packages/location_background/android/build.gradle index a8f26894aced..be694b19b05c 100644 --- a/packages/location_background/android/build.gradle +++ b/packages/location_background/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "location_background"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'com.flutter.example.locationbackgroundplugin' version '1.0-SNAPSHOT' diff --git a/packages/location_background/pubspec.yaml b/packages/location_background/pubspec.yaml index c838a834440b..5ecd21a51ef7 100644 --- a/packages/location_background/pubspec.yaml +++ b/packages/location_background/pubspec.yaml @@ -2,7 +2,7 @@ name: location_background_plugin description: A new flutter plugin project. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/location_background -version: 0.1.0 +version: 0.1.0+1 dependencies: flutter: diff --git a/packages/package_info/CHANGELOG.md b/packages/package_info/CHANGELOG.md index 5060c31123b0..cfb22a9d112e 100644 --- a/packages/package_info/CHANGELOG.md +++ b/packages/package_info/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.4.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/package_info/android/build.gradle b/packages/package_info/android/build.gradle index d05fa363d3c1..2feb6adb735d 100644 --- a/packages/package_info/android/build.gradle +++ b/packages/package_info/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "package_info"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.packageinfo' version '1.0-SNAPSHOT' diff --git a/packages/package_info/pubspec.yaml b/packages/package_info/pubspec.yaml index c91cb523fb9c..7fd707d05500 100644 --- a/packages/package_info/pubspec.yaml +++ b/packages/package_info/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for querying information about the application package, such as CFBundleVersion on iOS or versionCode on Android. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/package_info -version: 0.4.0 +version: 0.4.0+1 flutter: plugin: diff --git a/packages/path_provider/CHANGELOG.md b/packages/path_provider/CHANGELOG.md index 8a0499493851..b2578a43ba60 100644 --- a/packages/path_provider/CHANGELOG.md +++ b/packages/path_provider/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.5.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.5.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/path_provider/android/build.gradle b/packages/path_provider/android/build.gradle index a52b24f66378..191930fee299 100644 --- a/packages/path_provider/android/build.gradle +++ b/packages/path_provider/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "path_provider"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.pathprovider' version '1.0-SNAPSHOT' diff --git a/packages/path_provider/pubspec.yaml b/packages/path_provider/pubspec.yaml index 9156895d3f48..2d3304dcaa35 100644 --- a/packages/path_provider/pubspec.yaml +++ b/packages/path_provider/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for getting commonly used locations on the Android & iOS file systems, such as the temp and app data directories. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider -version: 0.5.0 +version: 0.5.0+1 flutter: plugin: diff --git a/packages/quick_actions/CHANGELOG.md b/packages/quick_actions/CHANGELOG.md index 93a4c233fa70..bd87c4f3175c 100644 --- a/packages/quick_actions/CHANGELOG.md +++ b/packages/quick_actions/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.3.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.3.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/quick_actions/android/build.gradle b/packages/quick_actions/android/build.gradle index 648b654dbfcd..09576acb660b 100644 --- a/packages/quick_actions/android/build.gradle +++ b/packages/quick_actions/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "quick_actions"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.quickactions' version '1.0-SNAPSHOT' diff --git a/packages/quick_actions/pubspec.yaml b/packages/quick_actions/pubspec.yaml index 779a5f7731c9..17d31b8bca9a 100644 --- a/packages/quick_actions/pubspec.yaml +++ b/packages/quick_actions/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for creating shortcuts on home screen, also known as Quick Actions on iOS and App Shortcuts on Android. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/quick_actions -version: 0.3.0 +version: 0.3.0+1 flutter: plugin: diff --git a/packages/sensors/CHANGELOG.md b/packages/sensors/CHANGELOG.md index 9fccf527bbf5..a9a4a521cb33 100644 --- a/packages/sensors/CHANGELOG.md +++ b/packages/sensors/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.4.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/sensors/android/build.gradle b/packages/sensors/android/build.gradle index c42795200e62..56a76026f57a 100644 --- a/packages/sensors/android/build.gradle +++ b/packages/sensors/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "sensors"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.sensors' version '1.0-SNAPSHOT' diff --git a/packages/sensors/pubspec.yaml b/packages/sensors/pubspec.yaml index d89b15f25d2f..dcf0e26dbe00 100644 --- a/packages/sensors/pubspec.yaml +++ b/packages/sensors/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for accessing the Android and iOS accelerometer and gyroscope sensors. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/sensors -version: 0.4.0 +version: 0.4.0+1 flutter: plugin: diff --git a/packages/share/CHANGELOG.md b/packages/share/CHANGELOG.md index b21c925ce3ef..802a5e34a113 100644 --- a/packages/share/CHANGELOG.md +++ b/packages/share/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.6.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.6.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/share/android/build.gradle b/packages/share/android/build.gradle index ff794c1e56d8..7e3700549674 100644 --- a/packages/share/android/build.gradle +++ b/packages/share/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "share"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.share' version '1.0-SNAPSHOT' diff --git a/packages/share/pubspec.yaml b/packages/share/pubspec.yaml index 5954a80994e1..e3b161b0ff87 100644 --- a/packages/share/pubspec.yaml +++ b/packages/share/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/share -version: 0.6.0 +version: 0.6.0+1 flutter: plugin: diff --git a/packages/shared_preferences/CHANGELOG.md b/packages/shared_preferences/CHANGELOG.md index b0b8ec8948d1..992460fa253a 100644 --- a/packages/shared_preferences/CHANGELOG.md +++ b/packages/shared_preferences/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.5.1+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.5.1 * Use String to save double in Android. diff --git a/packages/shared_preferences/android/build.gradle b/packages/shared_preferences/android/build.gradle index 515d7ac12bab..d7a8ffcd7e9a 100644 --- a/packages/shared_preferences/android/build.gradle +++ b/packages/shared_preferences/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "shared_preferences"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.sharedpreferences' version '1.0-SNAPSHOT' diff --git a/packages/shared_preferences/pubspec.yaml b/packages/shared_preferences/pubspec.yaml index 4e9805cfdf35..3bbdbd731e53 100644 --- a/packages/shared_preferences/pubspec.yaml +++ b/packages/shared_preferences/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/shared_preferences -version: 0.5.1 +version: 0.5.1+1 flutter: plugin: diff --git a/packages/url_launcher/CHANGELOG.md b/packages/url_launcher/CHANGELOG.md index 2642d33d8b31..f771f875010a 100644 --- a/packages/url_launcher/CHANGELOG.md +++ b/packages/url_launcher/CHANGELOG.md @@ -1,3 +1,8 @@ +## 5.0.1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 5.0.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/url_launcher/android/build.gradle b/packages/url_launcher/android/build.gradle index 0d3a58d3f292..641b2e29f81a 100644 --- a/packages/url_launcher/android/build.gradle +++ b/packages/url_launcher/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "url_launcher"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.urllauncher' version '1.0-SNAPSHOT' @@ -31,4 +44,4 @@ android { lintOptions { disable 'InvalidPackage' } -} +} \ No newline at end of file diff --git a/packages/url_launcher/pubspec.yaml b/packages/url_launcher/pubspec.yaml index 77892fd9a35e..7b476e3a6037 100644 --- a/packages/url_launcher/pubspec.yaml +++ b/packages/url_launcher/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for launching a URL on Android and iOS. Supports web, phone, SMS, and email schemes. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher -version: 5.0.0 +version: 5.0.1 flutter: plugin: diff --git a/packages/video_player/CHANGELOG.md b/packages/video_player/CHANGELOG.md index c9696e7c377d..6280b9ce47ed 100644 --- a/packages/video_player/CHANGELOG.md +++ b/packages/video_player/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.10.0+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.10.0 * **Breaking change**. Migrate from the deprecated original Android Support diff --git a/packages/video_player/android/build.gradle b/packages/video_player/android/build.gradle index a67f98e35a5e..0ab2a168f533 100644 --- a/packages/video_player/android/build.gradle +++ b/packages/video_player/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "video_player"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.videoplayer' version '1.0-SNAPSHOT' diff --git a/packages/video_player/pubspec.yaml b/packages/video_player/pubspec.yaml index a16908070c1c..748c831e6e1d 100644 --- a/packages/video_player/pubspec.yaml +++ b/packages/video_player/pubspec.yaml @@ -2,7 +2,7 @@ name: video_player description: Flutter plugin for displaying inline video with other Flutter widgets on Android and iOS. author: Flutter Team -version: 0.10.0 +version: 0.10.0+1 homepage: https://github.com/flutter/plugins/tree/master/packages/video_player flutter: diff --git a/packages/webview_flutter/CHANGELOG.md b/packages/webview_flutter/CHANGELOG.md index 3ca357898633..a19fec80cae9 100644 --- a/packages/webview_flutter/CHANGELOG.md +++ b/packages/webview_flutter/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.3.2+1 + +* Log a more detailed warning at build time about the previous AndroidX + migration. + ## 0.3.2 * Added CookieManager to interface with WebView cookies. Currently has the ability to clear cookies. diff --git a/packages/webview_flutter/android/build.gradle b/packages/webview_flutter/android/build.gradle index 460446a90ed2..098c2f4bf388 100644 --- a/packages/webview_flutter/android/build.gradle +++ b/packages/webview_flutter/android/build.gradle @@ -1,3 +1,16 @@ +def PLUGIN = "webview_flutter"; +def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning"; +gradle.buildFinished { buildResult -> + if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) { + println ' *********************************************************' + println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.' + println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.' + println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.' + println ' *********************************************************' + rootProject.ext.set(ANDROIDX_WARNING, true); + } +} + group 'io.flutter.plugins.webviewflutter' version '1.0-SNAPSHOT' diff --git a/packages/webview_flutter/pubspec.yaml b/packages/webview_flutter/pubspec.yaml index 4b982b64c7a3..4c658b69c5d9 100644 --- a/packages/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: webview_flutter description: A Flutter plugin that provides a WebView widget on Android and iOS. -version: 0.3.2 +version: 0.3.2+1 author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/webview_flutter