I use one service where you want to set the API key in the AndroidManifestfollowing way:
<meta-data
android:name="service_api_key"
android:value="@string/my_api_key" />
The problem is that I have several variations of my application, and I need to configure different API keys for each flavor. Each flavor should have different API keys for debugging and release:
flavor1
- debug key: key1
- release key: key2
flavor2
- debug key: key3
- release key: key4
flavor3
- debug key: key5
- release key: key6
What would be the recommended way to do this?
source
share