Version managing the Android / Eclipse project with all its third-party libraries

So here is the deal. Let's say I'm developing an application depending on the SDK for Facebook and Chris Banes PullToRefreshListView. I import the SDK into my workspace (which I don’t really like, since it fills the workspace!) And refers to it in my application as libraries. I make some changes to the PullToRefreshListView, say, add a custom font or change the color of one of the shortcuts.

Now I use Git for version control of my project. I would like to place my project on our Git server and make my colleagues able to pull out the project and start working without trying to fight the same SDK (from the same versions as me) and the links in the project. Since I made some changes to one of the libraries, the project cannot be completely restored by another person if I did not provide the code.

  • How should I act in this situation?
  • Is it possible to put an uncompiled library in the libs folder or something like that?
  • If not, what is the correct way to accomplish this?

All I can find when Googling or search for Stack is a way to use compiled .jar files in the libs folder, which is good, but not what I'm looking for.

Essentially, I'm looking for a good way to structure projects using third-party libraries.

+4
source share
1 answer

These appear to be Android library projects (they contain assets). If so, you cannot convert them to JAR files.

The easiest way that comes to mind is to have your project root folder contain your application and all of the specified libraries:

Root -\Your app -\src -\res -\3rd party lib 1 -\3rd party lib 2 -\3rd party lib 3 

This structure would make it pretty easy to click on git and control in eclipse.

+1
source

Source: https://habr.com/ru/post/1434280/


All Articles