Kanika
Kanika

Reputation: 734

Android: What is the best way to distribute one's library project aar?

I want to publish my aar but do not want to publish it with open source license. Hence, what is the right way to do it. I tried the jCenter() but it is paid and Amazon S3 only allows private repo hosting. I want it public.

Thanks in advance.

Upvotes: 3

Views: 1453

Answers (1)

Kanika
Kanika

Reputation: 734

After a lot of research, I found the solution.

  1. If you want to distribute your artifact and do not want to make it open source and can spend money, then jCenter() is the best way to go.

  2. If you want to distribute your artifact for free and can make it Open source, then distributing it with Apache license is the best way to go.

  3. If you still want to distribute your artifact for free and do not want to make it Open Source, you can host the maven repo in the GitHub. Following article helped me in doing that: http://andydyer.org/blog/2014/10/05/hosting-android-dependencies-on-github/

Upvotes: 4

Related Questions