Skip to content

Commit f9d3b23

Browse files
committed
Migrate app module to new optimization DSL
1 parent da1d0b5 commit f9d3b23

3 files changed

Lines changed: 1 addition & 10 deletions

File tree

app/build.gradle.kts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ android {
4545
}
4646

4747
val release = named("release") {
48-
isMinifyEnabled = true // Enable minification
49-
isShrinkResources = true // Shrink resources to reduce APK size
50-
proguardFiles(
51-
getDefaultProguardFile("proguard-android-optimize.txt"),
52-
"proguard-rules.pro"
53-
)
48+
optimization.enable = true
5449

5550
// Can be accessed with BuildConfig.BUILD_TIME
5651
buildConfigField("long", "BUILD_TIME", "${System.currentTimeMillis()}L")
@@ -71,10 +66,6 @@ android {
7166

7267
applicationIdSuffix = ".benchmark"
7368
matchingFallbacks += release.name
74-
proguardFiles(
75-
getDefaultProguardFile("proguard-android-optimize.txt"),
76-
"proguard-benchmark-rules.pro"
77-
)
7869
isDebuggable = false
7970
}
8071
}

app/proguard-benchmark-rules.pro renamed to app/src/benchmark/keepRules/proguard-benchmark-rules.keep

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)