I have an app that is running fine on phone and tablet. The size of APK is more than 100 MB and same APK is used for phone and tablet. The size is larger due to large videos. So, I want to create two flavors; one for tablet and other for phone using the same source code. This will result in phone APK of 40 MB, and 80 MB for tablet.
I have looked into following and many other posts:
Android Studio build flavors - How to have same source files in diverse flavors
Using Build Flavors - Structuring source folders and build.gradle correctly
Using Build Flavors - Structuring source folders and build.gradle correctly
These posts did not help me.
Here is what I want:
I want to use same source code without copying the source code in different flavor's folders but different resource(videos) for both flavors.
I want to use Google Play store advance feature to use multiple APKs for one application. So Google store will decide on the time of installation that which flavor (phone or tablet) to install.