Multiple Android projects with the same GIT submodule

I recently wanted to take submodulesout GITwith my projects Android, but came across some problems.

Background

I have several projects, but many use the same external library (Android project of the Android library) to make a GIT cleaner and make GIT for each project, contain all the necessary materials, although I used GIT submodules for the Android library project. This part works great, and I included the library as a submodule for projects.

Question

But Android uses these library projects, which are basically a regular project that is added to the project, and I can add the same project once in Eclipse. Therefore, if I need to work on several projects at the same time, I should use several instances of Eclipse / workspace instead of the usual Eclipse.

Is there a way to have only 1 instance of my library project in eclipse and at the same time have all the projects referencing their respective libraries? Or any other suggestions, how should I handle this?

Any help is much appreciated

+5
source share
1 answer

You cannot have a library project as a single instance in Eclipse for the following reason.

  • , , . - ( ) , .

:

  • . , git clone --bare.
  • "" .
  • , , .
  • 2 3 , .
  • , , . , . , , , . ( ).
+2

All Articles