Skip to content

Commit

Permalink
update package for SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
ajandrade committed Oct 14, 2020
1 parent ea7121d commit 580eda6
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// swift-tools-version:5.0
//
// Package.swift
// OAuth2
Expand All @@ -17,20 +18,33 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//

import PackageDescription

let package = Package(
name: "OAuth2",
targets: [
Target(name: "SwiftKeychain"),
Target(name: "Base", dependencies: [.Target(name: "SwiftKeychain")]),
Target(name: "macOS", dependencies: [.Target(name: "Base")]),
Target(name: "Flows", dependencies: [.Target(name: "macOS")]),
Target(name: "DataLoader", dependencies: [.Target(name: "Flows")]),
platforms: [
.macOS(.v10_11), .iOS(.v8), .tvOS(.v9), .watchOS(.v3)
],
products: [
.library(name: "OAuth2", targets: ["OAuth2"]),
],
dependencies: [
// SwiftKeychain is not yet available as a Package, so we symlink to /Sources and make it a Target
//.Package(url: "https://github.com/yankodimitrov/SwiftKeychain.git", majorVersion: 1),
//.package(url: "https://github.com/yankodimitrov/SwiftKeychain.git", majorVersion: 1),
],
targets: [
.target(name: "OAuth2",
dependencies: ["Base", "Flows", "DataLoader"]),
.target(name: "SwiftKeychain"),
.target(name: "Base", dependencies: [.target(name: "SwiftKeychain")]),
.target(name: "macOS", dependencies: [.target(name: "Base")]),
.target(name: "iOS", dependencies: [.target(name: "Base")]),
.target(name: "tvOS", dependencies: [.target(name: "Base")]),
.target(name: "Flows", dependencies: [
.target(name: "macOS"), .target(name: "iOS"), .target(name: "tvOS")]),
.target(name: "DataLoader", dependencies: [.target(name: "Flows")]),
.testTarget(name: "BaseTests", dependencies: [.target(name: "Base"), .target(name: "Flows")]),
.testTarget(name: "FlowTests", dependencies: [.target(name: "Flows")]),
// .testTarget(name: "DataLoaderTests", dependencies: [.target(name: "DataLoader")]),
]
)

0 comments on commit 580eda6

Please sign in to comment.