-
Notifications
You must be signed in to change notification settings - Fork 227
/
Package.swift
40 lines (37 loc) · 1.56 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
39
40
// swift-tools-version:5.9
import PackageDescription
let webAuthPlatforms: [Platform] = [.iOS, .macOS, .macCatalyst, .visionOS]
let swiftSettings: [SwiftSetting] = [.define("WEB_AUTH_PLATFORM", .when(platforms: webAuthPlatforms))]
let package = Package(
name: "Auth0",
platforms: [.iOS(.v14), .macOS(.v11), .tvOS(.v14), .watchOS(.v7), .visionOS(.v1)],
products: [.library(name: "Auth0", targets: ["Auth0"])],
dependencies: [
.package(url: "https://github.com/auth0/SimpleKeychain.git", exact:"1.2.0"),
.package(url: "https://github.com/auth0/JWTDecode.swift.git", exact:"3.2.0"),
.package(url: "https://github.com/Quick/Quick.git", .upToNextMajor(from: "7.0.0")),
.package(url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "13.0.0"))
],
targets: [
.target(
name: "Auth0",
dependencies: [
.product(name: "SimpleKeychain", package: "SimpleKeychain"),
.product(name: "JWTDecode", package: "JWTDecode.swift")
],
path: "Auth0",
exclude: ["Info.plist"],
resources: [.copy("PrivacyInfo.xcprivacy")],
swiftSettings: swiftSettings),
.testTarget(
name: "Auth0Tests",
dependencies: [
"Auth0",
.product(name: "Quick", package: "Quick"),
.product(name: "Nimble", package: "Nimble")
],
path: "Auth0Tests",
exclude: ["Info.plist", "Auth0.plist"],
swiftSettings: swiftSettings)
]
)