Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
wf9a5m75 committed Sep 18, 2018
1 parent 2d6d67f commit 6f0616c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 16 deletions.
19 changes: 19 additions & 0 deletions bin/local_dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

GMAPS_DIR_PATH=$1
if [ -z "${GMAPS_DIR_PATH}" ]; then
echo "Usage:"
echo " $> npm run link (path_to_@ionic-native/google-maps directory)"
exit 0
fi

CHECK=`ls -l ${GMAPS_DIR_PATH}/package.json 2>&1`

if [[ $CHECK = *"No such file or directory"* ]]; then
(>&2 echo "There is no package.json at ${GMAPS_DIR_PATH}")
else
rm -rf node_modules/\@ionic-native/plugins/google-maps

cp -R ${GMAPS_DIR_PATH}/dist/\@ionic-native/core node_modules/\@ionic-native/
npm link ${GMAPS_DIR_PATH}/dist/\@ionic-native/plugins/google-maps
fi
6 changes: 1 addition & 5 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,8 @@
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<plugin name="cordova-plugin-ionic-webview" spec="^2.0.2" />
<plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
<plugin name="cordova-plugin-googlemaps" spec="^2.4.2">
<plugin name="cordova-plugin-googlemaps" spec="^2.4.3">
<variable name="API_KEY_FOR_ANDROID" value="(API_KEY)" />
<variable name="API_KEY_FOR_IOS" value="(API_KEY)" />
<variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
<variable name="ANDROID_SUPPORT_V4_VERSION" value="27.+" />
</plugin>
<engine name="browser" spec="5.0.4" />
<engine name="android" spec="7.0.0" />
</widget>
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"buildwww": "rm -rf www/ docs/; ionic cordova build browser --prod; cp src/404.html www/; cp platforms/browser/config.xml www/; mv www docs; grep -rl '(YOUR_API_KEY_IS_HERE)' ./docs/ | xargs sed -i '' 's/(YOUR_API_KEY_IS_HERE)/AIzaSyBZamoub9SCWL2GriEBRSgLGVVrF0QPakk/g'"
"buildwww": "rm -rf www/ docs/; ionic cordova build browser --prod; cp src/404.html www/; cp platforms/browser/config.xml www/; mv www docs; grep -rl '(YOUR_API_KEY_IS_HERE)' ./docs/ | xargs sed -i '' 's/(YOUR_API_KEY_IS_HERE)/AIzaSyBZamoub9SCWL2GriEBRSgLGVVrF0QPakk/g'",
"link": "bash bin/local_dev.sh"
},
"private": true,
"dependencies": {
Expand All @@ -21,17 +22,18 @@
"@angular/platform-browser": "6.0.9",
"@angular/platform-browser-dynamic": "6.0.9",
"@angular/router": "6.0.9",
"@ionic-native/core": "5.0.0-beta.14",
"@ionic-native/google-maps": "5.0.0-beta.20",
"@ionic-native/core": "^5.0.0-beta.20",
"@ionic-native/google-maps": "^5.0.0-beta.22",
"@ionic-native/splash-screen": "5.0.0-beta.14",
"@ionic-native/status-bar": "5.0.0-beta.14",
"@ionic/angular": "4.0.0-beta.0",
"@ionic/ng-toolkit": "1.0.0",
"@ionic/schematics-angular": "1.0.1",
"cordova-android": "7.0.0",
"cordova-browser": "5.0.4",
"cordova-browser": "^5.0.4",
"cordova-ios": "^4.5.5",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-googlemaps": "^2.4.2",
"cordova-plugin-googlemaps": "^2.4.3",
"cordova-plugin-googlemaps-sdk": "https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0",
"cordova-plugin-ionic-keyboard": "^2.1.2",
"cordova-plugin-ionic-webview": "^2.0.2",
"cordova-plugin-splashscreen": "^5.0.2",
Expand Down Expand Up @@ -81,14 +83,12 @@
"cordova-plugin-statusbar": {},
"cordova-plugin-googlemaps": {
"API_KEY_FOR_ANDROID": "(API_KEY)",
"API_KEY_FOR_IOS": "(API_KEY)",
"PLAY_SERVICES_VERSION": "15.0.1",
"ANDROID_SUPPORT_V4_VERSION": "27.+"
"API_KEY_FOR_IOS": "(API_KEY)"
}
},
"platforms": [
"browser",
"android"
"ios",
"browser"
]
}
}

0 comments on commit 6f0616c

Please sign in to comment.