In this Droidcon London 2021 presentation, Keep Rules in the Age of Kotlin, we lay out some potential security concerns, such as leaking data via Kotlin assertions, and the potential impact of Kotlin metadata on the size of apps.
Kotlin is relatively young – only 11 years old – and Android has only had official support for Kotlin for 5 years; compared to ProGuard, which was created 20 years ago in the Java 1.4 age.
In the history of Android and ProGuard, we are truly in a new age: the Age of Kotlin. In this age, it is much more complicated to write ProGuard keep rules for Kotlin code than Java and by the end of the presentation, you’ll see why you need to think in terms of Java when writing keep rules for Kotlin code.
You can play around with the examples on the Droidcon London 2021: Keep Rules in the Age of Kotlin ProGuard Playground: [ Ссылка ] and share your own tips on the Guardsquare community [ Ссылка ]
![](https://i.ytimg.com/vi/wdUaeMiw3QE/maxresdefault.jpg)