I received this nice task, the idea is to build one single APK from what normally are two separate apps. So for instance, I have the whole source trees for two apps, AppA and AppB and I want to create AppC by 'merging' together these two source sets. Please note that AppA and AppB are not libraries, they are regular Android apps. I've never done something like this and have no idea if gradle allows this, probably yes, but I don't know where to start. Is there anyone out there who ever did this?
Asked
Active
Viewed 61 times
0
-
try [Product Flavors](https://developer.android.com/studio/build/build-variants.html#product-flavors) – Rahul Jun 28 '17 at 07:43
-
sorry that doesn't help.. can you explain more please? – Francesco Rigoni Jun 28 '17 at 07:48
-
what do u mean by merging together ?? like lets say there is splash screens in both apps so your end app should have two splash screens ?? – Moulesh Jun 28 '17 at 07:51
-
Is the aim one combined app that does all the functions of the two component apps, or one installation package that installs two separate apps at the same time? The former is likely to be a large amount of non-trivial work; no idea whether the second is possible. – TripeHound Jun 28 '17 at 08:02
-
The idea is the first one. – Francesco Rigoni Jun 28 '17 at 08:14
-
https://stackoverflow.com/questions/14978414/combine-android-projects-together does this help? or this: https://stackoverflow.com/a/33559465/5746918 – Ishita Sinha Jun 28 '17 at 08:26
-
Yes.. well, the only idea I can come up with for this is actually using libraries. What you posted here seems to confirm that there is no way to just merge two application projects. Thanks. – Francesco Rigoni Jun 28 '17 at 08:51