Hi everyone đź‘‹
I was wondering if there are any tools available for code obfuscation in Kotlin/Native (similar to R8 on Android).
Without an obfuscation tool, how are we supposed to safely ship production apps built with Kotlin/Native?
Is there anything currently in development that’s open source and free?
Thanks in advance! 🙏
f
François
09/03/2025, 8:16 AM
Kotlin native in release build is already obfuscate by nature.
In native development world, there is some security solution to increase the obfuscation of code but I didn’t find one supporting kotlin/native
p
Paul Kindler
09/03/2025, 12:09 PM
In also depends on the target you're targeting, for jvm targets you can use normal java deobfuscator.
p
PHondogo
09/03/2025, 12:18 PM
For jvm it is also possible to use r8, if write JavaExec Gradle task that will execute r8 with passing input as cmd args
f
François
09/03/2025, 12:30 PM
The question is about kotlin native.
kotlin jvm obfuscation has existing solutions, it’s pretty standard