- androidApp: 启用 isMinifyEnabled 和 isShrinkResources - androidApp: ABI 过滤(arm64-v8a, armeabi-v7a),关闭 buildConfig - gradle.properties: 启用并行构建、守护进程、R8 fullMode - 新建 proguard-rules.pro 保留 KMP/Compose/kotlinx.datetime 规则 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
21 lines
598 B
Prolog
21 lines
598 B
Prolog
# Kotlin Metadata (required for KMP)
|
|
-keep class kotlin.Metadata { *; }
|
|
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod
|
|
|
|
# kotlinx.datetime
|
|
-keep class kotlinx.datetime.** { *; }
|
|
|
|
# tyme4kt (Chinese traditional calendar)
|
|
-keep class cn.tyme.** { *; }
|
|
|
|
# Compose runtime reflective lookups
|
|
-keep class androidx.compose.runtime.** { *; }
|
|
|
|
# ViewModel (used by CalendarViewModel)
|
|
-keep class * extends androidx.lifecycle.ViewModel { *; }
|
|
|
|
# Keep entry point composables referenced by string name
|
|
-keepclassmembers class * {
|
|
@androidx.compose.runtime.Composable <methods>;
|
|
}
|