Skip to content

Commit

Permalink
Remove AssertDependency (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrapperon authored May 8, 2024
1 parent 4957a79 commit 406ed2d
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-dependencies",
"state" : {
"revision" : "4e1eb6e28afe723286d8cc60611237ffbddba7c5",
"version" : "1.0.0"
"revision" : "350e1e119babe8525f9bd155b76640a5de270184",
"version" : "1.3.0"
}
},
{
Expand All @@ -72,6 +72,15 @@
"version" : "1.0.0"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax",
"state" : {
"revision" : "303e5c5c36d6a558407d364878df131c3546fad8",
"version" : "510.0.2"
}
},
{
"identity" : "swiftui-navigation",
"kind" : "remoteSourceControl",
Expand All @@ -86,8 +95,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : {
"revision" : "302891700c7fa3b92ebde9fe7b42933f8349f3c7",
"version" : "1.0.0"
"revision" : "6f30bdba373bbd7fbfe241dddd732651f2fbd1e2",
"version" : "1.1.2"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,6 @@
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AssertionDependencyTests"
BuildableName = "AssertionDependencyTests"
BlueprintName = "AssertionDependencyTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
Expand Down
19 changes: 1 addition & 18 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import PackageDescription
///
/// - `AccessibilityDependency`: `\.accessibility`
/// - `ApplicationDependency`: `\.application`
/// - `AssertionDependency`: `\.assert` and `\.assertionFailure`
/// - `BundleDependency`: `\.bundleInfo`
/// - `CodableDependency`: `\.encode` and `\.decode`
/// - `CompressionDependency`: `\.compress` and `\.decompress`
Expand Down Expand Up @@ -44,7 +43,7 @@ let package = Package(
.library(name: "_SwiftUIDependency", targets: ["_SwiftUIDependency"]),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.0.0"),
],
Expand Down Expand Up @@ -96,20 +95,6 @@ let package = Package(
]
),

.target(
name: "AssertionDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
]
),
.testTarget(
name: "AssertionDependencyTests",
dependencies: [
"AssertionDependency"
]
),

.target(
name: "BundleDependency",
dependencies: [
Expand Down Expand Up @@ -175,7 +160,6 @@ let package = Package(
.product(name: "Dependencies", package: "swift-dependencies"),
"AccessibilityDependency",
"ApplicationDependency",
"AssertionDependency",
"BundleDependency",
"CodableDependency",
"CompressionDependency",
Expand Down Expand Up @@ -420,7 +404,6 @@ func addIndividualProducts() {
package.products.append(contentsOf: [
.library(name: "DependenciesAdditionsBasics", targets: ["DependenciesAdditionsBasics"]),
.library(name: "ApplicationDependency", targets: ["ApplicationDependency"]),
.library(name: "AssertionDependency", targets: ["AssertionDependency"]),
.library(name: "AccessibilityDependency", targets: ["AccessibilityDependency"]),
.library(name: "BundleDependency", targets: ["BundleDependency"]),
.library(name: "CodableDependency", targets: ["CodableDependency"]),
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ A companion library to Point-Free's [`swift-dependencies`](https://github.com/po
The library currently proposes a few low-level dependencies to interface with:
- `Accessibility`, an abstraction over `UIAccessibility`;
- `Application`, an abstraction over `UIApplication.shared`;
- `AssertionDependency`, to abstract `assert(…)` calls and promote them to failures when testing;
- ~`AssertionDependency`, to abstract `assert(…)` calls and promote them to failures when testing;~
(directly available in `Dependencies` starting from v1.3.0)
- `BundleInfo`, an abstraction over the app's `info.plist`;
- `Codable`, to encode/decode `Codable` types to `Data`;
- `Compression`, to compress/decompress `Data` using the `Compression framework;
Expand Down
48 changes: 0 additions & 48 deletions Sources/AssertionDependency/Assert.swift

This file was deleted.

44 changes: 0 additions & 44 deletions Sources/AssertionDependency/AssertionFailure.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ on Apple's platforms.
|---------------------------------|--------------------------------------|
| `AccessibilityDependency` | `\.accessibility` |
| `ApplicationDependency` | `\.application` |
| `AssertionDependency` | `\.assert` and `\.assertionFailure` |
| `BundleDependency` | `\.bundleInfo` |
| `CodableDependency` | `\.encode` and `\.decode` |
| `CompressionDependency` | `\.compress` and `\.decompress` |
Expand Down
1 change: 0 additions & 1 deletion Sources/DependenciesAdditions/Exports.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@_exported import AccessibilityDependency
@_exported import ApplicationDependency
@_exported import AssertionDependency
@_exported import BundleDependency
@_exported import CodableDependency
@_exported import CompressionDependency
Expand Down
36 changes: 0 additions & 36 deletions Tests/AssertionDependencyTests/AssertionDependencyTests.swift

This file was deleted.

0 comments on commit 406ed2d

Please sign in to comment.