简体   繁体   中英

How to publish Android module to GitHub and use it as a library?

I have an Android project that contains 3 modules:

  • app module - Main module with which I build the APK
  • feature module - Contains code for a specific feature
  • common module - A module that both "app" and "feature" depend on, mainly to share content between them two

Currently all 3 of these modules are in the same project and the same Github repo.
How can I push "feature" and "common" each into their own private repositories and include them in the main project (than contains only "app") as libraries?

You should clone this Github repo to a new. And next remove all unnecessary:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM