I created two flavors for my app. A free and a pro version. The pro version has access to additional features(activities). I added the related res-folders for each flavor and updated my gradle:
productFlavors {
free {
applicationId "com.***.***.free"
versionName "1.0 - Beta - Free"
}
pro {
applicationId "com.***.***.full"
versionName "1.0 - Beta - Pro"
}
}
sourceSets {
free {
res.srcDirs = ['src/free/res', 'src/free/res/']
}
pro {
res.srcDirs = ['src/pro/res', 'src/pro/res/']
}
}
I added a button in the free version on the homescreen which should do the following:
- open a dialog for the payment
- if successful ... (do stuff)
- start the pro - version
And at "..." are my questions: - When I move the additional pro-version activities and the related resources from the main-res-folder to the pro-res-folder, does the free version download not contain them, so they have to be downloaded when purchased? Or does the free-version download contain everything? So that I have to forbid the access to it from the free-version? Because it would be better if the free version only contains the necessary stuff and when you purchase the pro version the additional will be downloaded extra.
- If not, how to do that?