-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
66 lines (62 loc) · 2.22 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
64
65
66
// swift-tools-version: 5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let keychainWrapper: String = "SecretInfoKeyChain"
let keychainWrapperRxSwift: String = "\(keychainWrapper)RxSwift"
let keychainWrapperCombine: String = "\(keychainWrapper)Combine"
let keychainWrapperSwift: String = "\(keychainWrapper)Swift"
let package = Package(
name: keychainWrapper,
platforms: [
.iOS(.v14),
.macOS(.v11),
],
products: [
.library(
name: keychainWrapper,
targets: [keychainWrapper]),
.library(
name: keychainWrapperCombine,
targets: [keychainWrapperCombine]),
.library(
name: keychainWrapperSwift,
targets: [keychainWrapperSwift]),
.library(
name: keychainWrapperRxSwift,
targets: [keychainWrapperRxSwift])
],
dependencies: [
.package(url: "https://github.com/ReactiveX/RxSwift", from: "5.0.0")
],
targets: [
.target(
name: keychainWrapper,
dependencies: []),
.target(
name: keychainWrapperCombine,
dependencies: [.init(stringLiteral: keychainWrapper)]),
.target(
name: keychainWrapperSwift,
dependencies: [.init(stringLiteral: keychainWrapper)]),
.target(
name: keychainWrapperRxSwift,
dependencies: [
.init(stringLiteral: keychainWrapper),
.product(name: "RxSwift", package: "RxSwift")]),
.testTarget(
name: "KeyChainWrapperTests",
dependencies: [
.init(stringLiteral: keychainWrapper),
.init(stringLiteral: keychainWrapperSwift)]),
.testTarget(
name: "KeyChainWrapperCombineTests",
dependencies: [.init(stringLiteral: keychainWrapperCombine)]),
.testTarget(
name: "KeyChainWrapperRxTests",
dependencies: [
.product(name: "RxBlocking", package: "RxSwift"),
.product(name: "RxTest", package: "RxSwift"),
.init(stringLiteral: keychainWrapperRxSwift),
]),
]
)