Skip to content

Commit

Permalink
🐛 :: [#395] 병합 충돌 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuunseo committed Aug 14, 2024
2 parents 1d17a79 + c9c0e9d commit 1a13e50
Show file tree
Hide file tree
Showing 6 changed files with 1,025 additions and 328 deletions.
12 changes: 5 additions & 7 deletions App/Sources/Application/BitgouelApp.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import KakaoMapsSDK
import Service
import SwiftUI
import KakaoMapsSDK

@main
struct BitgouelApp: App {
Expand All @@ -9,19 +9,17 @@ struct BitgouelApp: App {

init() {
registerProviderFactories()
guard let apiKey = Bundle.main.object(forInfoDictionaryKey: "KAKAO_APP_KEY") else {
print("API 키 로드 실패!!")
return
}

SDKInitializer.InitSDK(appKey: apiKey as? String ?? "")
}

var body: some Scene {
WindowGroup {
AppComponent().makeRootView()
.environmentObject(sceneState)
.environmentObject(adminPageState)
.onAppear {
SDKInitializer
.InitSDK(appKey: Bundle.main.object(forInfoDictionaryKey: "KAKAO_APP_KEY") as? String ?? "")
}
}
}
}
Loading

0 comments on commit 1a13e50

Please sign in to comment.