@capacitor-community/fcm 6.0.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapacitorCommunityFcm.podspec +1 -1
- package/README.md +2 -1
- package/android/build.gradle +10 -10
- package/dist/esm/web.js +1 -4
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +1 -4
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +1 -4
- package/dist/plugin.js.map +1 -1
- package/package.json +15 -15
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { git: package['repository']['url'], tag: s.version.to_s }
|
|
13
13
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '14.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.dependency 'Firebase/Messaging'
|
|
17
17
|
s.swift_version = '5.1'
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<a href="https://www.npmjs.com/package/@capacitor-community/fcm"><img src="https://img.shields.io/npm/dw/@capacitor-community/fcm?style=flat-square" /></a>
|
|
13
13
|
<a href="https://www.npmjs.com/package/@capacitor-community/fcm"><img src="https://img.shields.io/npm/v/@capacitor-community/fcm?style=flat-square" /></a>
|
|
14
14
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
15
|
-
<a href="#contributors"><img src="https://img.shields.io/badge/all%20contributors-
|
|
15
|
+
<a href="#contributors"><img src="https://img.shields.io/badge/all%20contributors-27-orange?style=flat-square" /></a>
|
|
16
16
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
17
17
|
|
|
18
18
|
</p>
|
|
@@ -239,6 +239,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
239
239
|
</tr>
|
|
240
240
|
<tr>
|
|
241
241
|
<td align="center" valign="top" width="20%"><a href="http://www.chrisweight.com/"><img src="https://avatars.githubusercontent.com/u/468638?v=4?s=75" width="75px;" alt="Chris Weight"/><br /><sub><b>Chris Weight</b></sub></a><br /><a href="#maintenance-chrisweight" title="Maintenance">🚧</a></td>
|
|
242
|
+
<td align="center" valign="top" width="20%"><a href="https://by.vincent.mahn.ke/"><img src="https://avatars.githubusercontent.com/u/1689033?v=4?s=75" width="75px;" alt="Vincent Mahnke"/><br /><sub><b>Vincent Mahnke</b></sub></a><br /><a href="#maintenance-ViMaSter" title="Maintenance">🚧</a></td>
|
|
242
243
|
</tr>
|
|
243
244
|
</tbody>
|
|
244
245
|
</table>
|
package/android/build.gradle
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
ext {
|
|
2
2
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
6
|
-
firebaseMessagingVersion = project.hasProperty('firebaseMessagingVersion') ? rootProject.ext.firebaseMessagingVersion : '
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
|
|
6
|
+
firebaseMessagingVersion = project.hasProperty('firebaseMessagingVersion') ? rootProject.ext.firebaseMessagingVersion : '24.1.0'
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
buildscript {
|
|
@@ -12,7 +12,7 @@ buildscript {
|
|
|
12
12
|
mavenCentral()
|
|
13
13
|
}
|
|
14
14
|
dependencies {
|
|
15
|
-
classpath 'com.android.tools.build:gradle:8.2
|
|
15
|
+
classpath 'com.android.tools.build:gradle:8.7.2'
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -20,10 +20,10 @@ apply plugin: 'com.android.library'
|
|
|
20
20
|
|
|
21
21
|
android {
|
|
22
22
|
namespace "com.getcapacitor.community.fcm.fcm"
|
|
23
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
23
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
|
|
24
24
|
defaultConfig {
|
|
25
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
26
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
25
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
|
|
26
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
|
|
27
27
|
versionCode 1
|
|
28
28
|
versionName "1.0"
|
|
29
29
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -39,8 +39,8 @@ android {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
compileOptions {
|
|
42
|
-
sourceCompatibility JavaVersion.
|
|
43
|
-
targetCompatibility JavaVersion.
|
|
42
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
43
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
package/dist/esm/web.js
CHANGED
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnC;QACE,KAAK,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnC;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,WAAW,CAAC,QAA2B;QACrC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,eAAe,CAAC,QAA2B;QACzC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,QAAQ;QACN,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,cAAc;QACZ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,WAAW,CAAC,QAA8B;QACxC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,iBAAiB;QACf,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,YAAY;QACV,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF;AAED,MAAM,GAAG,GAAG,IAAI,MAAM,EAAE,CAAC;AAEzB,OAAO,EAAE,GAAG,EAAE,CAAC","sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport { FCMPlugin } from './definitions';\n\nexport class FCMWeb extends WebPlugin implements FCMPlugin {\n constructor() {\n super();\n }\n\n subscribeTo(_options: { topic: string }): Promise<{ message: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n unsubscribeFrom(_options: { topic: string }): Promise<{ message: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n getToken(): Promise<{ token: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n deleteInstance(): Promise<boolean> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n setAutoInit(_options: { enabled: boolean }): Promise<void> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n isAutoInitEnabled(): Promise<{ enabled: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n refreshToken(): Promise<{ token: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n\nconst FCM = new FCMWeb();\n\nexport { FCM };\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -10,10 +10,7 @@ const FCM$1 = core.registerPlugin("FCM", {
|
|
|
10
10
|
|
|
11
11
|
class FCMWeb extends core.WebPlugin {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(
|
|
14
|
-
name: 'FCM',
|
|
15
|
-
platforms: ['web'],
|
|
16
|
-
});
|
|
13
|
+
super();
|
|
17
14
|
}
|
|
18
15
|
subscribeTo(_options) {
|
|
19
16
|
throw this.unimplemented('Not implemented on web.');
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst FCM = registerPlugin(\"FCM\", {\n web: () => import(\"./web\").then((m) => new m.FCMWeb()),\n});\n// export * from './web'; // @todo\nexport * from \"./definitions\";\nexport { FCM };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class FCMWeb extends WebPlugin {\n constructor() {\n super(
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst FCM = registerPlugin(\"FCM\", {\n web: () => import(\"./web\").then((m) => new m.FCMWeb()),\n});\n// export * from './web'; // @todo\nexport * from \"./definitions\";\nexport { FCM };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class FCMWeb extends WebPlugin {\n constructor() {\n super();\n }\n subscribeTo(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n unsubscribeFrom(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n getToken() {\n throw this.unimplemented('Not implemented on web.');\n }\n deleteInstance() {\n throw this.unimplemented('Not implemented on web.');\n }\n setAutoInit(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n isAutoInitEnabled() {\n throw this.unimplemented('Not implemented on web.');\n }\n refreshToken() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\nconst FCM = new FCMWeb();\nexport { FCM };\n//# sourceMappingURL=web.js.map"],"names":["FCM","registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAACA,KAAG,GAAGC,mBAAc,CAAC,KAAK,EAAE;AAClC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;AAC1D,CAAC;;ACFM,MAAM,MAAM,SAASC,cAAS,CAAC;AACtC,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE,CAAC;AAChB,KAAK;AACL,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,eAAe,CAAC,QAAQ,EAAE;AAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,QAAQ,GAAG;AACf,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,cAAc,GAAG;AACrB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,iBAAiB,GAAG;AACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,YAAY,GAAG;AACnB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,CAAC;AACD,MAAM,GAAG,GAAG,IAAI,MAAM,EAAE;;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -7,10 +7,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
7
7
|
|
|
8
8
|
class FCMWeb extends core.WebPlugin {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(
|
|
11
|
-
name: 'FCM',
|
|
12
|
-
platforms: ['web'],
|
|
13
|
-
});
|
|
10
|
+
super();
|
|
14
11
|
}
|
|
15
12
|
subscribeTo(_options) {
|
|
16
13
|
throw this.unimplemented('Not implemented on web.');
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst FCM = registerPlugin(\"FCM\", {\n web: () => import(\"./web\").then((m) => new m.FCMWeb()),\n});\n// export * from './web'; // @todo\nexport * from \"./definitions\";\nexport { FCM };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class FCMWeb extends WebPlugin {\n constructor() {\n super(
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst FCM = registerPlugin(\"FCM\", {\n web: () => import(\"./web\").then((m) => new m.FCMWeb()),\n});\n// export * from './web'; // @todo\nexport * from \"./definitions\";\nexport { FCM };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class FCMWeb extends WebPlugin {\n constructor() {\n super();\n }\n subscribeTo(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n unsubscribeFrom(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n getToken() {\n throw this.unimplemented('Not implemented on web.');\n }\n deleteInstance() {\n throw this.unimplemented('Not implemented on web.');\n }\n setAutoInit(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n isAutoInitEnabled() {\n throw this.unimplemented('Not implemented on web.');\n }\n refreshToken() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\nconst FCM = new FCMWeb();\nexport { FCM };\n//# sourceMappingURL=web.js.map"],"names":["FCM","registerPlugin","WebPlugin"],"mappings":";;;AACK,UAACA,KAAG,GAAGC,mBAAc,CAAC,KAAK,EAAE;IAClC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1D,CAAC;;ICFM,MAAM,MAAM,SAASC,cAAS,CAAC;IACtC,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE,CAAC;IAChB,KAAK;IACL,IAAI,WAAW,CAAC,QAAQ,EAAE;IAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,eAAe,CAAC,QAAQ,EAAE;IAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,QAAQ,GAAG;IACf,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,cAAc,GAAG;IACrB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,WAAW,CAAC,QAAQ,EAAE;IAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,iBAAiB,GAAG;IACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,YAAY,GAAG;IACnB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,CAAC;IACD,MAAM,GAAG,GAAG,IAAI,MAAM,EAAE;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor-community/fcm",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Enable Firebase Cloud Messaging features for Capacitor apps",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"firebase cloud messaging"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "npm run clean && tsc && rollup -c rollup.config.
|
|
34
|
+
"build": "npm run clean && tsc && rollup -c rollup.config.mjs",
|
|
35
35
|
"clean": "rimraf ./dist",
|
|
36
36
|
"watch": "tsc --watch",
|
|
37
37
|
"prepublishOnly": "npm run build",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
43
43
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
44
44
|
"eslint": "eslint . --ext ts",
|
|
45
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
45
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
46
46
|
"swiftlint": "node-swiftlint",
|
|
47
47
|
"release:patch": "standard-version release --release-as patch",
|
|
48
48
|
"release:minor": "standard-version release --release-as minor",
|
|
@@ -51,25 +51,25 @@
|
|
|
51
51
|
"contributors:gen": "all-contributors generate"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@capacitor/android": "^
|
|
55
|
-
"@capacitor/core": "^
|
|
56
|
-
"@capacitor/docgen": "^0.0
|
|
57
|
-
"@capacitor/ios": "^
|
|
54
|
+
"@capacitor/android": "^7.0.0",
|
|
55
|
+
"@capacitor/core": "^7.0.0",
|
|
56
|
+
"@capacitor/docgen": "^0.3.0",
|
|
57
|
+
"@capacitor/ios": "^7.0.0",
|
|
58
58
|
"@ionic/eslint-config": "^0.4.0",
|
|
59
|
-
"@ionic/prettier-config": "^
|
|
60
|
-
"@ionic/swiftlint-config": "^
|
|
59
|
+
"@ionic/prettier-config": "^4.0.0",
|
|
60
|
+
"@ionic/swiftlint-config": "^2.0.0",
|
|
61
61
|
"all-contributors-cli": "^6.24.0",
|
|
62
62
|
"eslint": "^8.57.0",
|
|
63
|
-
"prettier": "
|
|
64
|
-
"prettier-plugin-java": "
|
|
65
|
-
"rimraf": "^
|
|
66
|
-
"rollup": "^
|
|
63
|
+
"prettier": "^3.4.2",
|
|
64
|
+
"prettier-plugin-java": "^2.6.6",
|
|
65
|
+
"rimraf": "^6.0.1",
|
|
66
|
+
"rollup": "^4.30.1",
|
|
67
67
|
"standard-version": "^9.5.0",
|
|
68
|
-
"swiftlint": "^
|
|
68
|
+
"swiftlint": "^2.0.0",
|
|
69
69
|
"typescript": "~4.1.5"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@capacitor/core": "
|
|
72
|
+
"@capacitor/core": ">=7.0.0"
|
|
73
73
|
},
|
|
74
74
|
"prettier": "@ionic/prettier-config",
|
|
75
75
|
"swiftlint": "@ionic/swiftlint-config",
|