Reputation: 17627
I have a Gradle project containing the main module and one library module and each one is set up with proguard.
My problem is, that the class which is obfuscated in the library module to "A" or similar is still referenced from the main module with the original name, lets say "MyUtil", which doesn´t exist anymore.
I don´t want to exclude this class from the obfuscation if possible, so is there any way to do obfuscation accross modules?
Upvotes: 1
Views: 988
Reputation: 17627
The problem was solved after using
consumerProguardFiles
in the library project.
Now it works accross modules without doing anything
Upvotes: 1
Reputation: 24039
Sounds like you need to create a API class in the you library that is excluded from the obfuscation. The API class would just be a facade and call your internal library methods.
Upvotes: 1