Skip to content

Instantly share code, notes, and snippets.

@DrAma999
Created August 3, 2020 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrAma999/e0f5dadf7d496a74b1b0eee1e2695bd8 to your computer and use it in GitHub Desktop.
Save DrAma999/e0f5dadf7d496a74b1b0eee1e2695bd8 to your computer and use it in GitHub Desktop.
LittleBluetooth package file second
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "LittleBlueTooth",
platforms: [
// Add support for all platforms starting from a specific version.
.macOS(.v10_15),
.iOS(.v13),
.watchOS(.v6),
.tvOS(.v13)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "LittleBlueTooth",
targets: ["LittleBlueTooth"]),
.library(
name: "LittleBlueToothForTest",
targets: ["LittleBlueToothForTest"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(name: "CoreBluetoothMock",
url: "https://github.com/enricodk/IOS-CoreBluetooth-Mock.git",
.branch("multiplatform")),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "LittleBlueTooth",
dependencies: []),
.target(
name: "LittleBlueToothForTest",
dependencies: ["CoreBluetoothMock"],
swiftSettings: [.define("TEST")]
),
.testTarget(
name: "LittleBlueToothTests",
dependencies: ["LittleBlueToothForTest","CoreBluetoothMock"])
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment