forked from auth0/Auth0.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
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: "1.0.0")),
.package(name: "JWTDecode", url: "https://github.com/auth0/JWTDecode.swift.git", .upToNextMajor(from: "3.0.0")),
.package(name: "Quick", url: "https://github.com/Quick/Quick.git", .upToNextMajor(from: "5.0.0")),
.package(name: "Nimble", url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "10.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)
]
)