I would like to bring in the src directory main in my projects as a Library or dependency.
Using Android Studio/Gradle Flavor setup, it's possible to have multi-app setup with flavors:
app/
src/
flavor1/
flavor2/
main/
main carrying the base code of all flavors in the project.
I would like to centralize my main code across multiple projects
One way I envision, is to bring the main directory in via git-clone-task or gradle-git
But that would limit the scope to my team only.
Is there is a way or understanding behind centralizing the retrieval and placement of a src directory in Android Studio Projects using Gradle, then I could make the project public without all the ssh/auth stuff needed with the git-clone way.
I really want to bring in the main dir like....
compile 'com.awesomeprojects.src.main:1.0'
What are some options for this use case?