In this article it explains pro and free version that has two different packages.
Defining them is simple, you just have to write following in build.gradle.
To define app name for each flavor, you can write it in the following way
productFlavors {
devVersion {
applicationId "com.sample.android.devVersion"
resValue "string", "override_name", "Dev Version"
}
proVersion {
applicationId "com.sample.android.proVersion"
resValue "string", "override_name", "Pro Version"
}
}
And in manifest under application tag, you just need to mention string name. i.e.
android:label="@string/override_name"
references:
https://codetoart.com/blog/building-multiple-versions-of-an-android-app-product-flavors
No comments:
Post a Comment