Created
March 28, 2022 16:02
-
-
Save mukeshsolanki/999e2eb3235b4998309c88f31d850e7e to your computer and use it in GitHub Desktop.
Used for the https://medium.com/@TheMukeshSolanki/how-to-prevent-hackers-from-reverse-engineering-your-android-apps-2981661ab1c2
This file contains 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
android { | |
buildTypes { | |
release { | |
// Enables code shrinking, obfuscation, and optimization for only | |
// your project's release build type. | |
minifyEnabled true | |
// Enables resource shrinking, which is performed by the | |
// Android Gradle plugin. | |
shrinkResources true | |
// Includes the default ProGuard rules files that are packaged with | |
// the Android Gradle plugin. To learn more, go to the section about | |
// R8 configuration files. | |
proguardFiles getDefaultProguardFile( | |
'proguard-android-optimize.txt'), | |
'proguard-rules.pro' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment