https://github.com/samsetdev/productflavors
Product Flavore to saparate and maintain code reusibility
https://github.com/samsetdev/productflavors
android android-flavor android-gradle flavor flavors gradle
Last synced: 7 months ago
JSON representation
Product Flavore to saparate and maintain code reusibility
- Host: GitHub
- URL: https://github.com/samsetdev/productflavors
- Owner: SamsetDev
- License: apache-2.0
- Created: 2018-04-14T12:35:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T12:45:06.000Z (almost 8 years ago)
- Last Synced: 2025-06-06T19:52:26.419Z (9 months ago)
- Topics: android, android-flavor, android-gradle, flavor, flavors, gradle
- Language: Java
- Size: 239 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ProductFlavors
Setting up Flavors in build.gradle
productFlavors {
staging {
dimension "version"
applicationId "in.samset.androidflavorsample.statging"
//Configure this flavor specific app name published in Play Store
resValue "string", "flavored_app_name", "Staging App"
}
prod {
dimension "version"
applicationId "in.samset.androidflavorsample.prod"
//Configure this flavor specific app name published in Play Store
resValue "string", "flavored_app_name", "Prod App"
}
}
Application Id
Each flavor can have its own application Id. An 'applicationId' makes a app in Play Store unique. In this example, the free version will be published on Play Store with packageId/applicationId as n.samset.androidflavorsample.statgingand paid one will have in.samset.androidflavorsample.prod