'How to create an android library/module with Proguard applied
Scenario:
I need to create an android Library/Module for a client and I want to Obfuscate the library with Proguard so that the client could not extract or see the source code from Library. How would I achieve this ?
Questions:
1- Is it possible to Obfuscate the library, so the user can not see the code ?
2- Is it possible to create an APK of Library with Proguard applied, and use that APK in other project.
Any suggestions and solutions are appreciated.
Thanks
Solution 1:[1]
First you've to specify the proguard rules for your module/library then you can define it either inside your project proguard rules or you can write these rules in your module level Proguard rules txt file. You can see this Medium article explaining the same.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rahul Mishra |
