Enable Splash to be compiled for iOS as a Swift Package (#70)

While Splash has supported iOS since its early days, this change makes
it possible to compile the iOS version as a Swift Package, using Xcode 11.

The changes require us to not make the assumption that != macOS == Linux.

(Also git ignore the new `.swiftpm` directory that SwiftPM now uses)
This commit is contained in:
John Sundell 2019-06-09 11:56:10 +02:00 committed by GitHub
parent ec13df124a
commit 6fcb458c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.DS_Store
/.build
/Packages
/.swiftpm
/*.xcodeproj
Package.resolved

View File

@ -9,7 +9,7 @@ import XCTest
/// Abstract base class for all Splash tests
class SplashTestCase: XCTestCase {
#if !os(Linux)
#if os(macOS)
func testHasLinuxVerificationTest() {
let concreteType = type(of: self)

View File

@ -6,7 +6,7 @@
import XCTest
#if !os(macOS)
#if os(Linux)
public func makeLinuxTests() -> [XCTestCaseEntry] {
return [