Skip to content

Commit

Permalink
Replace XCTestDynamicOverlay with IssueReporting (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
machorro authored Aug 15, 2024
1 parent a500893 commit 3ae4b12
Show file tree
Hide file tree
Showing 24 changed files with 119 additions and 118 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-case-paths",
"state" : {
"revision" : "5da6989aae464f324eef5c5b52bdb7974725ab81",
"version" : "1.0.0"
"revision" : "71344dd930fde41e8f3adafe260adcbb2fc2a3dc",
"version" : "1.5.4"
}
},
{
Expand All @@ -32,35 +32,35 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-concurrency-extras",
"state" : {
"revision" : "ea631ce892687f5432a833312292b80db238186a",
"version" : "1.0.0"
"revision" : "bb5059bde9022d69ac516803f4f227d8ac967f71",
"version" : "1.1.0"
}
},
{
"identity" : "swift-custom-dump",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-custom-dump",
"state" : {
"revision" : "edd66cace818e1b1c6f1b3349bb1d8e00d6f8b01",
"version" : "1.0.0"
"revision" : "82645ec760917961cfa08c9c0c7104a57a0fa4b1",
"version" : "1.3.3"
}
},
{
"identity" : "swift-dependencies",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-dependencies",
"state" : {
"revision" : "cc26d06125dbc913c6d9e8a905a5db0b994509e0",
"version" : "1.3.5"
"revision" : "d7472be6b3c89251ce4c0db07d32405b43426781",
"version" : "1.3.7"
}
},
{
"identity" : "swift-docc-plugin",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-plugin",
"state" : {
"revision" : "9b1258905c21fc1b97bf03d1b4ca12c4ec4e5fda",
"version" : "1.2.0"
"revision" : "26ac5758409154cc448d7ab82389c520fa8a8247",
"version" : "1.3.0"
}
},
{
Expand All @@ -77,26 +77,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-syntax",
"state" : {
"revision" : "303e5c5c36d6a558407d364878df131c3546fad8",
"version" : "510.0.2"
"revision" : "515f79b522918f83483068d99c68daeb5116342d",
"version" : "600.0.0-prerelease-2024-08-14"
}
},
{
"identity" : "swiftui-navigation",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swiftui-navigation",
"state" : {
"revision" : "f5bcdac5b6bb3f826916b14705f37a3937c2fd34",
"version" : "1.0.0"
"revision" : "fc91d591ebba1f90d65028ccb65c861e5979e898",
"version" : "1.5.4"
}
},
{
"identity" : "xctest-dynamic-overlay",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : {
"revision" : "357ca1e5dd31f613a1d43320870ebc219386a495",
"version" : "1.2.2"
"revision" : "c6809a193975cab4d5308c64bd1d51e0df467928",
"version" : "1.2.3"
}
}
],
Expand Down
32 changes: 16 additions & 16 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.3.5"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.2.2"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.2.3"),
],
targets: [

.target(
name: "AccessibilityDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
"DependenciesAdditionsBasics",
]
),
Expand All @@ -67,7 +67,7 @@ let package = Package(
.target(
name: "ApplicationDependency",
dependencies: [
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
.product(name: "Dependencies", package: "swift-dependencies"),
"DependenciesAdditionsBasics",
]
Expand All @@ -83,7 +83,7 @@ let package = Package(
name: "_AppStorageDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
"DependenciesAdditionsBasics",
"UserDefaultsDependency",
]
Expand All @@ -99,7 +99,7 @@ let package = Package(
name: "BundleDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
"DependenciesAdditionsBasics",
]
),
Expand All @@ -114,7 +114,7 @@ let package = Package(
name: "CodableDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
]
),
.testTarget(
Expand All @@ -128,7 +128,7 @@ let package = Package(
name: "CompressionDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
]
),
.testTarget(
Expand Down Expand Up @@ -180,14 +180,14 @@ let package = Package(
name: "DependenciesAdditionsBasics",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
]
),

.testTarget(
name: "DependenciesAdditionsBasicsTests",
dependencies: [
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
"DependenciesAdditionsBasics",
]
),
Expand All @@ -196,7 +196,7 @@ let package = Package(
name: "DataDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
]
),

