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

Add NewGroupFeature

parent 9949ce8b
No related branches found
No related tags found
2 merge requests!153Release 1.1.0,!149[Messenger example] create new group
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1410"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "NewGroupFeature"
BuildableName = "NewGroupFeature"
BlueprintName = "NewGroupFeature"
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 = "NewGroupFeatureTests"
BuildableName = "NewGroupFeatureTests"
BlueprintName = "NewGroupFeatureTests"
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 = "NewGroupFeature"
BuildableName = "NewGroupFeature"
BlueprintName = "NewGroupFeature"
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: "GroupsFeature", targets: ["GroupsFeature"]), .library(name: "GroupsFeature", targets: ["GroupsFeature"]),
.library(name: "HomeFeature", targets: ["HomeFeature"]), .library(name: "HomeFeature", targets: ["HomeFeature"]),
.library(name: "MyContactFeature", targets: ["MyContactFeature"]), .library(name: "MyContactFeature", targets: ["MyContactFeature"]),
.library(name: "NewGroupFeature", targets: ["NewGroupFeature"]),
.library(name: "RegisterFeature", targets: ["RegisterFeature"]), .library(name: "RegisterFeature", targets: ["RegisterFeature"]),
.library(name: "ResetAuthFeature", targets: ["ResetAuthFeature"]), .library(name: "ResetAuthFeature", targets: ["ResetAuthFeature"]),
.library(name: "RestoreFeature", targets: ["RestoreFeature"]), .library(name: "RestoreFeature", targets: ["RestoreFeature"]),
...@@ -324,6 +325,25 @@ let package = Package( ...@@ -324,6 +325,25 @@ let package = Package(
], ],
swiftSettings: swiftSettings swiftSettings: swiftSettings
), ),
.target(
name: "NewGroupFeature",
dependencies: [
.target(name: "AppCore"),
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
.product(name: "XXClient", package: "elixxir-dapps-sdk-swift"),
.product(name: "XXMessengerClient", package: "elixxir-dapps-sdk-swift"),
.product(name: "XXModels", package: "client-ios-db"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "NewGroupFeatureTests",
dependencies: [
.target(name: "NewGroupFeature"),
.product(name: "CustomDump", package: "swift-custom-dump"),
],
swiftSettings: swiftSettings
),
.target( .target(
name: "RegisterFeature", name: "RegisterFeature",
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 = "NewGroupFeatureTests"
BuildableName = "NewGroupFeatureTests"
BlueprintName = "NewGroupFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference <TestableReference
skipped = "NO"> skipped = "NO">
<BuildableReference <BuildableReference
......
import ComposableArchitecture
public struct NewGroupComponent: ReducerProtocol {
public struct State: Equatable {
public init() {}
}
public enum Action: Equatable {
case start
}
public init() {}
public func reduce(into state: inout State, action: Action) -> EffectTask<Action> {
switch action {
case .start:
return .none
}
}
}
import AppCore
import ComposableArchitecture
import SwiftUI
import XXModels
public struct NewGroupView: View {
public typealias Component = NewGroupComponent
public init(store: StoreOf<Component>) {
self.store = store
}
let store: StoreOf<Component>
struct ViewState: Equatable {
init(state: Component.State) {}
}
public var body: some View {
WithViewStore(store, observe: ViewState.init) { viewStore in
Form {
}
.navigationTitle("New Group")
.task { viewStore.send(.start) }
}
}
}
#if DEBUG
public struct NewGroupView_Previews: PreviewProvider {
public static var previews: some View {
NavigationView {
NewGroupView(store: Store(
initialState: NewGroupComponent.State(),
reducer: EmptyReducer()
))
}
}
}
#endif
import ComposableArchitecture
import XCTest
@testable import NewGroupFeature
final class NewGroupComponentTests: XCTestCase {
func testStart() {
let store = TestStore(
initialState: NewGroupComponent.State(),
reducer: NewGroupComponent()
)
store.send(.start)
}
}
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