S
S
swba2015-05-25 08:48:13
Android
swba, 2015-05-25 08:48:13

How to link the code of two almost identical Android apps?

There are two apps - free with ads and paid without ads. That is, the difference between them is minimal. How to organize their relationship at the level of storing files and making changes so as not to engage in copy-paste? After all, these are two different projects, two different directories, two different gits... If only the code was common, then it would be possible to move it to the library. But everything is the same here, including resources (which, nevertheless, can also change).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Pukhov, 2015-05-25
@Neuroware

in the part that is responsible for "show / not show" the code, check which version of the program is installed and, depending on this, either show or not, then a second copy of the program is not required.

V
Vladimir Abramov, 2015-05-25
@kivsiak

I didn’t understand why there are two builds when all the difference can be fit in one condition? Use build flavor. https://developer.android.com/tools/building/config...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question