Skip to content

Commit 36d62a1

Browse files
authored
1 parent 0b503a4 commit 36d62a1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

DiceRoller/androidApp/build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,25 @@ android {
3636
compose = true
3737
buildConfig = false
3838
}
39+
buildTypes {
40+
getByName("release") {
41+
// Enables code shrinking, obfuscation, and optimization for only
42+
// your project's release build type. Make sure to use a build
43+
// variant with `isDebuggable=false`.
44+
isMinifyEnabled = true
45+
46+
// Enables resource shrinking, which is performed by the
47+
// Android Gradle plugin.
48+
isShrinkResources = true
49+
50+
proguardFiles(
51+
// Includes the default ProGuard rules files that are packaged with
52+
// the Android Gradle plugin. To learn more, go to the section about
53+
// R8 configuration files.
54+
getDefaultProguardFile("proguard-android-optimize.txt"),
55+
)
56+
}
57+
}
3958
composeOptions {
4059
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
4160
}

0 commit comments

Comments
 (0)