3

I'm trying to build an Android Library SDK packaged as AAR. I'm depending on other companies AAR's as Gradle dependency.

I would like to have a single AAR (mine) that contain all of the other AAR so customers could have a single AAR to integrate with.

How can you package the dependent AAR in to your owns?

(the 3rd party AAR are not publicly available)

Ika
  • 1,456
  • 1
  • 15
  • 24
  • I have the same exact question and I wanted to see if you found a resolution. Any pointers would be greatly helpful. – Anil Gorthy Dec 21 '15 at 21:36
  • 1
    I found this project userful https://github.com/adwiv/android-fat-aar – Ika Dec 28 '15 at 14:13
  • Thank you, @Ika. I was able to accomplish this, see my post here: – Anil Gorthy Dec 28 '15 at 22:16
  • @AnilGorthy think it's not exactly the same thing. I wanted to be able to deliver a fat AAR while this solves the problem of transitive dependencies (another issue). I'm happy you got things working. – Ika Dec 29 '15 at 09:49
  • @lka understood. Just curious if you implemented fat AAR and what your experiences are. Thank you. – Anil Gorthy Feb 09 '16 at 17:02
  • Hi @AnilGorthy I did implement the fat AAR and it worked out just as I expected. I was able to deliver a single AAR that included the 3rd party I used. My customers were able to have a single AAR to integrate with. – Ika Feb 10 '16 at 06:33

0 Answers0