Skip to content
Snippets Groups Projects
Commit c3a79cd2 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add ResetAuthFeature library

parent a62fbdf3
No related branches found
No related tags found
2 merge requests!115Messenger example - reset authenticated channel,!102Release 1.0.0
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1400"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ResetAuthFeature"
BuildableName = "ResetAuthFeature"
BlueprintName = "ResetAuthFeature"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ResetAuthFeatureTests"
BuildableName = "ResetAuthFeatureTests"
BlueprintName = "ResetAuthFeatureTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ResetAuthFeature"
BuildableName = "ResetAuthFeature"
BlueprintName = "ResetAuthFeature"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
...@@ -25,6 +25,7 @@ let package = Package( ...@@ -25,6 +25,7 @@ let package = Package(
.library(name: "HomeFeature", targets: ["HomeFeature"]), .library(name: "HomeFeature", targets: ["HomeFeature"]),
.library(name: "MyContactFeature", targets: ["MyContactFeature"]), .library(name: "MyContactFeature", targets: ["MyContactFeature"]),
.library(name: "RegisterFeature", targets: ["RegisterFeature"]), .library(name: "RegisterFeature", targets: ["RegisterFeature"]),
.library(name: "ResetAuthFeature", targets: ["ResetAuthFeature"]),
.library(name: "RestoreFeature", targets: ["RestoreFeature"]), .library(name: "RestoreFeature", targets: ["RestoreFeature"]),
.library(name: "SendRequestFeature", targets: ["SendRequestFeature"]), .library(name: "SendRequestFeature", targets: ["SendRequestFeature"]),
.library(name: "UserSearchFeature", targets: ["UserSearchFeature"]), .library(name: "UserSearchFeature", targets: ["UserSearchFeature"]),
...@@ -310,6 +311,21 @@ let package = Package( ...@@ -310,6 +311,21 @@ let package = Package(
], ],
swiftSettings: swiftSettings swiftSettings: swiftSettings
), ),
.target(
name: "ResetAuthFeature",
dependencies: [
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
.product(name: "XXClient", package: "elixxir-dapps-sdk-swift"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "ResetAuthFeatureTests",
dependencies: [
.target(name: "ResetAuthFeature"),
],
swiftSettings: swiftSettings
),
.target( .target(
name: "RestoreFeature", name: "RestoreFeature",
dependencies: [ dependencies: [
......
...@@ -149,6 +149,16 @@ ...@@ -149,6 +149,16 @@
ReferencedContainer = "container:.."> ReferencedContainer = "container:..">
</BuildableReference> </BuildableReference>
</TestableReference> </TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ResetAuthFeatureTests"
BuildableName = "ResetAuthFeatureTests"
BlueprintName = "ResetAuthFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference <TestableReference
skipped = "NO"> skipped = "NO">
<BuildableReference <BuildableReference
......
import ComposableArchitecture
import XCTestDynamicOverlay
import XXClient
public struct ResetAuthState: Equatable {
public init(
partner: Contact
) {
self.partner = partner
}
var partner: Contact
}
public enum ResetAuthAction: Equatable {}
public struct ResetAuthEnvironment {
public init() {}
}
#if DEBUG
extension ResetAuthEnvironment {
public static let unimplemented = ResetAuthEnvironment()
}
#endif
public let resetAuthReducer = Reducer<ResetAuthState, ResetAuthAction, ResetAuthEnvironment>.empty
import ComposableArchitecture
import SwiftUI
public struct ResetAuthView: View {
public init(store: Store<ResetAuthState, ResetAuthAction>) {
self.store = store
}
let store: Store<ResetAuthState, ResetAuthAction>
struct ViewState: Equatable {
init(state: ResetAuthState) {}
}
public var body: some View {
WithViewStore(store, observe: ViewState.init) { viewStore in
Form {
Text("Unimplemented")
}
.navigationTitle("Reset auth")
}
}
}
#if DEBUG
public struct ResetAuthView_Previews: PreviewProvider {
public static var previews: some View {
NavigationView {
ResetAuthView(store: Store(
initialState: ResetAuthState(
partner: .unimplemented(Data())
),
reducer: .empty,
environment: ()
))
}
}
}
#endif
import XCTest
@testable import ResetAuthFeature
final class ResetAuthFeatureTests: XCTestCase {
func testExample() {
XCTAssert(true)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment