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?
我用android studio生成了我的aar库,并将它发布到我在github上的私人仓库中。当我在其他项目中引用我的aar lib时,我可以轻松找到我的源代码,只需按ctrl + B(在windows上)。那么,我该如何隐藏我的源代码呢?
1 个解决方案
#1
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.
代码只是反编译; Java字节码与原始源代码非常相似。隐藏代码的唯一方法是混淆;您可以使用ProGuard(或其商业扩展版本,DexGuard)等工具进行混淆。
#1
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.
代码只是反编译; Java字节码与原始源代码非常相似。隐藏代码的唯一方法是混淆;您可以使用ProGuard(或其商业扩展版本,DexGuard)等工具进行混淆。