Mobbeel / fataar-gradle-plugin

Gradle plugin to help embed dependencies in generated AAR artifact
https://plugins.gradle.org/plugin/com.mobbeel.plugin
Apache License 2.0
342 stars 44 forks source link

Internal dependency minify issue #2

Closed NicoToast closed 6 years ago

NicoToast commented 6 years ago

After assemble release task,my main module minify is successfully, but my sub module minify is failed。 I'm sure minifyEnabled is true in sub module build.gradle. How can I solve the problem?

oscarcpozas commented 6 years ago

Problem seems to be with the configuration of Proguard. Exactly what's going wrong? Isn't the task over?

NicoToast commented 6 years ago

For example: mylibrary-unspecified.aar ---libs ---base.jar (Proguard noneffective) ---common.jar (Proguard noneffective) ---classes.jar (Proguard effective) ---AndroidManifest.xml

mylibrary depend on base and common. In addition, common depend on base. Now I want to make Proguard effect in base.jar and common.jar. Thanks for your answer.

oscarcpozas commented 6 years ago

Currently, the plugin does not support proguard on external dependencies outside the workspace. It should not be difficult to add proguard to these dependencies, if you want you can send me a PR with this functionality.