@otakit/capacitor-updater 2.1.1 → 2.1.2
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/Package.swift +27 -0
- package/package.json +5 -3
package/Package.swift
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// swift-tools-version: 5.9
|
|
2
|
+
import PackageDescription
|
|
3
|
+
|
|
4
|
+
let package = Package(
|
|
5
|
+
name: "OtakitCapacitorUpdater",
|
|
6
|
+
platforms: [.iOS(.v15)],
|
|
7
|
+
products: [
|
|
8
|
+
.library(
|
|
9
|
+
name: "OtakitCapacitorUpdater",
|
|
10
|
+
targets: ["UpdaterPlugin"])
|
|
11
|
+
],
|
|
12
|
+
dependencies: [
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", "7.0.0"..<"9.0.0"),
|
|
14
|
+
.package(url: "https://github.com/weichsel/ZIPFoundation.git", .upToNextMajor(from: "0.9.0"))
|
|
15
|
+
],
|
|
16
|
+
targets: [
|
|
17
|
+
.target(
|
|
18
|
+
name: "UpdaterPlugin",
|
|
19
|
+
dependencies: [
|
|
20
|
+
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
|
21
|
+
.product(name: "Cordova", package: "capacitor-swift-pm"),
|
|
22
|
+
.product(name: "ZIPFoundation", package: "ZIPFoundation")
|
|
23
|
+
],
|
|
24
|
+
path: "ios/Sources/UpdaterPlugin",
|
|
25
|
+
exclude: ["UpdaterPlugin.m"])
|
|
26
|
+
]
|
|
27
|
+
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otakit/capacitor-updater",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Capacitor plugin for OTA updates",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"LICENSE",
|
|
14
|
+
"Package.swift",
|
|
14
15
|
"android/src/main/",
|
|
15
16
|
"android/build.gradle",
|
|
16
17
|
"dist/",
|
|
@@ -36,8 +37,9 @@
|
|
|
36
37
|
"update"
|
|
37
38
|
],
|
|
38
39
|
"scripts": {
|
|
39
|
-
"verify": "npm run verify:minimal",
|
|
40
|
+
"verify": "npm run verify:minimal && npm run verify:pack",
|
|
40
41
|
"verify:minimal": "node -e \"console.log('Native verification is not wired yet')\"",
|
|
42
|
+
"verify:pack": "npm pack --dry-run --json --cache /tmp/otakit-npm-pack-cache | node -e \"const data=JSON.parse(require('fs').readFileSync(0,'utf8')); const files=(data[0]?.files??[]).map((f)=>f.path); if(!files.includes('Package.swift')){console.error('Missing Package.swift in published tarball'); process.exit(1)} console.log('Verified tarball includes Package.swift')\"",
|
|
41
43
|
"verify:web": "npm run build",
|
|
42
44
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
43
45
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
"typescript": "^5.9.3"
|
|
70
72
|
},
|
|
71
73
|
"peerDependencies": {
|
|
72
|
-
"@capacitor/core": "^8.0.
|
|
74
|
+
"@capacitor/core": "^7.0.0 || ^8.0.0"
|
|
73
75
|
},
|
|
74
76
|
"engines": {
|
|
75
77
|
"node": ">=20.0.0"
|