Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ android {
if (hasKeystoreProperties) {
signingConfig = signingConfigs.getByName("release")
}

// Remove unused code and resources, and optimize the code without
// obfuscating (see proguard-rules.pro's -dontobfuscate) so that the
// build stays reproducible.
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",
)
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Shrink and optimize, but don't rename classes/members, so release builds
# stay reproducible and stack traces stay readable without a mapping file.
-dontobfuscate
Loading