Skip to content

Commit

Permalink
[chore] 코드 컨벤션 및 레거시 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhaeun-la committed May 17, 2024
1 parent a7689f8 commit c4e71ca
Showing 1 changed file with 14 additions and 27 deletions.
41 changes: 14 additions & 27 deletions Projects/App/Sources/AppDelegate+Firebase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ import FirebaseMessaging

extension AppDelegate {
func configureFirebase(application: UIApplication) {
var googleInfoName: String
#if DEBUG
googleInfoName = "GoogleService-Info"
#else
googleInfoName = "GoogleService-Info-debugging"
#endif
guard let filePath = Bundle.main.path(
forResource: googleInfoName,
ofType: "plist"
),
let options = FirebaseOptions(contentsOfFile: filePath)
var googleInfoName: String
#if DEBUG
googleInfoName = "GoogleService-Info"
#else
googleInfoName = "GoogleService-Info-debugging"
#endif
guard let filePath = Bundle.main.path(
forResource: googleInfoName,
ofType: "plist"
),
let options = FirebaseOptions(contentsOfFile: filePath)
else { return }
FirebaseApp.configure(options: options)
application.registerForRemoteNotifications()
}
FirebaseApp.configure(options: options)
application.registerForRemoteNotifications()
}
}

extension AppDelegate {
Expand All @@ -52,16 +52,3 @@ extension AppDelegate: MessagingDelegate {
)
}
}

extension AppDelegate {
func configureDebuggingFB(application: UIApplication) {
guard let filePath = Bundle.main.path(
forResource: "GoogleService-Info-debugging",
ofType: "plist"
),
let options = FirebaseOptions(contentsOfFile: filePath)
else { return }
FirebaseApp.configure(options: options)
application.registerForRemoteNotifications()
}
}

0 comments on commit c4e71ca

Please sign in to comment.