-
Notifications
You must be signed in to change notification settings - Fork 71
/
Package.swift
26 lines (25 loc) · 1.33 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "TeslaSwift",
platforms: [
.macOS(.v12), .iOS(.v15), .watchOS(.v8), .tvOS(.v15)
],
products: [
.library(name: "TeslaSwift", targets: ["TeslaSwift"]),
.library(name: "TeslaSwiftStreaming", targets: ["TeslaSwiftStreaming"]),
.library(name: "TeslaSwiftCombine", targets: ["TeslaSwiftCombine"]),
.library(name: "TeslaSwiftStreamingCombine", targets: ["TeslaSwiftStreamingCombine"])
],
dependencies: [
.package(url: "https://github.com/daltoniam/Starscream.git", from: "4.0.6"),
//.package(url: "https://github.com/AliSoftware/OHHTTPStubs.git", Package.Dependency.Requirement.branch("feature/spm-support"))
],
targets: [
.target(name: "TeslaSwift"),
.target(name: "TeslaSwiftStreaming", dependencies: ["TeslaSwift", "Starscream"], path: "Sources/Extensions/Streaming"),
.target(name: "TeslaSwiftCombine", dependencies: ["TeslaSwift"], path: "Sources/Extensions/Combine"),
.target(name: "TeslaSwiftStreamingCombine", dependencies: ["TeslaSwiftStreaming", "TeslaSwiftCombine"], path: "Sources/Extensions/StreamingCombine"),
//.testTarget(name: "TeslaSwiftTests", dependencies: ["TeslaSwiftPMK", "PromiseKit", "OHHTTPStubsSwift"], path: "TeslaSwiftTests")
]
)