How do I easily obfuscate an Android app when using IntelliJ IDEA?
-
27-09-2019 - |
Question
I imagine there are two options:
Build a parallel ANT script and bypass the IDE (seems pretty inefficient when the IDE is so good)
Somehow integrate Proguard/yGuard or similar with IntelliJ
I've tried installing plugins for Proguard/yGuard into IntelliJ but neither seem to be working (installed ok, but don't appear under Facets), and actually I'm not 100% sure these plugins will help me obfuscate or whether they just provide a de-obfuscation facility for debugging.
I figure ANT is the best route, but would appreciate your thoughts. I just want a way to reduce the chances of someone reverse-engineering apps, but without spending hours setting it up.
Solution
I'd vote for 1st option - write an ANT script. This has the advantage of being independent of the IDE, even a build server can run it easily.
OTHER TIPS
One thing you could do is just open the project in Eclipse by creating a new project from existing sources. The two IDEs play quite nicely with each other. Many teams use both and go back and forth between them.