Skip to content

Commit

Permalink
downgrad
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Amling committed Apr 19, 2020
1 parent d61163d commit 5176348
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// swift-tools-version:5.2
// swift-tools-version:4.0
// Package.swift
// Perfect-MySQL
//
// Created by Kyle Jessup on 3/22/16.
// Copyright (C) 2016 PerfectlySoft, Inc.
// Copyright (C) 2016 PerfectlySoft, Inc.
//
//===----------------------------------------------------------------------===//
//
Expand All @@ -18,34 +18,24 @@
//

import PackageDescription

#if os(macOS)
let package = Package(
name: "PerfectMySQL",
products: [
.library(name: "PerfectMySQL", targets: ["PerfectMySQL"])
],
dependencies: [
.package(name: "PerfectCRUD", url: "https://github.com/PerfectlySoft/Perfect-CRUD.git", from: "1.2.2"),
.package(url: "https://github.com/michiamling/Perfect-mysqlclient.git", from: "2.0.0")
],
targets: [
.target(name: "PerfectMySQL", dependencies: ["PerfectCRUD"]),
.testTarget(name: "PerfectMySQLTests", dependencies: ["PerfectMySQL"])
]
)
let clientPackage = "Perfect-mysqlclient"
#else
let clientPackage = "Perfect-mysqlclient-Linux"
#endif

let package = Package(
name: "PerfectMySQL",
products: [
.library(name: "PerfectMySQL", targets: ["PerfectMySQL"])
],
dependencies: [
.package(name: "PerfectCRUD", url: "https://github.com/PerfectlySoft/Perfect-CRUD.git", from: "1.2.2"),
.package(url: "https://github.com/michiamling/Perfect-mysqlclient-Linux.git", from: "2.0.0")
.package(url: "https://github.com/PerfectlySoft/Perfect-CRUD.git", from: "1.2.2"),
.package(url: "https://github.com/michiamling/\(clientPackage).git", from: "2.0.0")
],
targets: [
.target(name: "PerfectMySQL", dependencies: ["PerfectCRUD"]),
.testTarget(name: "PerfectMySQLTests", dependencies: ["PerfectMySQL"])
]
)
#endif

0 comments on commit 5176348

Please sign in to comment.