Is there something like R8 / Proguard for kotlin m...
# ksp
d
Is there something like R8 / Proguard for kotlin multiplatform? I assume when building for Android the R8 just works, what about the other KMP targets? Any option to minify when targeting iOS targeting swift (via SKIE) for example? Not even talking about obfuscation, which is also something I'd like to have, but about minification of the kotlin side. When using CMP on android having minification on makes a big difference in performance and reduces the footprint of the app by a lot.
t
By default release binaries are optimized which should reduce size and improve performance. There's also
dead_strip
which should be enabled for dynamic frameworks by default and it should remove unused symbols.
👍 1
j
For JS the Kotlin compiler does some DCE, and then webpack toolchain has a million options to do the rest.
👍 1
d
Thank you both. So I guess the answer is "KMP already does something+ use whatever the platform already gives you" Which means I have to learn more on the specific platform ways of doing that