Royalgarden · @RobertSolley405
38 followers · 32 posts · Server mstdn.business

It seems like the state-of-the-art for Kotlin for Android with proguard/r8 is ...

DON'T?

(Or use @keep liberally)

@Keep seems like a maintenance nightmare (CI has to build with proguard turned on, and even then w/reflection, which seems unavoidable in kotlin/android, you won't find problems until you run code..)

If you don't use keep then you have to understand the internals of Kotlin (companion objects, enum classes, etc) and how it maps to java classes?

#android #kotlin #proguard #r8

Last updated 2 years ago