我有一个创建一个android库项目,必须给第三方应用程序,我有两个要求,
1)将库项目转换为jar文件(或)。
2)对库项目中的源码进行混淆处理。
基本上我不想让第三方应用程序开发人员来获得我的源代码。
请帮帮我!提前感谢!
发布于 2014-05-19 15:08:29
ProGuard-Application允许您收缩和混淆您的代码。它来自Android开发人员,所以你可以假定使用它是安全的。
发布于 2014-05-19 15:09:21
这是你能得到的最接近的结果:
1: Create a regular Android library project, and get it working.
2: Copy that Android library project into another directory.
3: Create a JAR from the compiled Java classes from the original Android library project, and put that JAR in the libs/ directory of the copy you made in Step #2. You should be able to run ProGuard on this JAR manually, though I haven't tried that.
4: Remove everything inside the src/ directory of the copied library project, leaving behind and empty src/ directory.
5: ZIP up or otherwise distribute the copied Android library project.发布于 2014-05-19 15:28:28
这就是你需要做的:
通过启用proguard,第三方开发人员将无法访问您的源代码的反向工程您的apk。明智地使用!
https://stackoverflow.com/questions/23731635
复制相似问题