eclipse - Multiple Android projects with same GIT submodule -
i wanted adopt submodules
git
android
projects stumbled problems.
backstory
i have multiple projects many use same external library (android library-project), in order make git cleaner , make git each project contain needed material though of using git sub-modules android library project. part works fine got library included sub-module projects.
issue
but android uses these library-projects regular project added project , can add same project once in eclipse. if need work on more 1 project @ time have use multiple instances of eclipse/workspace instead of using eclipse regular way.
is there way have 1 instance of library project in eclipse , @ same time have projects reference respective libraries? or other suggestions how should handle this?
any appreciated
you cannot have library project single instance in eclipse following reason.
- each project uses library might reference different version of library. since submodule physical checkout (working directory) of particular version there no way represent more 1 state of repository @ point in time.
workaround:
- prepare "server" location library project. enough create clone using
git clone --bare
. - clone "server" library project workspace.
- prefix library project reflect name of main project used in.
- repeat step 2 , 3 each main project need library work with.
- everytime changes in library project create feature branch. in each main project consider if new feature might useful or hindering. if not fit need rewrite feature created. when done update version of library (don't shy using tags semantic versioning).