reenable r8 shrinking
This commit is contained in:
@@ -46,8 +46,12 @@ android {
|
||||
buildTypes {
|
||||
release {
|
||||
applicationIdSuffix = ".release"
|
||||
isMinifyEnabled = false
|
||||
isShrinkResources = false
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
}
|
||||
debug {
|
||||
applicationIdSuffix = ".debug"
|
||||
@@ -60,8 +64,12 @@ android {
|
||||
versionNameSuffix = "-${LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd"))}-nightly"
|
||||
signingConfig = signingConfigs.findByName("gh-actions")
|
||||
|
||||
isMinifyEnabled = false
|
||||
isShrinkResources = false
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
}
|
||||
|
||||
flavorDimensions += "variant"
|
||||
|
||||
26
app/app/proguard-rules.pro
vendored
26
app/app/proguard-rules.pro
vendored
@@ -1,21 +1,7 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.kts.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
-dontobfuscate
|
||||
-dontoptimize
|
||||
-keep public class de.mm20.launcher2.ui.launcher.search.common.SearchableItemVM {
|
||||
public <init>();
|
||||
}
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
@@ -8,7 +8,6 @@ targetSdk = "36"
|
||||
|
||||
pluginSdk = "2.2.0"
|
||||
|
||||
gradle = "8.1.2"
|
||||
android-gradle-plugin = "9.1.0"
|
||||
ksp-gradle-plugin = "2.3.4"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user