Skip to content

Commit

Permalink
Enable R8 in the DiceRoller sample app (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartland authored Sep 9, 2024
1 parent 0b503a4 commit 36d62a1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions DiceRoller/androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,25 @@ android {
compose = true
buildConfig = false
}
buildTypes {
getByName("release") {
// Enables code shrinking, obfuscation, and optimization for only
// your project's release build type. Make sure to use a build
// variant with `isDebuggable=false`.
isMinifyEnabled = true

// Enables resource shrinking, which is performed by the
// Android Gradle plugin.
isShrinkResources = true

proguardFiles(
// 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.
getDefaultProguardFile("proguard-android-optimize.txt"),
)
}
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}
Expand Down

0 comments on commit 36d62a1

Please sign in to comment.