Reputation: 754
I have an android project which is getting big and I want to split it into library and app (library - main functionality, App - Gui and custom issues). And I want to continue in development in splited mode.
First idea is to use subrepository for this. Extract packages which have to be placed in lib and put it in subs directory as a complete android project with manifest, and all the stuff
app/subs/libName/
Then at the and I can from the lib create a Jar and add it into project.
Is it correct, or is there any better approach ? And how touse it with GIT ? One or two repositories ?
Upvotes: 1
Views: 941
Reputation: 68
I would go with one android studio project. Inside android studio project you can add separate modules to keep things organized and reusable.
Changes on booth modules can be committed to one git repository. Use pull request to review changes if you are working with more people.
Upvotes: 1