-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Update CwlPreconditionTesting to 2.0.0-beta.1
- Loading branch information
Showing
21 changed files
with
84 additions
and
182 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 +1,2 @@ | ||
github "mattgallagher/CwlPreconditionTesting" == 1.2.0 | ||
github "mattgallagher/CwlCatchException" == 2.0.0-beta.1 | ||
github "mattgallagher/CwlPreconditionTesting" == 2.0.0-beta.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
github "mattgallagher/CwlPreconditionTesting" "1.2.0" | ||
github "mattgallagher/CwlCatchException" "2.0.0-beta.1" | ||
github "mattgallagher/CwlPreconditionTesting" "2.0.0-beta.1" |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...endencies/CwlCatchException/Package.swift → ...Checkouts/CwlCatchException/Package.swift
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,18 @@ | ||
# CwlCatchException | ||
A simple Swift wrapper around an Objective-C `@try`/`@catch` statement that selectively catches Objective-C exceptions by `NSException` subtype, rethrowing if any caught exception is not the expected subtype. | ||
|
||
Look at [CwlCatchExceptionTests.swift](https://github.com/mattgallagher/CwlCatchException/blob/master/Tests/CwlCatchExceptionTests/CwlCatchExceptionTests.swift) for syntax. | ||
|
||
## Requirements | ||
|
||
From version 2.0.0-beta.1, building CwlCatchException requires Swift 5 or newer and the Swift Package Manager. | ||
|
||
For use with older versions of Swift or other package managers, [use version 1.2.0 or older](https://github.com/mattgallagher/CwlCatchException/tree/1.2.0). | ||
|
||
## Adding to your project | ||
|
||
Add the following to the `dependencies` array in your "Package.swift" file: | ||
|
||
.package(url: "https://github.com/mattgallagher/CwlCatchException.git", from: Version("2.0.0-beta.1")) | ||
|
||
Or by adding `https://github.com/mattgallagher/CwlCatchException.git`, version 2.0.0-beta.1 or later, to the list of Swift packages for any project in Xcode. |
File renamed without changes.
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
46 changes: 0 additions & 46 deletions
46
Carthage/Checkouts/CwlPreconditionTesting/Dependencies/CwlCatchException/README.md
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
// swift-tools-version:4.0 | ||
// swift-tools-version:5.0 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "CwlPreconditionTesting", | ||
products: [ | ||
.library(name: "CwlPreconditionTesting", type: .dynamic, targets: ["CwlPreconditionTesting", "CwlMachBadInstructionHandler"]) | ||
.library(name: "CwlPreconditionTesting", targets: ["CwlPreconditionTesting", "CwlMachBadInstructionHandler"]), | ||
.library(name: "CwlPosixPreconditionTesting", targets: ["CwlPosixPreconditionTesting"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/mattgallagher/CwlCatchException.git", from: "1.2.0") | ||
.package(url: "https://github.com/mattgallagher/CwlCatchException.git", from: Version(2, 0, 0, prereleaseIdentifiers: ["-beta.1"])) | ||
], | ||
targets: [ | ||
.target( | ||
name: "CwlPreconditionTesting", | ||
dependencies: [ | ||
.target(name: "CwlMachBadInstructionHandler"), | ||
.product(name: "CwlCatchException") | ||
], | ||
exclude: [ | ||
"./Mach/CwlPreconditionTesting.h", | ||
"./Posix/CwlPreconditionTesting.h", | ||
"./CwlCatchBadInstructionPosix.swift" | ||
] | ||
), | ||
.target( | ||
name: "CwlPosixPreconditionTesting" | ||
), | ||
.target(name: "CwlMachBadInstructionHandler"), | ||
.testTarget(name: "CwlPreconditionTestingTests", dependencies: ["CwlPreconditionTesting"]) | ||
.testTarget(name: "CwlPreconditionTestingTests", dependencies: ["CwlPreconditionTesting", "CwlPosixPreconditionTesting"]) | ||
] | ||
) |
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
35 changes: 0 additions & 35 deletions
35
...ts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/include/CwlPreconditionTesting.h
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.