-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Package.swift
38 lines (34 loc) · 1.64 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
// swift-tools-version:5.2
import Foundation
import PackageDescription
// MARK: Definitions
let package = Package(
name: "Swiftagram",
// Supported versions.
platforms: [.iOS("13.0"),
.macOS("10.15"),
.tvOS("13.0"),
.watchOS("6.0")],
// Exposed libraries.
products: [.library(name: "Swiftagram",
targets: ["Swiftagram"]),
.library(name: "SwiftagramCrypto",
targets: ["SwiftagramCrypto"])],
// Package dependencies.
dependencies: [.package(url: "https://github.com/sbertix/ComposableRequest", .upToNextMinor(from: "5.3.1")),
.package(url: "https://github.com/sbertix/SwCrypt.git", .upToNextMinor(from: "5.1.0"))],
// All targets.
targets: [.target(name: "Swiftagram",
dependencies: [.product(name: "Requests", package: "ComposableRequest"),
.product(name: "Storage", package: "ComposableRequest")]),
.target(name: "SwiftagramCrypto",
dependencies: ["Swiftagram",
.product(name: "StorageCrypto", package: "ComposableRequest"),
.product(name: "SwCrypt", package: "SwCrypt")]),
.testTarget(name: "SwiftagramTests",
dependencies: ["Swiftagram", "SwiftagramCrypto"])]
)
if ProcessInfo.processInfo.environment["TARGETING_WATCHOS"] == "true" {
// #workaround(xcodebuild -version 11.6, Test targets don’t work on watchOS.) @exempt(from: unicode)
package.targets.removeAll(where: { $0.isTest })
}