Skip to content

Commit

Permalink
Minify & shrink resources for release build
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Jun 28, 2024
1 parent 3c09451 commit a12aba7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,23 @@ android {
buildTypes {
debug {
signingConfig = signingConfigs.debug
minifyEnabled = false
shrinkResources = false
applicationIdSuffix = ".debug"
versionNameSuffix = "-DEBUG"
}
release {
signingConfig = signingConfigs.release
// Enables code shrinking, obfuscation, and optimization for only
// your project's release build type. Make sure to use a build
// variant with `debuggable false`.
minifyEnabled = true

// Enables resource shrinking, which is performed by the
// Android Gradle plugin.
shrinkResources = true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
'proguard-rules.pro'
}
}
}
Expand Down

0 comments on commit a12aba7

Please sign in to comment.