This commit is contained in:
Emmanuel Garcia
2019-09-13 19:06:40 -07:00
committed by GitHub
parent e3c4609a5e
commit 2c857b9370
40 changed files with 222 additions and 78 deletions

View File

@@ -159,8 +159,12 @@ class FlutterPlugin implements Plugin<Project> {
"gradle", "flutter_proguard_rules.pro")
project.android.buildTypes {
release {
// Enables code shrinking, obfuscation, and optimization for only
// your project's release build type.
minifyEnabled true
useProguard true
// Enables resource shrinking, which is performed by the
// Android Gradle plugin.
shrinkResources true
// Fallback to `android/app/proguard-rules.pro`.
// This way, custom Proguard rules can be configured as needed.
proguardFiles project.android.getDefaultProguardFile("proguard-android.txt"), flutterProguardRules, "proguard-rules.pro"