diff --git a/packages/example/android/app/build.gradle b/packages/example/android/app/build.gradle index c2bc4482..1e66fd37 100644 --- a/packages/example/android/app/build.gradle +++ b/packages/example/android/app/build.gradle @@ -40,7 +40,17 @@ android { } buildTypes { + debug { + debuggable false + minifyEnabled true + shrinkResources true + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } release { + debuggable false + minifyEnabled true + shrinkResources true + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug diff --git a/packages/example/android/app/proguard-rules.pro b/packages/example/android/app/proguard-rules.pro new file mode 100644 index 00000000..17edfed5 --- /dev/null +++ b/packages/example/android/app/proguard-rules.pro @@ -0,0 +1,7 @@ +-assumenosideeffects class android.util.Log { + public static *** d(...); + public static *** v(...); + public static *** w(...); + public static *** i(...); + public static *** e(...); +}