-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
39 lines (36 loc) · 1.19 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
36
37
38
// swift-tools-version:5.3
import PackageDescription
// The release tag for the branch
let releaseTAG = "3.2.7"
// SDK package version (used for both iOS and watchOS)
let sdkVersion = "3.2.4"
let package = Package(
name: "ApproovURLSession",
platforms: [
.iOS(.v11),
.watchOS(.v7)
],
products: [
// Combined library for iOS and watchOS
.library(
name: "ApproovURLSession",
targets: ["ApproovURLSession"]
),
.library(name: "ApproovURLSessionDynamic", type: .dynamic, targets: ["ApproovURLSession"])
],
targets: [
// Single target for both platforms
.target(
name: "ApproovURLSession",
dependencies: ["Approov"],
path: "Sources/ApproovURLSession", // Point to the shared source code
exclude: ["README.md", "LICENSE"]
),
// Binary target for the merged xcframework
.binaryTarget(
name: "Approov",
url: "https://github.com/approov/approov-ios-sdk/releases/download/\(sdkVersion)/Approov.xcframework.zip",
checksum: "063426d969310bb5e6c4d8efd1009178c3e9cb003105085fabf55be0bf551f13"
)
]
)