Fix: cordova 9
MODIFY
package.json
package.json
{
"name": "cordova-plugin-googlemaps",
- "version": "2.5.4-beta-20190320-1419",
+ "version": "2.5.4-beta-20190403-2250",
"description": "Google Maps native SDK for Android and iOS, and Google Maps JavaScript API v3 for browser.",
"cordova": {
"id": "cordova-plugin-googlemaps",

MODIFY
src/ios/check_sdk_version.js
src/ios/check_sdk_version.js
@@ -2,11 +2,10 @@ module.exports = function (ctx) {
var PluginInfoProvider = ctx.requireCordovaModule('cordova-common').PluginInfoProvider;
- var Q = require('q'),
- path = require('path');
+ var path = require('path');
var projectRoot = ctx.opts.projectRoot;
- return Q.Promise(function (resolve, reject) {
+ return (new Promise(function (resolve, reject) {
var pluginsDir = path.join(projectRoot, 'plugins');
var pluginInfoProvider = new PluginInfoProvider();
@@ -42,6 +41,6 @@ module.exports = function (ctx) {
} else {
resolve();
}
- });
+ }));
};

Fix: cordova 9 #2581 #2592