In general android manifest for my app that uses google map v2 looks something like this:
<manifest>
...
<application>
...
<!-- Goolge API Key -->
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="XYZ...ZYX" />
...
</application>
<manifest>
The question is, if it's possible to do something like this:
<manifest>
...
<application>
...
<!-- Goolge API Key -->
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="@{my.google.api.key}" />
...
</application>
<manifest>
and have my_local.property file in my project with line: my.google.api.key=XYZ...ZYX ?
You can use string resources for this and manifest would be
android:value="@string/google_api_key"
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