native-update-capacitor 4.4.5 → 5.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/AI-INTEGRATION-GUIDE.md +1 -1
- package/NativeUpdate.podspec +2 -2
- package/README.md +21 -10
- package/android/build.gradle +8 -22
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +1 -1
- package/android/variables.gradle +0 -1
- package/dist/esm/core/update-check.d.ts +1 -1
- package/dist/esm/core/update-check.js +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.js +2 -2
- package/docs/CHANGELOG.md +17 -0
- package/docs/MIGRATION.md +8 -0
- package/ios/Plugin/AppReview/AppReviewPlugin.swift +10 -20
- package/ios/Plugin/BackgroundUpdate/BackgroundNotificationManager.swift +1 -5
- package/ios/Plugin/BackgroundUpdate/BackgroundUpdatePlugin.swift +10 -27
- package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +1 -1
- package/ios/Plugin/NativeUpdatePlugin.swift +1 -14
- package/package.json +22 -15
|
@@ -73,20 +73,7 @@ public class NativeUpdatePlugin: CAPPlugin {
|
|
|
73
73
|
|
|
74
74
|
@objc func cleanup(_ call: CAPPluginCall) {
|
|
75
75
|
liveUpdatePlugin.cleanup()
|
|
76
|
-
|
|
77
|
-
// We cannot manufacture a synthetic CAPPluginCall to forward into
|
|
78
|
-
// backgroundUpdatePlugin.disableBackgroundUpdates(_:) because
|
|
79
|
-
// CAPPluginCall(callbackId:options:success:error:) is `internal`
|
|
80
|
-
// in the public Capacitor SDK — referencing it produces a
|
|
81
|
-
// compile error against the shipped framework. The internal
|
|
82
|
-
// `disableBackgroundUpdatesInternal()` shim wraps the same
|
|
83
|
-
// teardown logic and is the ONLY entry point that doesn't
|
|
84
|
-
// require a CAPPluginCall.
|
|
85
|
-
//
|
|
86
|
-
// Revisit on every Capacitor major bump: if the constructor
|
|
87
|
-
// becomes public, replace the shim with a real synthetic call.
|
|
88
|
-
// Tracked in docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md (item I2).
|
|
89
|
-
backgroundUpdatePlugin.disableBackgroundUpdatesInternal()
|
|
76
|
+
backgroundUpdatePlugin.stopBackgroundUpdates()
|
|
90
77
|
call.resolve()
|
|
91
78
|
}
|
|
92
79
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "native-update-capacitor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"packageManager": "yarn@4.18.1",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.16.0"
|
|
7
7
|
},
|
|
8
|
-
"description": "The Native Update Capacitor plugin under its framework name. Identical to native-update
|
|
8
|
+
"description": "The Native Update Capacitor plugin under its framework name. Identical to native-update 5.0.0: signed OTA updates, in-app update and in-app review.",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "dist/plugin.cjs",
|
|
11
11
|
"module": "dist/esm/index.js",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
},
|
|
24
24
|
"bin": "cli/index.js",
|
|
25
25
|
"files": [
|
|
26
|
-
"android/src/main
|
|
26
|
+
"android/src/main/**/*",
|
|
27
27
|
"android/build.gradle",
|
|
28
28
|
"android/variables.gradle",
|
|
29
29
|
"android/gradle.properties",
|
|
30
|
-
"android/gradle
|
|
30
|
+
"android/gradle/**/*",
|
|
31
31
|
"android/settings.gradle",
|
|
32
32
|
"android/proguard-rules.pro",
|
|
33
33
|
"android/consumer-rules.pro",
|
|
34
34
|
"android/manifest-additions.xml",
|
|
35
35
|
"dist/",
|
|
36
|
-
"ios/Plugin
|
|
36
|
+
"ios/Plugin/**/*",
|
|
37
37
|
"NativeUpdate.podspec",
|
|
38
38
|
"docs/CHANGELOG.md",
|
|
39
39
|
"docs/MIGRATION.md",
|
|
@@ -54,6 +54,10 @@
|
|
|
54
54
|
"url": "https://aoneahsan.com"
|
|
55
55
|
},
|
|
56
56
|
"license": "SEE LICENSE IN LICENSE",
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "https://github.com/aoneahsan/native-update.git"
|
|
60
|
+
},
|
|
57
61
|
"bugs": {
|
|
58
62
|
"url": "https://nativeupdate.aoneahsan.com/contact"
|
|
59
63
|
},
|
|
@@ -85,11 +89,14 @@
|
|
|
85
89
|
"prompts": "^2.4.2"
|
|
86
90
|
},
|
|
87
91
|
"devDependencies": {
|
|
88
|
-
"@capacitor/
|
|
89
|
-
"@capacitor/
|
|
90
|
-
"@capacitor/
|
|
91
|
-
"@capacitor/
|
|
92
|
-
"@capacitor/
|
|
92
|
+
"@capacitor/android": "^9.0.0",
|
|
93
|
+
"@capacitor/app": "^9.0.2",
|
|
94
|
+
"@capacitor/cli": "^9.0.0",
|
|
95
|
+
"@capacitor/core": "^9.0.0",
|
|
96
|
+
"@capacitor/device": "^9.0.2",
|
|
97
|
+
"@capacitor/filesystem": "^9.0.0",
|
|
98
|
+
"@capacitor/ios": "^9.0.0",
|
|
99
|
+
"@capacitor/preferences": "^9.0.2",
|
|
93
100
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
94
101
|
"@rollup/plugin-terser": "^1.0.2",
|
|
95
102
|
"@types/node": "^26.6.6",
|
|
@@ -104,11 +111,11 @@
|
|
|
104
111
|
"vitest": "^5.1.0"
|
|
105
112
|
},
|
|
106
113
|
"peerDependencies": {
|
|
107
|
-
"@capacitor/app": "
|
|
108
|
-
"@capacitor/core": "^
|
|
109
|
-
"@capacitor/device": "
|
|
110
|
-
"@capacitor/filesystem": "
|
|
111
|
-
"@capacitor/preferences": "
|
|
114
|
+
"@capacitor/app": "^9.0.0",
|
|
115
|
+
"@capacitor/core": "^9.0.0",
|
|
116
|
+
"@capacitor/device": "^9.0.0",
|
|
117
|
+
"@capacitor/filesystem": "^9.0.0",
|
|
118
|
+
"@capacitor/preferences": "^9.0.0"
|
|
112
119
|
},
|
|
113
120
|
"capacitor": {
|
|
114
121
|
"ios": {
|