Ok I am not sure if this has been asked before. But I am struggling with the core concepts of Build variants, flavors and the way they are structured.
I have a an app on Google play so I am gonna use it for reference. My app Nexus Notes is a one build. I was thinking about turning it into a paid/free version along with some future apps.
When I go into the project view add the flavors and deminsions in the Gradle. I then add the resources to match the main resource. My issue is when I have the layouts and everything setup, how do I have them called in the code?
I followed Androids documentation and I don't understand the whole picture. To me they skipped a step somewhere. Do I need to add some other code other than just in the project. Like an override resource function.
I have my release, free and paid build. For testing purposes I chose the PaidDebug variant but my designs don't show. It's just what's on the main.
I am trying to accomplish a one app build variant, instead of having two apps on Google Play one free and one paid.
I understand how to add it, I just don't understand how to use it. I know Google frowns on duplicate apps, so I am just trying to clean my structure up so it's a unified app and not two separate apps.
If there is any documentation that is a complete step by step process so I can learn the correct way of adding build variants and flavors I am greatly appreciated.
I will add my code shortly in an update. Currently I am away from my code.