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:
parent
ec13df124a
commit
6fcb458c63
|
@ -1,5 +1,6 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/.build
|
/.build
|
||||||
/Packages
|
/Packages
|
||||||
|
/.swiftpm
|
||||||
/*.xcodeproj
|
/*.xcodeproj
|
||||||
Package.resolved
|
Package.resolved
|
||||||
|
|
|
@ -9,7 +9,7 @@ import XCTest
|
||||||
|
|
||||||
/// Abstract base class for all Splash tests
|
/// Abstract base class for all Splash tests
|
||||||
class SplashTestCase: XCTestCase {
|
class SplashTestCase: XCTestCase {
|
||||||
#if !os(Linux)
|
#if os(macOS)
|
||||||
func testHasLinuxVerificationTest() {
|
func testHasLinuxVerificationTest() {
|
||||||
let concreteType = type(of: self)
|
let concreteType = type(of: self)
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
#if !os(macOS)
|
#if os(Linux)
|
||||||
|
|
||||||
public func makeLinuxTests() -> [XCTestCaseEntry] {
|
public func makeLinuxTests() -> [XCTestCaseEntry] {
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in New Issue