forked from auth0/Auth0.swift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
42 lines (39 loc) · 1.67 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
41
42
// swift-tools-version:5.3
import PackageDescription
#if compiler(>=5.5)
let webAuthPlatforms: [Platform] = [.iOS, .macOS, .macCatalyst]
#else
let webAuthPlatforms: [Platform] = [.iOS, .macOS]
#endif
let swiftSettings: [SwiftSetting] = [.define("WEB_AUTH_PLATFORM", .when(platforms: webAuthPlatforms))]
let package = Package(
name: "Auth0",
platforms: [.iOS(.v12), .macOS(.v10_15), .tvOS(.v12), .watchOS("6.2")],
products: [.library(name: "Auth0", targets: ["Auth0"])],
dependencies: [
.package(name: "SimpleKeychain", url: "https://github.com/auth0/SimpleKeychain.git", .upToNextMajor(from: "0.12.0")),
.package(name: "JWTDecode", url: "https://github.com/auth0/JWTDecode.swift.git", .upToNextMajor(from: "2.5.0")),
.package(name: "Quick", url: "https://github.com/Quick/Quick.git", .upToNextMajor(from: "4.0.0")),
.package(name: "Nimble", url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "9.0.0")),
.package(name: "OHHTTPStubs", url: "https://github.com/AliSoftware/OHHTTPStubs.git", .upToNextMajor(from: "9.0.0"))
],
targets: [
.target(
name: "Auth0",
dependencies: ["SimpleKeychain", "JWTDecode"],
path: "Auth0",
exclude: ["Info.plist"],
swiftSettings: swiftSettings),
.testTarget(
name: "Auth0Tests",
dependencies: [
"Auth0",
"Quick",
"Nimble",
.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs")
],
path: "Auth0Tests",
exclude: ["Info.plist", "Auth0.plist"],
swiftSettings: swiftSettings)
]
)