Skip to content

Commit 6ef2618

Browse files
agnostic-apolloGrimler91
authored andcommitted
Changed: Enable minifyEnabled
But still keep shrinkResources and obfuscation disabled for testing reproducible builds and maintaining stacktraces of crashes.
1 parent 51a7f6d commit 6ef2618

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ android {
2626

2727
buildTypes {
2828
release {
29-
minifyEnabled false
29+
minifyEnabled true
30+
shrinkResources false // Reproducible builds
3031
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
3132
}
3233

app/proguard-rules.pro

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in android-sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
-dontobfuscate

0 commit comments

Comments
 (0)