diff --git a/android/app/build.gradle b/android/app/build.gradle index b10c760..69d62d8 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -64,6 +64,9 @@ android { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. + minifyEnabled true + shrinkResources true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.debug } } diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 0000000..ff41c03 --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1,10 @@ +## Flutter wrapper + -keep class io.flutter.app.** { *; } + -keep class io.flutter.plugin.** { *; } + -keep class io.flutter.util.** { *; } + -keep class io.flutter.view.** { *; } + -keep class io.flutter.** { *; } + -keep class io.flutter.plugins.** { *; } +# -keep class com.google.firebase.** { *; } // uncomment this if you are using firebase in the project + -dontwarn io.flutter.embedding.** + -ignorewarnings \ No newline at end of file diff --git a/android/gradle.properties b/android/gradle.properties index 38c8d45..443ee21 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -2,3 +2,4 @@ org.gradle.jvmargs=-Xmx1536M android.enableR8=true android.useAndroidX=true android.enableJetifier=true +extra-gen-snapshot-options=--obfuscate \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index f777a0f..c0e6732 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.2+1 +version: 1.0.3 environment: sdk: ">=2.7.0 <3.0.0"