From 028027e6b1f1bba781ced46b2b1804d4cac062d6 Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Tue, 29 Oct 2024 10:20:16 -0700 Subject: [PATCH] [various] Remove multiDexEnabled (#7956) We had manually added `multiDexEnabled` to various plugin example apps over time to fix build failures, but it's not needed for plugins with a `minSdk` of 20+ ([reference](https://developer.android.com/build/multidex)), and Flutter (and thus all of our plugins) requires 21+, so the setting is just cruft. --- packages/espresso/example/android/app/build.gradle | 1 - .../google_maps_flutter/example/android/app/build.gradle | 1 - .../google_maps_flutter_android/example/android/app/build.gradle | 1 - .../google_sign_in/example/android/app/build.gradle | 1 - .../google_sign_in_android/example/android/app/build.gradle | 1 - .../image_picker/image_picker/example/android/app/build.gradle | 1 - .../image_picker_android/example/android/app/build.gradle | 1 - packages/interactive_media_ads/example/android/app/build.gradle | 1 - packages/local_auth/local_auth/example/android/app/build.gradle | 1 - .../local_auth_android/example/android/app/build.gradle | 1 - 10 files changed, 10 deletions(-) diff --git a/packages/espresso/example/android/app/build.gradle b/packages/espresso/example/android/app/build.gradle index be165715ca28..84b682fdb760 100644 --- a/packages/espresso/example/android/app/build.gradle +++ b/packages/espresso/example/android/app/build.gradle @@ -36,7 +36,6 @@ android { versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - multiDexEnabled true } buildTypes { diff --git a/packages/google_maps_flutter/google_maps_flutter/example/android/app/build.gradle b/packages/google_maps_flutter/google_maps_flutter/example/android/app/build.gradle index a1ea94ae55cd..18969013153b 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/android/app/build.gradle +++ b/packages/google_maps_flutter/google_maps_flutter/example/android/app/build.gradle @@ -32,7 +32,6 @@ android { applicationId "io.flutter.plugins.googlemapsexample" minSdkVersion 20 targetSdkVersion 28 - multiDexEnabled true versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/build.gradle b/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/build.gradle index fc357ff0e1ec..8107f238eb47 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/build.gradle +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/build.gradle @@ -33,7 +33,6 @@ android { applicationId "io.flutter.plugins.googlemapsexample" minSdkVersion flutter.minSdkVersion targetSdkVersion 34 - multiDexEnabled true versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 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 422b58cc5199..0251b4794a29 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 @@ -33,7 +33,6 @@ android { applicationId "io.flutter.plugins.googlesigninexample" minSdkVersion flutter.minSdkVersion targetSdkVersion 28 - multiDexEnabled true versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 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 a92aa744a44c..867de3fd0ac3 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 @@ -33,7 +33,6 @@ android { applicationId "io.flutter.plugins.googlesigninexample" minSdkVersion flutter.minSdkVersion targetSdkVersion 34 - multiDexEnabled true versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 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 e72b68977644..f11653b7fa1e 100755 --- a/packages/image_picker/image_picker/example/android/app/build.gradle +++ b/packages/image_picker/image_picker/example/android/app/build.gradle @@ -34,7 +34,6 @@ android { applicationId "io.flutter.plugins.imagepicker.example" minSdkVersion flutter.minSdkVersion targetSdkVersion 28 - multiDexEnabled true versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 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 9582952de9f3..8d1665a9de7e 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 @@ -34,7 +34,6 @@ android { applicationId "io.flutter.plugins.imagepicker.example" minSdkVersion flutter.minSdkVersion targetSdkVersion 34 - multiDexEnabled true versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/packages/interactive_media_ads/example/android/app/build.gradle b/packages/interactive_media_ads/example/android/app/build.gradle index 97e8ae9a06dc..5d5473c54690 100644 --- a/packages/interactive_media_ads/example/android/app/build.gradle +++ b/packages/interactive_media_ads/example/android/app/build.gradle @@ -44,7 +44,6 @@ android { applicationId "dev.flutter.packages.interactive_media_ads_example" minSdk flutter.minSdkVersion targetSdk flutter.targetSdkVersion - multiDexEnabled true versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 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 f075d5813cf9..c564af855289 100644 --- a/packages/local_auth/local_auth/example/android/app/build.gradle +++ b/packages/local_auth/local_auth/example/android/app/build.gradle @@ -36,7 +36,6 @@ android { versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - multiDexEnabled true } buildTypes { 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 2da8796f938e..7db5363be38d 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 @@ -36,7 +36,6 @@ android { versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - multiDexEnabled true } buildTypes {