-
Notifications
You must be signed in to change notification settings - Fork 19
/
Package.swift
63 lines (61 loc) · 2.38 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
var package = Package(
name: "AuthFoundation",
defaultLocalization: "en",
platforms: [
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v7),
.visionOS(.v1),
.macOS(.v10_15),
.macCatalyst(.v13)
],
products: [
.library(name: "AuthFoundation", targets: ["AuthFoundation"]),
.library(name: "OktaOAuth2", targets: ["OktaOAuth2"]),
.library(name: "OktaDirectAuth", targets: ["OktaDirectAuth"]),
.library(name: "WebAuthenticationUI", targets: ["WebAuthenticationUI"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
],
targets: [
.target(name: "AuthFoundation",
dependencies: [],
resources: [.process("Resources")]),
.target(name: "OktaOAuth2",
dependencies: [
.target(name: "AuthFoundation")
],
resources: [.process("Resources")]),
.target(name: "OktaDirectAuth",
dependencies: [
.target(name: "AuthFoundation")
],
resources: [.process("Resources")]),
.target(name: "WebAuthenticationUI",
dependencies: [
.target(name: "OktaOAuth2")
],
resources: [.process("Resources")]),
] + [
.target(name: "TestCommon",
dependencies: ["AuthFoundation"],
path: "Tests/TestCommon"),
.testTarget(name: "AuthFoundationTests",
dependencies: ["AuthFoundation", "TestCommon"],
resources: [ .copy("MockResponses") ]),
.testTarget(name: "OktaOAuth2Tests",
dependencies: ["OktaOAuth2", "TestCommon"],
resources: [ .copy("MockResponses") ]),
.testTarget(name: "OktaDirectAuthTests",
dependencies: ["OktaDirectAuth", "TestCommon"],
resources: [ .copy("MockResponses") ]),
.testTarget(name: "WebAuthenticationUITests",
dependencies: ["WebAuthenticationUI", "TestCommon"],
resources: [ .copy("MockResponses") ])
],
swiftLanguageVersions: [.v5]
)