From 6dc28c9c3f0f5098ce62dd5c87cf77ea0dab08d4 Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Fri, 28 Apr 2023 17:53:52 -0700 Subject: [PATCH] [various] Update Android example min SDKs (#3847) Updates all the example apps that had a `minSdkVersion` of 16 to instead use `flutter.compileSdkVersion`. That is 16 on stable, but now 19 on master since Flutter support for 16-18 is being fully removed. This unblocks the roller, since example apps that depend on `integration_test` now require a minimum of 19+ on master. --- packages/animations/example/android/app/build.gradle | 2 +- packages/espresso/example/android/app/build.gradle | 2 +- .../example/android/app/build.gradle | 2 +- packages/flutter_markdown/example/android/app/build.gradle | 2 +- .../example/android/app/build.gradle | 2 +- packages/go_router/example/android/app/build.gradle | 2 +- .../google_sign_in/example/android/app/build.gradle | 2 +- .../google_sign_in_android/example/android/app/build.gradle | 2 +- .../image_picker/image_picker/example/android/app/build.gradle | 2 +- .../image_picker_android/example/android/app/build.gradle | 2 +- .../in_app_purchase/example/android/app/build.gradle | 2 +- .../in_app_purchase_android/example/android/app/build.gradle | 2 +- packages/local_auth/local_auth/example/android/app/build.gradle | 2 +- .../local_auth_android/example/android/app/build.gradle | 2 +- .../path_provider/example/android/app/build.gradle | 2 +- .../path_provider_android/example/android/app/build.gradle | 2 +- packages/rfw/example/hello/android/app/build.gradle | 2 +- packages/rfw/example/local/android/app/build.gradle | 2 +- packages/rfw/example/remote/android/app/build.gradle | 2 +- .../shared_preferences/example/android/app/build.gradle | 2 +- .../shared_preferences_android/example/android/app/build.gradle | 2 +- .../url_launcher/url_launcher/example/android/app/build.gradle | 2 +- .../url_launcher_android/example/android/app/build.gradle | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/animations/example/android/app/build.gradle b/packages/animations/example/android/app/build.gradle index b4f6ed166a0f4..11055bc3b521a 100644 --- a/packages/animations/example/android/app/build.gradle +++ b/packages/animations/example/android/app/build.gradle @@ -36,7 +36,7 @@ android { defaultConfig { applicationId "dev.flutter.packages.animations.example" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 32 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/espresso/example/android/app/build.gradle b/packages/espresso/example/android/app/build.gradle index 27e95321213e1..9a4b28253284d 100644 --- a/packages/espresso/example/android/app/build.gradle +++ b/packages/espresso/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 29 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/build.gradle b/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/build.gradle index ffbb8c5de6626..9f6114ae3b7cf 100644 --- a/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/build.gradle +++ b/packages/extension_google_sign_in_as_googleapis_auth/example/android/app/build.gradle @@ -36,7 +36,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "io.flutter.plugins.googlesigninexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/flutter_markdown/example/android/app/build.gradle b/packages/flutter_markdown/example/android/app/build.gradle index 162aae27cbf09..b2f0f4bc8edff 100644 --- a/packages/flutter_markdown/example/android/app/build.gradle +++ b/packages/flutter_markdown/example/android/app/build.gradle @@ -35,7 +35,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "io.flutter.packages.flutter_markdown_example" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/flutter_plugin_android_lifecycle/example/android/app/build.gradle b/packages/flutter_plugin_android_lifecycle/example/android/app/build.gradle index d4c35edfe878a..3e603d54f878f 100644 --- a/packages/flutter_plugin_android_lifecycle/example/android/app/build.gradle +++ b/packages/flutter_plugin_android_lifecycle/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "io.flutter.plugins.flutter_plugin_android_lifecycle_example" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/go_router/example/android/app/build.gradle b/packages/go_router/example/android/app/build.gradle index 43fb81bf34fa7..f8b6fdbd5698b 100644 --- a/packages/go_router/example/android/app/build.gradle +++ b/packages/go_router/example/android/app/build.gradle @@ -44,7 +44,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.example" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/google_sign_in/google_sign_in/example/android/app/build.gradle b/packages/google_sign_in/google_sign_in/example/android/app/build.gradle index 7416d04d23075..809ca7d7fd68e 100644 --- a/packages/google_sign_in/google_sign_in/example/android/app/build.gradle +++ b/packages/google_sign_in/google_sign_in/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.googlesigninexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 28 multiDexEnabled true versionCode flutterVersionCode.toInteger() diff --git a/packages/google_sign_in/google_sign_in_android/example/android/app/build.gradle b/packages/google_sign_in/google_sign_in_android/example/android/app/build.gradle index 7416d04d23075..809ca7d7fd68e 100644 --- a/packages/google_sign_in/google_sign_in_android/example/android/app/build.gradle +++ b/packages/google_sign_in/google_sign_in_android/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.googlesigninexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 28 multiDexEnabled true versionCode flutterVersionCode.toInteger() diff --git a/packages/image_picker/image_picker/example/android/app/build.gradle b/packages/image_picker/image_picker/example/android/app/build.gradle index 1a11b7414f031..da9fb7633712c 100755 --- a/packages/image_picker/image_picker/example/android/app/build.gradle +++ b/packages/image_picker/image_picker/example/android/app/build.gradle @@ -32,7 +32,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.imagepicker.example" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 28 multiDexEnabled true versionCode flutterVersionCode.toInteger() diff --git a/packages/image_picker/image_picker_android/example/android/app/build.gradle b/packages/image_picker/image_picker_android/example/android/app/build.gradle index c122f5b46bcba..3ae9dab303efe 100755 --- a/packages/image_picker/image_picker_android/example/android/app/build.gradle +++ b/packages/image_picker/image_picker_android/example/android/app/build.gradle @@ -32,7 +32,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.imagepicker.example" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 33 multiDexEnabled true versionCode flutterVersionCode.toInteger() diff --git a/packages/in_app_purchase/in_app_purchase/example/android/app/build.gradle b/packages/in_app_purchase/in_app_purchase/example/android/app/build.gradle index 1cfd3360d018a..dbbc78f9d8fc2 100644 --- a/packages/in_app_purchase/in_app_purchase/example/android/app/build.gradle +++ b/packages/in_app_purchase/in_app_purchase/example/android/app/build.gradle @@ -69,7 +69,7 @@ android { defaultConfig { applicationId project.APP_ID - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 28 versionCode project.VERSION_CODE versionName project.VERSION_NAME diff --git a/packages/in_app_purchase/in_app_purchase_android/example/android/app/build.gradle b/packages/in_app_purchase/in_app_purchase_android/example/android/app/build.gradle index 81e0f463614bd..151199f2c9d4d 100644 --- a/packages/in_app_purchase/in_app_purchase_android/example/android/app/build.gradle +++ b/packages/in_app_purchase/in_app_purchase_android/example/android/app/build.gradle @@ -69,7 +69,7 @@ android { defaultConfig { applicationId project.APP_ID - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode project.VERSION_CODE versionName project.VERSION_NAME diff --git a/packages/local_auth/local_auth/example/android/app/build.gradle b/packages/local_auth/local_auth/example/android/app/build.gradle index 001d8e0394d64..191167b5fe98f 100644 --- a/packages/local_auth/local_auth/example/android/app/build.gradle +++ b/packages/local_auth/local_auth/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.localauthexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/local_auth/local_auth_android/example/android/app/build.gradle b/packages/local_auth/local_auth_android/example/android/app/build.gradle index 001d8e0394d64..191167b5fe98f 100644 --- a/packages/local_auth/local_auth_android/example/android/app/build.gradle +++ b/packages/local_auth/local_auth_android/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.localauthexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/path_provider/path_provider/example/android/app/build.gradle b/packages/path_provider/path_provider/example/android/app/build.gradle index 4f9b729f0abe2..f7674c02641b6 100644 --- a/packages/path_provider/path_provider/example/android/app/build.gradle +++ b/packages/path_provider/path_provider/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.pathproviderexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/path_provider/path_provider_android/example/android/app/build.gradle b/packages/path_provider/path_provider_android/example/android/app/build.gradle index 4f9b729f0abe2..f7674c02641b6 100644 --- a/packages/path_provider/path_provider_android/example/android/app/build.gradle +++ b/packages/path_provider/path_provider_android/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.pathproviderexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/rfw/example/hello/android/app/build.gradle b/packages/rfw/example/hello/android/app/build.gradle index 7c6ac08593519..d345ff3a66ef2 100644 --- a/packages/rfw/example/hello/android/app/build.gradle +++ b/packages/rfw/example/hello/android/app/build.gradle @@ -45,7 +45,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "dev.flutter.rfw.examples.hello" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/rfw/example/local/android/app/build.gradle b/packages/rfw/example/local/android/app/build.gradle index ff877b9fd2086..1227c5e713c4b 100644 --- a/packages/rfw/example/local/android/app/build.gradle +++ b/packages/rfw/example/local/android/app/build.gradle @@ -45,7 +45,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "dev.flutter.rfw.examples.local" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/rfw/example/remote/android/app/build.gradle b/packages/rfw/example/remote/android/app/build.gradle index 05c97c0744774..a3f96e0be73a0 100644 --- a/packages/rfw/example/remote/android/app/build.gradle +++ b/packages/rfw/example/remote/android/app/build.gradle @@ -45,7 +45,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "dev.flutter.rfw.examples.remote" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/shared_preferences/shared_preferences/example/android/app/build.gradle b/packages/shared_preferences/shared_preferences/example/android/app/build.gradle index 290981f065e5d..5ba2f9fbca5d0 100644 --- a/packages/shared_preferences/shared_preferences/example/android/app/build.gradle +++ b/packages/shared_preferences/shared_preferences/example/android/app/build.gradle @@ -35,7 +35,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.sharedpreferencesexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/shared_preferences/shared_preferences_android/example/android/app/build.gradle b/packages/shared_preferences/shared_preferences_android/example/android/app/build.gradle index 290981f065e5d..5ba2f9fbca5d0 100644 --- a/packages/shared_preferences/shared_preferences_android/example/android/app/build.gradle +++ b/packages/shared_preferences/shared_preferences_android/example/android/app/build.gradle @@ -35,7 +35,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.sharedpreferencesexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/url_launcher/url_launcher/example/android/app/build.gradle b/packages/url_launcher/url_launcher/example/android/app/build.gradle index d61f6b2ccd415..19036583100fc 100644 --- a/packages/url_launcher/url_launcher/example/android/app/build.gradle +++ b/packages/url_launcher/url_launcher/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.urllauncherexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/packages/url_launcher/url_launcher_android/example/android/app/build.gradle b/packages/url_launcher/url_launcher_android/example/android/app/build.gradle index d61f6b2ccd415..19036583100fc 100644 --- a/packages/url_launcher/url_launcher_android/example/android/app/build.gradle +++ b/packages/url_launcher/url_launcher_android/example/android/app/build.gradle @@ -31,7 +31,7 @@ android { defaultConfig { applicationId "io.flutter.plugins.urllauncherexample" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName