@capgo/capacitor-updater 8.0.1 → 8.1.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/CapgoCapacitorUpdater.podspec +7 -5
- package/Package.swift +9 -7
- package/README.md +984 -215
- package/android/build.gradle +24 -12
- package/android/proguard-rules.pro +22 -5
- package/android/src/main/java/ee/forgr/capacitor_updater/BundleInfo.java +110 -22
- package/android/src/main/java/ee/forgr/capacitor_updater/Callback.java +2 -2
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +1310 -488
- package/android/src/main/java/ee/forgr/capacitor_updater/{CapacitorUpdater.java → CapgoUpdater.java} +640 -203
- package/android/src/main/java/ee/forgr/capacitor_updater/{CryptoCipherV2.java → CryptoCipher.java} +119 -33
- package/android/src/main/java/ee/forgr/capacitor_updater/DelayCondition.java +0 -3
- package/android/src/main/java/ee/forgr/capacitor_updater/DelayUpdateUtils.java +260 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/DeviceIdHelper.java +221 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/DownloadService.java +497 -133
- package/android/src/main/java/ee/forgr/capacitor_updater/DownloadWorkerManager.java +80 -25
- package/android/src/main/java/ee/forgr/capacitor_updater/Logger.java +338 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/ShakeDetector.java +72 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/ShakeMenu.java +169 -0
- package/dist/docs.json +873 -154
- package/dist/esm/definitions.d.ts +881 -114
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/history.d.ts +1 -0
- package/dist/esm/history.js +283 -0
- package/dist/esm/history.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +12 -1
- package/dist/esm/web.js +29 -2
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +311 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +311 -2
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/AES.swift +69 -0
- package/ios/Sources/CapacitorUpdaterPlugin/BigInt.swift +55 -0
- package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/BundleInfo.swift +37 -10
- package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/BundleStatus.swift +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +1605 -0
- package/ios/{Plugin/CapacitorUpdater.swift → Sources/CapacitorUpdaterPlugin/CapgoUpdater.swift} +523 -230
- package/ios/Sources/CapacitorUpdaterPlugin/CryptoCipher.swift +267 -0
- package/ios/Sources/CapacitorUpdaterPlugin/DelayUpdateUtils.swift +220 -0
- package/ios/Sources/CapacitorUpdaterPlugin/DeviceIdHelper.swift +120 -0
- package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/InternalUtils.swift +53 -0
- package/ios/Sources/CapacitorUpdaterPlugin/Logger.swift +310 -0
- package/ios/Sources/CapacitorUpdaterPlugin/RSA.swift +274 -0
- package/ios/Sources/CapacitorUpdaterPlugin/ShakeMenu.swift +112 -0
- package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/UserDefaultsExtension.swift +0 -2
- package/package.json +21 -19
- package/ios/Plugin/CapacitorUpdaterPlugin.swift +0 -975
- package/ios/Plugin/CryptoCipherV2.swift +0 -310
- /package/{LICENCE → LICENSE} +0 -0
- /package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/DelayCondition.swift +0 -0
- /package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/DelayUntilNext.swift +0 -0
- /package/ios/{Plugin → Sources/CapacitorUpdaterPlugin}/Info.plist +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-updater",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Live update for capacitor apps",
|
|
6
6
|
"main": "dist/plugin.cjs.js",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"android/proguard-rules.pro",
|
|
13
13
|
"android/build.gradle",
|
|
14
14
|
"dist/",
|
|
15
|
-
"ios/
|
|
15
|
+
"ios/Sources/",
|
|
16
16
|
"CapgoCapacitorUpdater.podspec",
|
|
17
17
|
"Package.swift"
|
|
18
18
|
],
|
|
19
|
-
"author": "Martin Donadieu",
|
|
19
|
+
"author": "Martin Donadieu <martin@capgo.app>",
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
22
|
"url": "git+https://github.com/Cap-go/capacitor-updater.git"
|
|
@@ -37,48 +37,50 @@
|
|
|
37
37
|
"ionic",
|
|
38
38
|
"appflow alternative",
|
|
39
39
|
"capawesome alternative",
|
|
40
|
+
"@capawesome/capacitor-live-update",
|
|
40
41
|
"native"
|
|
41
42
|
],
|
|
42
43
|
"scripts": {
|
|
43
44
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
44
|
-
"verify:ios": "
|
|
45
|
-
"verify:iosSPM": "xcodebuild -workspace ios/Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS",
|
|
45
|
+
"verify:ios": "xcodebuild -scheme CapgoCapacitorUpdater -destination generic/platform=iOS",
|
|
46
46
|
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
47
47
|
"verify:web": "npm run build",
|
|
48
|
+
"test": "npm run test:ios && npm run test:android",
|
|
49
|
+
"test:ios": "./scripts/test-ios.sh",
|
|
50
|
+
"test:android": "cd android && ./gradlew test && cd ..",
|
|
48
51
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
49
|
-
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --
|
|
52
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
50
53
|
"eslint": "eslint . --ext .ts",
|
|
51
54
|
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
52
55
|
"swiftlint": "node-swiftlint",
|
|
53
|
-
"docgen": "
|
|
54
|
-
"docgen:api": "docgen --api CapacitorUpdaterPlugin --output-readme api.md --output-json dist/docs.json && awk '{sub(/###/,\"##\")}1' api.md > temp.txt && mv temp.txt api.md",
|
|
56
|
+
"docgen": "node scripts/generate-docs.js",
|
|
55
57
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
56
58
|
"clean": "rimraf ./dist",
|
|
57
59
|
"watch": "tsc --watch",
|
|
58
60
|
"prepublishOnly": "npm run build"
|
|
59
61
|
},
|
|
60
62
|
"devDependencies": {
|
|
61
|
-
"@capacitor/android": "^
|
|
62
|
-
"@capacitor/cli": "^
|
|
63
|
-
"@capacitor/core": "^
|
|
63
|
+
"@capacitor/android": "^8.0.0",
|
|
64
|
+
"@capacitor/cli": "^8.0.0",
|
|
65
|
+
"@capacitor/core": "^8.0.0",
|
|
64
66
|
"@capacitor/docgen": "^0.3.0",
|
|
65
|
-
"@capacitor/ios": "^
|
|
67
|
+
"@capacitor/ios": "^8.0.0",
|
|
66
68
|
"@ionic/eslint-config": "^0.4.0",
|
|
67
69
|
"@ionic/prettier-config": "^4.0.0",
|
|
68
70
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
69
|
-
"@types/node": "^
|
|
71
|
+
"@types/node": "^24.3.0",
|
|
70
72
|
"eslint": "^8.57.0",
|
|
71
|
-
"eslint-plugin-import": "^2.
|
|
73
|
+
"eslint-plugin-import": "^2.32.0",
|
|
72
74
|
"husky": "^9.1.7",
|
|
73
|
-
"prettier": "^3.
|
|
74
|
-
"prettier-plugin-java": "^2.
|
|
75
|
+
"prettier": "^3.6.2",
|
|
76
|
+
"prettier-plugin-java": "^2.7.4",
|
|
75
77
|
"rimraf": "^6.0.1",
|
|
76
|
-
"rollup": "^4.
|
|
78
|
+
"rollup": "^4.50.0",
|
|
77
79
|
"swiftlint": "^2.0.0",
|
|
78
|
-
"typescript": "^5.
|
|
80
|
+
"typescript": "^5.9.2"
|
|
79
81
|
},
|
|
80
82
|
"peerDependencies": {
|
|
81
|
-
"@capacitor/core": "
|
|
83
|
+
"@capacitor/core": "^8.0.0"
|
|
82
84
|
},
|
|
83
85
|
"prettier": "@ionic/prettier-config",
|
|
84
86
|
"swiftlint": "@ionic/swiftlint-config",
|