Is there a way to obfuscate the code directly in editor?
At this moment, if I want to see the obfuscated code of my project, I have to compile the project, do reverse engineering and then view the code via tools like jd-gui
.
Possible to achieve all this via some add-on so that I can compile obfuscated code, i.e. make it work just like before obfuscation.
NOTE
To clarify, I do not need to obfuscate code on export as this feature is already present. I need to obfuscate the code on live without compiling it or at least without having to export it to apk.
I dont know about any pre-compile obfuscator , however i think what you desire can be achieved by following steps :
If you are using Eclipse, you may want to install JadClipse to ease your workflow. It will open any binary class file in your workspace directly in the decompiled textual format.
Whether or not that class file is an obfuscated binary or not, depends on your remaining tool chain, of course.
In your android-sdk directory, check the tools/proguard/bin directory: this includes some proguard executables (proguard is the tool used for obfuscation). I have never used them, but I'm convinced one of these executables can help you with your question (there is even one with a gui interface!).