I am trying to find the best method for white marking an Android application. Basically, I want to be able to create several versions of almost the same application, each version will have different resources (for example, shortcuts, colors, etc.), but they will share most of the code base. Some of the applications will also have additional features, so they will not be just clones of each other.
One of the methods that I thought of is to split the common code into a library, but the problem is that some of the common code includes actions, so I'm not sure how the resources can be changed in each application.
Another method will clone its own, but then any errors or changes in one repository should be applied to another.
Are there any other options? What is the best practice for code sharing, including actions, some resources, and other regular Java classes, between two Android applications?
source share