I've been asked a 'challenging' question about our...
# announcements
d
I've been asked a 'challenging' question about our Kotlin adoption at work - that of decompiling. Our products at work are broken down into several binary libraries and some developers, it turns out, are quite reliant on the ability to decompile these in the IDE at Application Debug time. This is not possible out-of-the-box in Android studio. Does anyone have a solution for an ability like the Fernflower decompiler (this is the name of the IDE's Java one), for Kotlin? At this stage it can afford to be 'messier' than the Java one; I'm just looking to offer them an improvement on a 'Can't view compiled code' message.
s
If its decompilable cant you just ship the source code with the binaries?
d
This is an option, yes.
d
That is what I would suggest.
r
IntelliJ IDEA has a decompiler
Maybe only Ultimate, I don’t know
l
Shipping the sources makes way more sense to me. Android Studio and IntelliJ IDEA Ultimate will attempt decompiling to Java, but you loose a bunch of things in the process, including the fact that it was Kotlin with KDoc to begin with.
d
👍 Thanks for suggestions.