Sign up ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I have an Android Library Project which I intensively used in a few projects. I started a new project in which I am also using this library. I want to improve some things in library (method signatures\names, interfaces, etc.). But if I change method signatures\names, interfaces, I should update old projects that use this library. That could be hard work.

I want to make new version of my library which will be not compatible with previous versions.

Is this possible without creating new project?

IDE: Android Studio.

share|improve this question
3  
Sharing your research helps everyone. Tell us what you've tried and why it didn’t meet your needs. This demonstrates that you’ve taken the time to try to help yourself, it saves us from reiterating obvious answers, and most of all it helps you get a more specific and relevant answer. Also see How to Ask – gnat Oct 9 '14 at 7:43

2 Answers 2

up vote 1 down vote accepted

GitHub sounds like a good tool you could use. It can even be linked to Android Studio to automatically update your work. You'll be able to store multiple versions of this library. Old projects can reference the older library, while new projects can reference the new library.

Alternatively, however, why not simply recreate the library and adjust it for your needs? If the project itself has a different set of demands, surely it requires it's own library not a bent version of a previous library.

share|improve this answer

You don't need create new project of course. Only Commit/Push project to Git.

Android Studio - GitHub Integration & Sharing Video Watch on YouTube and create new branches for every version library You have.

It's very easy.


You can also create local subversion repository.

How To connect Android Studio to SVN & Subversion client for Windows

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.