I proposed to use -flattenpackagehierarchy to organize obfuscated classes from you lib (https://github.com/helpcrunch/android-sdk-demo/issues/33)
but I found out that this instruction is exposed to all consumers. As a result all my classes are obfuscated and moved to com.helpcrunch.library package. My mapping file looks like:
It's very confusing to investigate crash reports. I want all Help-Crunch classes stay in com.helpcrunch.library.** package but all my classes stay out of it.
So please use -flattenpackagehierarchy for preparing your AAR library but not include -flattenpackagehierarchy 'com.helpcrunch.library' into proguard.txt inside AAR.
I guess it can be done by separated file for consumers:
Returning to ignored issue from https://github.com/helpcrunch/android-sdk-demo/issues/49
I proposed to use
-flattenpackagehierarchy
to organize obfuscated classes from you lib (https://github.com/helpcrunch/android-sdk-demo/issues/33) but I found out that this instruction is exposed to all consumers. As a result all my classes are obfuscated and moved tocom.helpcrunch.library
package. My mapping file looks like:It's very confusing to investigate crash reports. I want all Help-Crunch classes stay in
com.helpcrunch.library.**
package but all my classes stay out of it.So please use
-flattenpackagehierarchy
for preparing your AAR library but not include-flattenpackagehierarchy 'com.helpcrunch.library'
into proguard.txt inside AAR.I guess it can be done by separated file for consumers: