kotlin-multiplatform-proguard-r8
Installation
SKILL.md
When to Use This Skill
Use when you need to:
- Enable R8 minification for a KMP Android release build
- Debug a release-only crash caused by ProGuard removing or renaming classes
- Write keep rules for KMP artifacts (shared code, Koin modules, Ktor, SQLDelight)
- Audit
proguard-rules.profor over-broad or missing rules - Reduce APK size without breaking runtime behavior
Trigger keywords: ProGuard, R8, obfuscation, minification, shrinking, keep rules, proguard-rules.pro, release build crash, ClassNotFoundException release, NoSuchMethodException release, APK size, minifyEnabled, shrinkResources, R8 full mode, Koin keep, Ktor keep, SQLDelight keep, kotlinx.serialization keep.
Freshness rule: R8 full mode and AGP default rule sets change between AGP versions — recheck the AGP and R8 release notes before upgrading past a minor version.