change_maps_key 1.0.2 change_maps_key: ^1.0.2 copied to clipboard
Change Google Maps API key
Change Maps Key helps you change the Google Maps Key inside Android and iOS folder
Installation #
To use Change Maps Key on the command line, install using pub global activate
:
$ pub global activate change_maps_key
To update Change Maps Key, use the same pub global activate
command.
Usage #
A simple usage example:
dart pub global run change_maps_key --key="111111111"
Output:
-> Android key updated to: 111111111
-> iOS key updated to: 111111111
-> Web key updated to: 111111111
The key on Android is changed in the following path: android\\app\\src\\main\\AndroidManifest.xml
The key on iOS is change in the following path: ios\\Runner\\AppDelegate.swift
The key on Web is change in the following path: web\\index.html
Attention #
Make sure your AndroidManifest
file is with the key writted in 2 lines, example:
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="000000"/>
If the key is writted in 1 line only, it's not going to work properly
, example:
<meta-data android:name="com.google.android.geo.API_KEY" android:value="000000"/>
Features and bugs #
Please file feature requests and bugs at the issue tracker.