Kotlin 1.2.50 increases APK size by 97 kb versus 1.2.41

I consider this undesirable.
It seems like the change is a lot of small filess ending in .kotlin_metdata are added. Why is that?

1 Like

Those .kotlin_metadata files are to help the compiler resolve free functions, extension functions etc. They are not needed in Android (are they included in the apk?) You can strip them out (or use proguard)

2 Likes

That was a release build so Proguard ran. Maybe Proguard hasn’t been updated to remove these files yet?

Please vote for https://youtrack.jetbrains.com/issue/KT-25174

1 Like