Skip to content

Commit fdf366c

Browse files
committed
[Chore] #185 - Firebase 연동 방식 수정 AppDelegate -> Neki_iOSApp init
1 parent 7a35aa0 commit fdf366c

2 files changed

Lines changed: 9 additions & 21 deletions

File tree

Neki-iOS/APP/Sources/Application/AppDelegate.swift

Lines changed: 0 additions & 17 deletions
This file was deleted.

Neki-iOS/APP/Sources/Application/Neki_iOSApp.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,28 @@
77

88
import SwiftUI
99
import ComposableArchitecture
10+
import Firebase
1011

1112
@main
1213
struct Neki_iOSApp: App {
13-
@UIApplicationDelegateAdaptor(AppDelegate.self) var delegate
14-
1514
let store = Store(initialState: AppCoordinator.State()) {
1615
AppCoordinator()
1716
}
1817

18+
init() {
19+
FirebaseApp.configure()
20+
}
21+
1922
var body: some Scene {
2023
WindowGroup {
2124
AppCoordinatorView(store: store)
2225
.onOpenURL { handleIncomingURL($0) }
2326
}
2427
}
25-
26-
private func handleIncomingURL(_ url: URL) {
28+
}
29+
30+
private extension Neki_iOSApp {
31+
func handleIncomingURL(_ url: URL) {
2732
if url.scheme == "neki" { return }
2833

2934
if url.scheme == "https" || url.scheme == "http" {

0 commit comments

Comments
 (0)