From 0962b763ac0c98a795860a8472b9a8b361f0807b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Fri, 11 Sep 2020 23:29:43 +0900 Subject: [PATCH] chore(npm): properly configure for scope package (#33) --- docs/INSTALLATION.md | 6 +++--- hooks/browser/updateManifest.js | 2 +- package-lock.json | 2 +- package.json | 4 ++-- plugin.xml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index 63314a9e4..8a8d939ae 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -146,7 +146,7 @@ To make the two work together, you need to migrate your GCM project from Google { "cordova": { "plugins": { - "cordova-plugin-push": { + "havesource-cordova-plugin-push": { "ANDROID_SUPPORT_V13_VERSION": "27.+", "FCM_VERSION": "18.+" } @@ -291,8 +291,8 @@ This plugin uses the [Firebase/Messaging](https://cocoapods.org/pods/Firebase) l If you are attempting to install this plugin and you run into this error: ```log -Installing "cordova-plugin-push" for ios -Failed to install 'cordova-plugin-push':Error: pod: Command failed with exit code 1 +Installing "havesource-cordova-plugin-push" for ios +Failed to install 'havesource-cordova-plugin-push':Error: pod: Command failed with exit code 1 at ChildProcess.whenDone (/Users/smacdona/code/push151/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) diff --git a/hooks/browser/updateManifest.js b/hooks/browser/updateManifest.js index ac601c653..e2269b4f3 100644 --- a/hooks/browser/updateManifest.js +++ b/hooks/browser/updateManifest.js @@ -24,7 +24,7 @@ module.exports = function (context) { var pluginManifestPath = path.join( context.opts.projectRoot, - 'plugins/cordova-plugin-push/src/browser/manifest.json' + 'plugins/havesource-cordova-plugin-push/src/browser/manifest.json' ); fs.readFile(pluginManifestPath, 'utf8', function (err, pluginJson) { diff --git a/package-lock.json b/package-lock.json index 90342395c..0f58e6549 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "cordova-plugin-push", + "name": "@havesource/cordova-plugin-push", "version": "1.0.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index ddce55390..fda1ec807 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "cordova-plugin-push", + "name": "@havesource/cordova-plugin-push", "version": "1.0.0", "description": "Register and receive push notifications.", "scripts": { @@ -47,7 +47,7 @@ }, "types": "./types/index.d.ts", "cordova": { - "id": "cordova-plugin-push", + "id": "havesource-cordova-plugin-push", "platforms": [ "ios", "android", diff --git a/plugin.xml b/plugin.xml index d52c28c5a..ac5ef736b 100755 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ + id="havesource-cordova-plugin-push" version="1.0.0"> Cordova Push Plugin Enable receiving push notifications on Android, iOS and Windows devices. Android uses Firebase Cloud Messaging. iOS uses Apple APNS Notifications. Windows uses Microsoft WNS Notifications.