The effects of Kotlin inside Android apps and libraries
summary
Examines compiled Kotlin inside Android apps: the Google I/O sample has ~300 Kotlin files, 100+ libs, 176 jars and 16 dex files that ProGuard shrinks by ~73% to one dex and reduces APK size ~55%. Kotlin stdlib + coroutines add ~15.5 MB; data classes, null checks and metadata create predictable bytecode and embedded protobuffer annotations. ProGuard/DexGuard add full Kotlin support, a metadata viewer exposes Kotlin structure, R8 4.10 can keep metadata, and removing null checks yields about 32 KB savings in this sample.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker background
- 1:41Kotlin runtime libraries in apps
- 4:08Kotlin constructs in bytecode
- 9:14Optimizing Kotlin with ProGuard
- 13:52Impact of optimization on Kotlin code
- 19:17Kotlin metadata format and tools
- 27:26Kotlin reflection and metadata
- 30:17Obfuscation of Kotlin bytecode
- 33:30Further reading and resources
- 36:39Conclusion and Q&A
