Export android library project for reuse without source code

后端 未结 2 710
夕颜
夕颜 2021-01-03 11:13

I need to export a library project without the source code for security reasons. Unfortunately the jar file generated within a library project does not contain the resources

2条回答
  •  心在旅途
    2021-01-03 11:30

    One idea I've heard mention of is using a regular Library project with a reference to a Jar file which is where you would put all of your proprietary code. All of the assets would need to be in your library project and would be readable by the users of your library. Keep in mind that anyone with apktool can extract these files from the final APK anyways.

    However, the code in the JAR would not be readable and your users would need to reverse engineer them which can be difficult, especially if you obfuscate it.

提交回复
热议问题