File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,25 @@ android {
36
36
compose = true
37
37
buildConfig = false
38
38
}
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
+ }
39
58
composeOptions {
40
59
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
41
60
}
You can’t perform that action at this time.
0 commit comments