native-update 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.
@@ -73,20 +73,7 @@ public class NativeUpdatePlugin: CAPPlugin {
73
73
 
74
74
  @objc func cleanup(_ call: CAPPluginCall) {
75
75
  liveUpdatePlugin.cleanup()
76
- // CAPACITOR-SDK-WORKAROUND (assumes Capacitor 8.x):
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": "4.4.5",
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/app": "^8.1.2",
104
- "@capacitor/core": "^8.6.2",
105
- "@capacitor/device": "^8.0.3",
106
- "@capacitor/filesystem": "^8.1.5",
107
- "@capacitor/preferences": "^8.0.1",
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": ">=8.0.0",
123
- "@capacitor/core": "^8.0.1",
124
- "@capacitor/device": ">=8.0.0",
125
- "@capacitor/filesystem": ">=8.0.0",
126
- "@capacitor/preferences": ">=8.0.0"
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": {