Skip to content

Commit e2d0846

Browse files
committed
implement composable-architecture with eventView + ProfileView
0 parents  commit e2d0846

File tree

321 files changed

+12272
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+12272
-0
lines changed

Addame.xcodeproj/project.pbxproj

Lines changed: 479 additions & 0 deletions
Large diffs are not rendered by default.

Addame.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
6+
<true/>
7+
</dict>
8+
</plist>

Addame.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1240"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "C3E50C9B261B5DFA00285977"
18+
BuildableName = "Addame.app"
19+
BlueprintName = "Addame"
20+
ReferencedContainer = "container:Addame.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<BuildableProductRunnable
44+
runnableDebuggingMode = "0">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "C3E50C9B261B5DFA00285977"
48+
BuildableName = "Addame.app"
49+
BlueprintName = "Addame"
50+
ReferencedContainer = "container:Addame.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
</LaunchAction>
54+
<ProfileAction
55+
buildConfiguration = "Release"
56+
shouldUseLaunchSchemeArgsEnv = "YES"
57+
savedToolIdentifier = ""
58+
useCustomWorkingDirectory = "NO"
59+
debugDocumentVersioning = "YES">
60+
<BuildableProductRunnable
61+
runnableDebuggingMode = "0">
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "C3E50C9B261B5DFA00285977"
65+
BuildableName = "Addame.app"
66+
BlueprintName = "Addame"
67+
ReferencedContainer = "container:Addame.xcodeproj">
68+
</BuildableReference>
69+
</BuildableProductRunnable>
70+
</ProfileAction>
71+
<AnalyzeAction
72+
buildConfiguration = "Debug">
73+
</AnalyzeAction>
74+
<ArchiveAction
75+
buildConfiguration = "Release"
76+
revealArchiveInOrganizer = "YES">
77+
</ArchiveAction>
78+
</Scheme>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
uuid = "3D7D6E3F-2D95-4C7C-A7AE-544656B3A8A6"
4+
type = "1"
5+
version = "2.0">
6+
<Breakpoints>
7+
<BreakpointProxy
8+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
9+
<BreakpointContent
10+
uuid = "91F0FA4E-C894-4B60-B67B-2F089F01EBF3"
11+
shouldBeEnabled = "Yes"
12+
ignoreCount = "0"
13+
continueAfterRunningActions = "No"
14+
filePath = "../AddaMe/IOS/AddaMeIOS/AddaMeIOS/Modules/Services/EventClient/Sources/EventClientLive/Live.swift"
15+
startingColumnNumber = "9223372036854775807"
16+
endingColumnNumber = "9223372036854775807"
17+
startingLineNumber = "81"
18+
endingLineNumber = "81"
19+
landmarkName = "fetch(events:path:)"
20+
landmarkType = "7">
21+
</BreakpointContent>
22+
</BreakpointProxy>
23+
<BreakpointProxy
24+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
25+
<BreakpointContent
26+
uuid = "DC5BAAE0-A812-489A-A236-A7E2EC2A18A8"
27+
shouldBeEnabled = "Yes"
28+
ignoreCount = "0"
29+
continueAfterRunningActions = "No"
30+
filePath = "../AddaMe/IOS/AddaMeIOS/AddaMeIOS/Modules/Services/EventClient/Sources/EventClientLive/Live.swift"
31+
startingColumnNumber = "9223372036854775807"
32+
endingColumnNumber = "9223372036854775807"
33+
startingLineNumber = "84"
34+
endingLineNumber = "84"
35+
landmarkName = "fetch(events:path:)"
36+
landmarkType = "7">
37+
</BreakpointContent>
38+
</BreakpointProxy>
39+
</Breakpoints>
40+
</Bucket>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>Addame.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>C3E50C9B261B5DFA00285977</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
</dict>
21+
</dict>
22+
</plist>

Addame/Addame.swift

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
//
2+
// TComposableAAddaMeApp.swift
3+
// TComposableAAddaMe
4+
//
5+
// Created by Saroar Khandoker on 05.04.2021.
6+
//
7+
8+
import ComposableArchitecture
9+
import SwiftUI
10+
import EventView
11+
import ChatView
12+
import ProfileView
13+
import Tabs
14+
import AuthenticationCore
15+
import AuthClient
16+
import AuthClientLive
17+
18+
@main
19+
struct AddameApp: App {
20+
21+
@AppStorage("isAuthorized")
22+
public var isAuthorized: Bool = false
23+
24+
static let tabsState = TabsState(
25+
selectedTab: .event,
26+
event: EventsState(),
27+
chat: ChatState(),
28+
profile: ProfileState()
29+
)
30+
31+
let tabsStore = Store(
32+
initialState: tabsState,
33+
reducer: tabsReducer.debug(),
34+
environment: ()
35+
)
36+
37+
static let environment = AuthenticationEnvironment(
38+
authClient: AuthClient.live(api: .build) ,
39+
mainQueue: DispatchQueue.main.eraseToAnyScheduler()
40+
)
41+
42+
static let authState = LoginState.build
43+
let authStore = Store(initialState: authState, reducer: loginReducer, environment: environment)
44+
45+
var body: some Scene {
46+
WindowGroup {
47+
if isAuthorized {
48+
TabsView(store: tabsStore)
49+
} else {
50+
AuthenticationView(store: authStore)
51+
}
52+
}
53+
}
54+
}

0 commit comments

Comments
 (0)