-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Unit Tests and Swift 3 compatibility
- Loading branch information
1 parent
199e3e7
commit b504b03
Showing
17 changed files
with
523 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,15 @@ | ||
// swift-tools-version:4.0 | ||
// swift-tools-version:3.0.2 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Silica", | ||
products: [ | ||
// Products define the executables and libraries produced by a package, and make them visible to other packages. | ||
.library( | ||
name: "Silica", | ||
targets: ["Silica"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/PureSwift/Cairo.git", .branch("master")), | ||
.package(url: "https://github.com/PureSwift/LittleCMS.git", .branch("master")) | ||
], | ||
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 which this package depends on. | ||
.target( | ||
name: "Silica", | ||
dependencies: ["Cairo", "LittleCMS"]), | ||
.testTarget( | ||
name: "SilicaTests", | ||
dependencies: ["Silica"]), | ||
] | ||
Target(name: "Silica") | ||
], | ||
dependencies: [ | ||
.Package(url: "https://github.com/PureSwift/Cairo.git", majorVersion: 1), | ||
.Package(url: "https://github.com/PureSwift/LittleCMS.git", majorVersion: 1) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// CGPoint.swift | ||
// Silica | ||
// | ||
// Created by Alsey Coleman Miller on 6/16/17. | ||
// | ||
|
||
import struct Foundation.CGFloat | ||
import struct Foundation.CGPoint | ||
|
||
#if os(Linux) | ||
public extension CGPoint { | ||
|
||
#if swift(>=4) | ||
#elseif swift(>=3.0.2) | ||
public static var zero: CGPoint { return CGPoint() } | ||
#endif | ||
} | ||
#endif |
Oops, something went wrong.