Skip to content

Commit

Permalink
Merge pull request #125 from BalazsSzamody/swift-package
Browse files Browse the repository at this point in the history
Swift Package Manager Support
  • Loading branch information
s4cha authored Oct 16, 2019
2 parents 28c491b + 877f921 commit 6b597af
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 29 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Stevia"
name: "Stevia",
platforms: [.iOS(.v9), .tvOS(.v10)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "Stevia",
targets: ["Stevia"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, 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: "Stevia",
dependencies: [],
path: "Source"),
// Currently SPM doesn't support testing on simulator/iOS device
// Tests can be run by generating an Xcode project (`swift package generate-xcodeproj`) and running the tests there
.testTarget(
name: "SteviaTests",
dependencies: ["Stevia"],
path: "SteviaTests"),
]
)

0 comments on commit 6b597af

Please sign in to comment.