Skip to content

Instantly share code, notes, and snippets.

@PabloProta
Created March 26, 2023 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PabloProta/29f4457f9113a27ecc3f016c3e4e6dc7 to your computer and use it in GitHub Desktop.
Save PabloProta/29f4457f9113a27ecc3f016c3e4e6dc7 to your computer and use it in GitHub Desktop.
project/module/build.gradle.kts
android {
buildTypes {
getByName("release") {
// Enables code shrinking, obfuscation, and optimization for only
// your project's release build type.
isMinifyEnabled = true
// Enables resource shrinking, which is performed by the
// Android Gradle plugin.
isShrinkResources = 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