Toolchain: Gradle 9.6 + AGP 9.4.1 (Kotlin built-in) y R8 en release

Sin plugin kotlin-android (built-in), DSL kotlin.compilerOptions, sourceSets
legacy fuera, jetifier fuera, jvmTarget 17. Release con minify+shrink y reglas
keep para WorkManager/Room de play-services-ads (reflexión rota por R8).
This commit is contained in:
kprkpr committed 2026-10-21 00:13:07 +02:00
1 parent 8683dec8da
commit 034a63bcee
5 files changed
+19 -39

No files matched your search

+6 -23
View File
@@ -1,25 +1,8 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /home/kprkpr/AndroidStudio/sdkLinux/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# 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
# WorkManager llega vía play-services-ads e instancia su BD Room
# (androidx.work.impl.WorkDatabase_Impl) por reflexión; el R8 optimizador
# rompe ese constructor si no se conserva.
-keep class androidx.work.** { *; }
-keep class * extends androidx.room.RoomDatabase { <init>(...); }
-dontwarn androidx.work.**