Skip to content

Commit

Permalink
Add an SPM package manifest (#54)
Browse files Browse the repository at this point in the history
* Add an SPM package manifest

* Declare tests in package manifest

* Lower minimum version
  • Loading branch information
vmanot authored Sep 5, 2020
1 parent 858f1d7 commit e9257e1
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,6 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
.DS_Store
.swiftpm/
.swiftpm/*
43 changes: 43 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// swift-tools-version:5.2
//
// Copyright © 2020 Rajdeep Kwatra. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

import PackageDescription

let package = Package(
name: "Proton",
platforms: [
.iOS(.v11),
],
products: [
.library(name: "Proton", targets: ["Proton"])
],
dependencies: [
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", .branch("master"))
],
targets: [
.target(
name: "Proton",
dependencies: [],
path: "Proton/Sources"
),
.testTarget(
name: "ProtonTests",
dependencies: ["Proton", "SnapshotTesting"],
path: "Proton/Tests"
)
]
)
3 changes: 2 additions & 1 deletion Proton/Tests/Core/RichTextViewContextTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ class RichTextViewContextTests: XCTestCase {
testExpectation.fulfill()
}

_ = context.textViewDidChange(textView)
context.textViewDidChange(textView)

waitForExpectations(timeout: 1.0)
}

Expand Down

0 comments on commit e9257e1

Please sign in to comment.