adwiv / android-fat-aar

Gradle script that allows you to merge and embed dependencies in generted aar file
The Unlicense
1.46k stars 435 forks source link

How do I obfuscate the merged AAR? #16

Closed b95505017 closed 7 years ago

b95505017 commented 8 years ago

It seems like turn on minifyEnabled is not working, I'll get lot's of duplicate definition of library class and the output class.jar lost most of the codes.

adwiv commented 8 years ago

Where do you get duplicate definition - while compiling the library or while compiling the app?

Also does if work properly without minify enabled?

b95505017 commented 8 years ago

Sorry I found this may be false alarm. The real issue is that task embedProguard can't find proguardLibFile at first, I have to type twice assembleRelease so that proguardLibFile.exists() become true. It means that AAR's dependencies's consumerProguardFiles doesn't include correctly if I did clean release build.