how to change meta-data value Programmatically in manifest or string resource in string value
Using Inject build variables into the manifest you can change metadata value programmatically
In build.gradle
defaultConfig {
manifestPlaceholders = [ senderid:"12345"]
}
buildTypes {
release {
manifestPlaceholders = [ senderid:"56789"]
}
}
In Manifest file
<meta-data
android:name="SENDER_ID"
android:value="${senderid}" />
Referance Link : https://developer.android.com/studio/build/manifest-build-variables.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With