yayacal/androidApp/proguard-rules.pro
xfy ba742f1597 build: 启用 R8 压缩与资源优化,添加 ProGuard 规则
- 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>
2026-05-19 07:42:29 +08:00

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>;
}