androidgithubexternal-dependencies

How to publish android library on github containing private dependencies


My job is to develop an android library (my first library ever) to be used by other company's applications. Thing is, I need to use dependencies from a third-party provider who keeps them private (I need to set credentials in the build.gradle file to be able to download them), and the team of our first consuming appliciation told us they were getting errors about that (they could't find said dependencies). We downloaded them from our provider and uploaded them (2GB worth) to nexus as a quick fix and it worked.

Thing is, the company has decided to move from self-hosted gitlab/nexus to cloud github. They have set an organization and we (developers) are included in it.

I've created my own repo, uploaded our last version and created the script to publish our library. I see the same files I used to upload to nexus on the github repository. I tell the guys of the consuming application to give it a test and they say they find the same errors: they cannot find provider's private dependencies.

At this point I don't know what to do.

The situation is specific enough for me not to be able to find anything about it on the github docs. Has anyone encountered a similar issue?


Solution

  • There´s this plugin I found that easily allow a building a fat aar: https://github.com/kezong/fat-aar-android