File tree 2 files changed +3
-10
lines changed
Presentation/Feature/Splash/Sources
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,6 @@ struct PieceApp: App {
20
20
print ( " Firebase setup failed with unknown error: " , error)
21
21
}
22
22
23
- Task {
24
- do {
25
- try await PCFirebase . shared. fetchRemoteConfigValues ( )
26
- } catch let error as PCFirebaseError {
27
- print ( " RemoteConfig fetch failed: " , error. errorDescription)
28
- } catch {
29
- print ( " RemoteConfig fetch failed with unknown error: " , error)
30
- }
31
- }
32
-
33
23
// Kakao SDK 초기화
34
24
guard let kakaoAppKey = Bundle . main. infoDictionary ? [ " NATIVE_APP_KEY " ] as? String else {
35
25
print ( " Failed to load Kakao App Key " )
Original file line number Diff line number Diff line change @@ -58,12 +58,15 @@ final class SplashViewModel {
58
58
59
59
Task {
60
60
do {
61
+ try await PCFirebase . shared. fetchRemoteConfigValues ( )
61
62
showNeedsForceUpdateAlert = needsForceUpdate ( )
62
63
let didSeeOnboarding = PCUserDefaultsService . shared. getDidSeeOnboarding ( )
63
64
if didSeeOnboarding {
64
65
// TODO: - SDK에 로그인 요청
65
66
// TODO: - 서버에 로그인 요청
66
67
}
68
+ } catch let error as PCFirebaseError {
69
+ print ( " RemoteConfig fetch failed: " , error. errorDescription)
67
70
} catch {
68
71
print ( error)
69
72
}
You can’t perform that action at this time.
0 commit comments