Skip to content

Commit

Permalink
Enable Splash to be compiled for iOS as a Swift Package (#70)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
JohnSundell authored Jun 9, 2019
1 parent ec13df1 commit 6fcb458
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
/.build
/Packages
/.swiftpm
/*.xcodeproj
Package.resolved
2 changes: 1 addition & 1 deletion Tests/SplashTests/Core/SplashTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion Tests/SplashTests/Core/XCTestManifests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import XCTest

#if !os(macOS)
#if os(Linux)

public func makeLinuxTests() -> [XCTestCaseEntry] {
return [
Expand Down

0 comments on commit 6fcb458

Please sign in to comment.