-
-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathPackage.swift
35 lines (34 loc) · 1.35 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "CapgoCapacitorUpdater",
platforms: [.iOS(.v13)],
products: [
.library(
name: "CapgoCapacitorUpdater",
targets: ["CapacitorUpdaterPlugin"])
],
dependencies: [
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "main"),
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.10.2")),
.package(url: "https://github.com/ZipArchive/ZipArchive.git", exact: "2.6.0"),
.package(url: "https://github.com/mrackwitz/Version.git", .upToNextMajor(from: "0.8.0"))
],
targets: [
.target(
name: "CapacitorUpdaterPlugin",
dependencies: [
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm"),
.product(name: "ZipArchive", package: "ZipArchive"),
.product(name: "Alamofire", package: "Alamofire"),
.product(name: "Version", package: "Version")
],
path: "ios/Plugin"),
.testTarget(
name: "CapacitorUpdaterPluginTests",
dependencies: ["CapacitorUpdaterPlugin"],
path: "ios/PluginTests")
],
swiftLanguageVersions: [.v5]
)