java - Google Maps key in AndroidManifest.xml from google-services.json -
i have google-services.json
file contains api key for, amongst other things, google maps service. google maps requires following information in androidmanifest.xml
:
<meta-data android:name="com.google.android.geo.api_key" android:value="key_goes_here" />
i can access information in java using r.string.google_api_key
, build process turns json file resources per https://developers.google.com/android/guides/google-services-plugin, there way refer key inside manifest file?
you can use
<meta-data android:name="com.google.android.geo.api_key" android:value="@string/google_api_key"/>
Comments
Post a Comment