Last active
June 27, 2017 06:09
-
-
Save seriabov/b20f25caf1bdb51d14edfbfb447bc5d7 to your computer and use it in GitHub Desktop.
Proguard settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enabling ProGuard for both debug and release versions. | |
Configurations for proguard-rules.pro can be found here: https://github.com/krschultz/android-proguard-snippets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildTypes { | |
release { | |
shrinkResources true | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro", "proguard-rules-release.pro" | |
} | |
debug { | |
shrinkResources true | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro", "proguard-rules-debug.pro" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ProGuard rules for debug version | |
-dontobfuscate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ProGuard rules for release version | |
-repackageclasses '' # remove packages | |
-allowaccessmodification # allow access modifications |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment