-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Swift 6 update - remove force unwraps - fix out-of-memory issues - update unit tests
- Loading branch information
Showing
47 changed files
with
369 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// swift-tools-version:5.9 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "testify", | ||
platforms: [ | ||
.macOS(.v10_15), | ||
], | ||
products: [ | ||
.executable(name: "testify", targets: ["testify"]), | ||
.library(name: "TestifySDK", targets: ["TestifySDK"]) | ||
], | ||
targets: [ | ||
.executableTarget( | ||
name: "testify", | ||
dependencies: [ | ||
.target(name: "TestifySDK") | ||
] | ||
), | ||
|
||
// MARK: - targets | ||
|
||
.target( | ||
name: "TestifySDK", | ||
dependencies: [] | ||
), | ||
|
||
// MARK: - test targets | ||
|
||
.testTarget( | ||
name: "TestifySDKTests", | ||
dependencies: [ | ||
.target(name: "TestifySDK"), | ||
], | ||
resources: [ | ||
.process("Resources"), | ||
] | ||
), | ||
] | ||
) |
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
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,25 @@ | ||
// | ||
// Bundle+Extensions.swift | ||
// testify | ||
// | ||
// Created by Amine BENSALAH on 09/10/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
extension Bundle { | ||
|
||
enum BundleCustomError: Error { | ||
case fileNotFound(file: String, extension: String) | ||
} | ||
|
||
func getURL(for file: String, withExtension extension: String) throws -> URL { | ||
guard let url = Bundle.module.url( | ||
forResource: file, | ||
withExtension: `extension` | ||
) else { | ||
throw BundleCustomError.fileNotFound(file: file, extension: `extension`) | ||
} | ||
return url | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.