Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from stuartbreckenridge/main
Browse files Browse the repository at this point in the history
RSTree as a Swift Package
  • Loading branch information
vincode-io authored Jul 29, 2020
2 parents 8cd9e07 + fa55832 commit 979ed0e
Show file tree
Hide file tree
Showing 22 changed files with 70 additions and 341 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/build.yml

This file was deleted.

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.

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

import PackageDescription

let package = Package(
name: "RSTree",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "RSTree",
type: .dynamic,
targets: ["RSTree"]),
],
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 this package depends on.
.target(
name: "RSTree",
dependencies: []),
.testTarget(
name: "RSTreeTests",
dependencies: ["RSTree"]),
]
)
28 changes: 0 additions & 28 deletions RSTree/Info.plist

This file was deleted.

19 changes: 0 additions & 19 deletions RSTree/RSTree.h

This file was deleted.

24 changes: 0 additions & 24 deletions RSTreeTests/Info.plist

This file was deleted.

36 changes: 0 additions & 36 deletions RSTreeTests/RSTreeTests.swift

This file was deleted.

File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions Sources/RSTree/RSTree.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
struct RSTree {
var text = "Hello, World!"
}
File renamed without changes.
7 changes: 7 additions & 0 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import XCTest

import RSTreeTests

var tests = [XCTestCaseEntry]()
tests += RSTreeTests.allTests()
XCTMain(tests)
15 changes: 15 additions & 0 deletions Tests/RSTreeTests/RSTreeTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import XCTest
@testable import RSTree

final class RSTreeTests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(RSTree().text, "Hello, World!")
}

static var allTests = [
("testExample", testExample),
]
}
9 changes: 9 additions & 0 deletions Tests/RSTreeTests/XCTestManifests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import XCTest

#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(RSTreeTests.allTests),
]
}
#endif
84 changes: 0 additions & 84 deletions buildscripts/VerifyNoBuildSettings.swift

This file was deleted.

18 changes: 0 additions & 18 deletions xcconfig/RSTreeTests_target.xcconfig

This file was deleted.

59 changes: 0 additions & 59 deletions xcconfig/RSTree_project.xcconfig

This file was deleted.

Loading

0 comments on commit 979ed0e

Please sign in to comment.