I'm migrating from an Ant/Eclipse environment to Gradle/Android Studio, and some tools we use need the Android app to have meta-data tags present with both android:name and android:value fields set.
We currently have two build-variants of the app, specified as productFlavours/buildTypes in the build.gradle file. As the Android manifest.xml files are generated by gradle at build-time, I obviously can't just put the meta-data in the xml file directly.
Is there a way to specify this in the build.gradle file so that both buildTypes have the meta-data field added to the generated Manifest.xml, but with different "android:value" values?
Source: View source