another.im-ios/ConversationsClassic/ConversationsClassicApp.swift

32 lines
832 B
Swift
Raw Normal View History

2024-06-19 15:15:27 +00:00
import Combine
import SwiftUI
let appState = AppState()
let store = AppStore(
initialState: appState,
reducer: AppState.reducer,
middlewares: [
loggerMiddleware(),
StartMiddleware.shared.middleware,
DatabaseMiddleware.shared.middleware,
AccountsMiddleware.shared.middleware,
XMPPMiddleware.shared.middleware,
RostersMiddleware.shared.middleware,
2024-06-21 10:32:16 +00:00
ChatsMiddleware.shared.middleware,
2024-08-07 22:27:47 +00:00
ArchivedMessagesMiddleware.shared.middleware,
2024-06-24 10:44:55 +00:00
ConversationMiddleware.shared.middleware,
2024-07-11 13:59:24 +00:00
SharingMiddleware.shared.middleware,
FileMiddleware.shared.middleware
2024-06-19 15:15:27 +00:00
]
)
@main
struct ConversationsClassic: App {
var body: some Scene {
WindowGroup {
BaseNavigationView()
.environmentObject(store)
}
}
}