From dd9c6b499acc0ea5787743a793b077644e6b8731 Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Wed, 3 Aug 2022 13:13:06 +0100 Subject: [PATCH] Update ErrorFeature --- Example/example-app/Package.swift | 8 ++++++++ .../example-app/Sources/ErrorFeature/ErrorFeature.swift | 6 ++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Example/example-app/Package.swift b/Example/example-app/Package.swift index 6aa45316..64bcd4ba 100644 --- a/Example/example-app/Package.swift +++ b/Example/example-app/Package.swift @@ -59,6 +59,10 @@ let package = Package( url: "https://github.com/kishikawakatsumi/KeychainAccess.git", .upToNextMajor(from: "4.2.2") ), + .package( + url: "https://github.com/pointfreeco/xctest-dynamic-overlay.git", + .upToNextMajor(from: "0.3.3") + ), ], targets: [ .target( @@ -106,6 +110,10 @@ let package = Package( name: "ElixxirDAppsSDK", package: "elixxir-dapps-sdk-swift" ), + .product( + name: "XCTestDynamicOverlay", + package: "xctest-dynamic-overlay" + ), ], swiftSettings: swiftSettings ), diff --git a/Example/example-app/Sources/ErrorFeature/ErrorFeature.swift b/Example/example-app/Sources/ErrorFeature/ErrorFeature.swift index dc7d8b69..eb1671e8 100644 --- a/Example/example-app/Sources/ErrorFeature/ErrorFeature.swift +++ b/Example/example-app/Sources/ErrorFeature/ErrorFeature.swift @@ -1,5 +1,5 @@ import ComposableArchitecture -import SwiftUI +import XCTestDynamicOverlay public struct ErrorState: Equatable { public init(error: NSError) { @@ -17,8 +17,6 @@ public struct ErrorEnvironment { public let errorReducer = Reducer<ErrorState, ErrorAction, ErrorEnvironment>.empty -#if DEBUG extension ErrorEnvironment { - public static let failing = ErrorEnvironment() + public static let unimplemented = ErrorEnvironment() } -#endif -- GitLab