DataClassGenerate. Shrinking Kotlin data classes
summary
Examines how Kotlin data classes affect Android app size and applies DEX-level optimizations plus a Kotlin-specific tool called DataClassGenerate (DCG). Describes DCG’s @DataClassGenerate annotation, the DataClassGenerate Kotlin compiler plugin, and how that compiler plugin interacts with Facebook’s Redex Android optimizer, and explains using the Kotlin Compiler Plugin API to implement DCG.
AI-written summary · about
related talks
28mBest practices using compilers in Android Studio
34mUnderstand Every Line of Your Codebase
32mRedex, Your Build, And You
37mKotlin: Uncovered
35mUnderstanding the Kotlin to Dalvik bytecode translation
32mMigrating from Autovalue to Kotlin Data Classes
23mShrinking in the Age of Kotlin
41mDigging into D8 and R8