Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
build(release): Enable preciseShrinking
Browse files Browse the repository at this point in the history
  • Loading branch information
YuKongA committed Jun 3, 2024
1 parent 5e95f92 commit 3b58c9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ android {
buildTypes {
release {
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
)
signingConfig =
signingConfigs.getByName(if (keystorePath != null) "github" else "release")
isShrinkResources = true
proguardFiles("proguard-rules.pro")
signingConfig = signingConfigs.getByName(if (keystorePath != null) "github" else "release")
}
debug {
if (keystorePath != null) signingConfig = signingConfigs.getByName("github")
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ android.enableResourceOptimizations=true
# Kotlin
kotlin.code.style=official
kotlin.daemon.useFallbackStrategy=false

# Experimental
android.experimental.enableNewResourceShrinker.preciseShrinking=true

0 comments on commit 3b58c9d

Please sign in to comment.