-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPackage.swift
43 lines (39 loc) · 1.26 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.9
import Foundation
import PackageDescription
let package = Package(
name: "PlaybookAccessibilitySnapshot",
platforms: [
.iOS(.v13)
],
products: [
.library(name: "PlaybookAccessibilitySnapshot", targets: ["PlaybookAccessibilitySnapshot"]),
],
dependencies: [
.package(
url: "https://github.com/playbook-ui/playbook-ios.git",
.upToNextMinor(from: "0.4.1")
),
.package(
url: "https://github.com/cashapp/AccessibilitySnapshot.git",
.upToNextMinor(from: "0.7.0")
),
],
targets: [
.target(
name: "PlaybookAccessibilitySnapshot",
dependencies: [
.product(name: "PlaybookSnapshot", package: "playbook-ios"),
.product(name: "AccessibilitySnapshotCore", package: "AccessibilitySnapshot"),
],
path: "Sources"
),
],
swiftLanguageVersions: [.v5]
)
if ProcessInfo.processInfo.environment["PLAYBOOK_DEVELOPMENT"] != nil {
package.dependencies.append(contentsOf: [
.package(url: "https://github.com/apple/swift-format.git", exact: "509.0.0"),
.package(url: "https://github.com/yonaskolb/XcodeGen.git", exact: "2.38.0"),
])
}