android - How to manage same java code in different package with git? -
i'd versioning of android code.
i pushed code (only res
, src
directories) , want pull in other package.
how can manage that, given code in git repository has it's source in src/com/some/package/
, want clone , source in src/some/other/package/
?
i'm aware of this question, can't see answer helps.
what can alternative directly managing git, separate common code own android library project. able add library other 2 projects, giving access same code base.
this have end 3 projects, , 3 repositories. 2 of each separate projects, , 1 of each library project.
one thing aware of, however, if there specific code 1 project inside of library, affect other project. of handled subclassing , overriding methods/properties needed. way around this, suggested jul, have branches each project.
a nice benefit of doing way if make bug fix in library found while working on 1 project, you'll able in other practically free.
Comments
Post a Comment