1

I have generate my aar library with android studio, and published it to my private repo on github. when I reference my aar lib in other project, I can easilly find my source code, just press ctrl+B(on windows). So, how can I hide my source code?

zishuai
  • 31
  • 1
  • 3

1 Answers1

0

The code is just decompiled; Java bytecode is very much equivalent to the original source code. The only way to hide the code is obfuscation; you can use tool like ProGuard (or commercial extended version of it, DexGuard) to do obfuscation.

avysk
  • 1,973
  • 12
  • 18