Skip to content

Commit

Permalink
update proguard configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pgp committed Dec 13, 2021
1 parent a750168 commit 76a5009
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}

debug {
minifyEnabled false
}
}

lintOptions {
Expand Down
9 changes: 8 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

-optimizationpasses 5

# Remove Log.d messages
-assumenosideeffects class android.util.Log {
public static int d(...);
}

0 comments on commit 76a5009

Please sign in to comment.