Expand All @@ -212,7 +212,7 @@ let package = Package(
name: "DeviceDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
"DependenciesAdditionsBasics",
]
),
Expand All @@ -228,7 +228,7 @@ let package = Package(
name: "LoggerDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
"BundleDependency",
]
),
Expand Down Expand Up @@ -262,7 +262,7 @@ let package = Package(
name: "NotificationCenterDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
]
),

Expand All @@ -278,7 +278,7 @@ let package = Package(
name: "PathDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
]
),

Expand Down Expand Up @@ -310,7 +310,7 @@ let package = Package(
name: "ProcessInfoDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
"DependenciesAdditionsBasics",
]
),
Expand Down Expand Up @@ -356,7 +356,7 @@ let package = Package(
name: "UserNotificationsDependency",
dependencies: [
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
"DependenciesAdditionsBasics",
]
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@_spi(Internals) import DependenciesAdditionsBasics
import Foundation
import UIKit
import XCTestDynamicOverlay
import IssueReporting

extension Accessibility: DependencyKey {
public static var liveValue: Accessibility { .system }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Dependencies
@_spi(Internals) import DependenciesAdditionsBasics
import Foundation
import XCTestDynamicOverlay
import IssueReporting

#if os(iOS)
@preconcurrency import UIKit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Dependencies
@_spi(Internals) import DependenciesAdditionsBasics
import Foundation
import XCTestDynamicOverlay
import IssueReporting

#if os(tvOS)
@preconcurrency import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Sources/BundleDependency/BundleInfo.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Dependencies
@_spi(Internals) import DependenciesAdditionsBasics
import Foundation
import XCTestDynamicOverlay
import IssueReporting

extension DependencyValues {
public var bundleInfo: BundleInfo {
Expand Down
2 changes: 1 addition & 1 deletion Sources/CodableDependency/DataDecoder.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Dependencies
import Foundation
import XCTestDynamicOverlay
import IssueReporting

extension DependencyValues {
/// A ``DataDecoder`` that can encode a `Codable` value into a `Data` value.
Expand Down
2 changes: 1 addition & 1 deletion Sources/CodableDependency/DataEncoder.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Dependencies
import Foundation
import XCTestDynamicOverlay
import IssueReporting

extension DependencyValues {
/// A ``DataEncoder`` that can encode a `Codable` value into a `Data` value.
Expand Down
2 changes: 1 addition & 1 deletion Sources/CompressionDependency/Compressor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Compression
import Dependencies
import Foundation
import XCTestDynamicOverlay
import IssueReporting

extension DependencyValues {
/// A ``Compressor`` that can compress a `Data` value that you supply.
Expand Down
6 changes: 3 additions & 3 deletions Sources/DataDependency/DataDependency.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Dependencies
import Foundation
import XCTestDynamicOverlay
import IssueReporting

/// This dependency is inspired by [David Roman](https://github.com/davdroman)'s PR:
/// https://github.com/pointfreeco/swift-composable-architecture/pull/1648
Expand Down Expand Up @@ -134,7 +134,7 @@ extension DataReader {
}
public static var unimplemented: DataReader {
.init(
contentsOfURL: XCTestDynamicOverlay.unimplemented(#"@Dependency(\.dataReader.contentsOfURL)"#)
contentsOfURL: IssueReporting.unimplemented(#"@Dependency(\.dataReader.contentsOfURL)"#)
)
}
}
Expand All @@ -147,7 +147,7 @@ extension DataWriter {
}
public static var unimplemented: DataWriter {
.init(
writeToURL: XCTestDynamicOverlay.unimplemented(#"@Dependency(\.dataWriter.writeToURL)"#)
writeToURL: IssueReporting.unimplemented(#"@Dependency(\.dataWriter.writeToURL)"#)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func runtimeWarn(
}

#if DEBUG
import XCTestDynamicOverlay
import IssueReporting

#if canImport(os)
import os
Expand Down
Loading

0 comments on commit 3ae4b12

Please sign in to comment.