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

Merge layouts #44

Open gpallas16 opened 5 years ago

gpallas16 commented 5 years ago

What are the steps to reproduce this issue?

  1. Create project A and add some layouts
  2. Import project A's aar to project B. All layouts from project A are accessible as expected.
  3. Create fat aar with project A and project B
  4. Import fat aar to project C. The layouts from project A are not accessible and app crashes if some class from project B uses a layout from project A (which was working normally before the fat aar) . All project B layouts are accessible.

What happens? The layout files are in .aar/class.jar/res/layout and not in .aar/layout. The R file from project A is missing too. I use minifyEnabled true with no shrinking and no optimizations. I am relatively new to aar so I dont know if this is a bug or I m missing something. Any advice would be nice!

I use gradle 3.2.0 and fat-aar version 2.0.2