forked from auth0/Auth0.swift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
43 lines (40 loc) · 1.93 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
43
// swift-tools-version:5.2
import PackageDescription
let webAuthFlag: (name: String, condition: BuildSettingCondition) = ("WEB_AUTH_PLATFORM",
.when(platforms: [.iOS, .macOS]))
let cSettings: [CSetting] = [.define(webAuthFlag.name, webAuthFlag.condition)]
let swiftSettings: [SwiftSetting] = [.define(webAuthFlag.name, webAuthFlag.condition)]
let package = Package(
name: "Auth0",
platforms: [.iOS(.v9), .macOS(.v10_11), .tvOS(.v9), .watchOS(.v2)],
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: "3.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", "Auth0ObjectiveC"],
path: "Auth0",
exclude: ["ObjectiveC"],
cSettings: cSettings,
swiftSettings: swiftSettings),
.target(name: "Auth0ObjectiveC", path: "Auth0/ObjectiveC", cSettings: cSettings),
.testTarget(
name: "Auth0Tests",
dependencies: [
"Auth0",
"Quick",
"Nimble",
.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs")
],
path: "Auth0Tests",
exclude: ["ObjectiveC"],
cSettings: cSettings,
swiftSettings: swiftSettings)
]
)