For example, you might have one flavor for your full-fledged production app, another as a limited free app, another for testing experimental features, and so on. I want to append "Debug" to the app name in debug builds, but I need to get the value that was set in the product flavor in order to append to it.Įdit: I tried Marcin Koziński's suggestion to use a variable, but all product flavors are evaluated before any build type. Flavors (known as build configurations in iOS), allow you (the developer) to create separate environments for your app using the same code base. The name of the application for each build is located in. It appears that productFlavors is evaluated before buildTypes, so a resValue set in buildTypes takes precedence. You must have one code base/project with multiple ProductFlavors The different product flavors are requiring different sets of permissions (otherwise it doesn't make sense). Add a productFlavors object with the desired flavors along with values for dimension, resValue, and applicationId or applicationIdSuffix. The product flavors support the same properties. Is there a corresponding way to get a resource value that was set by resValue? Add product flavors to the productFlavors block in your build configuration and include the settings you want. The resValue method (or whatever it's called) allows you to set a resource value in buildTypes or productFlavors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |