native-update 4.4.6 → 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/NativeUpdate.podspec +2 -2
- package/README.md +10 -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 +9 -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 +21 -14
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "native-update",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"packageManager": "yarn@4.18.1",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.16.0"
|
|
@@ -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
|
},
|
|
@@ -100,11 +104,14 @@
|
|
|
100
104
|
"prompts": "^2.4.2"
|
|
101
105
|
},
|
|
102
106
|
"devDependencies": {
|
|
103
|
-
"@capacitor/
|
|
104
|
-
"@capacitor/
|
|
105
|
-
"@capacitor/
|
|
106
|
-
"@capacitor/
|
|
107
|
-
"@capacitor/
|
|
107
|
+
"@capacitor/android": "^9.0.0",
|
|
108
|
+
"@capacitor/app": "^9.0.2",
|
|
109
|
+
"@capacitor/cli": "^9.0.0",
|
|
110
|
+
"@capacitor/core": "^9.0.0",
|
|
111
|
+
"@capacitor/device": "^9.0.2",
|
|
112
|
+
"@capacitor/filesystem": "^9.0.0",
|
|
113
|
+
"@capacitor/ios": "^9.0.0",
|
|
114
|
+
"@capacitor/preferences": "^9.0.2",
|
|
108
115
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
109
116
|
"@rollup/plugin-terser": "^1.0.2",
|
|
110
117
|
"@types/node": "^26.6.6",
|
|
@@ -119,11 +126,11 @@
|
|
|
119
126
|
"vitest": "^5.1.0"
|
|
120
127
|
},
|
|
121
128
|
"peerDependencies": {
|
|
122
|
-
"@capacitor/app": "
|
|
123
|
-
"@capacitor/core": "^
|
|
124
|
-
"@capacitor/device": "
|
|
125
|
-
"@capacitor/filesystem": "
|
|
126
|
-
"@capacitor/preferences": "
|
|
129
|
+
"@capacitor/app": "^9.0.0",
|
|
130
|
+
"@capacitor/core": "^9.0.0",
|
|
131
|
+
"@capacitor/device": "^9.0.0",
|
|
132
|
+
"@capacitor/filesystem": "^9.0.0",
|
|
133
|
+
"@capacitor/preferences": "^9.0.0"
|
|
127
134
|
},
|
|
128
135
|
"capacitor": {
|
|
129
136
|
"ios": {
|