Skip to content

Instantly share code, notes, and snippets.

@harshvishu
Last active January 7, 2019 19:36
Show Gist options
  • Save harshvishu/18ee4d1fd72d0ca428f76513238a3be7 to your computer and use it in GitHub Desktop.
Save harshvishu/18ee4d1fd72d0ca428f76513238a3be7 to your computer and use it in GitHub Desktop.
Swift-Blockchain-Package.swift
// swift-tools-version:4.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Swift-Blockchain",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.executable(
name: "Swift-Blockchain",
targets: ["Swift-Blockchain"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.5.0")),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMinor(from: "0.8.0")),
.package(url: "https://github.com/IBM-Swift/SwiftyRequest.git", .upToNextMajor(from: "1.0.0")),
],
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: "Swift-Blockchain",
dependencies: ["Kitura", "CryptoSwift", "SwiftyRequest"]),
.testTarget(
name: "Swift-BlockchainTests",
dependencies: ["Swift-Blockchain"]),
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment