-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b10048
commit 6dd84c5
Showing
192 changed files
with
3,243 additions
and
9,549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
ThirdPartyLibraryManager/Sources/Analytics/AppLogService.swift
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
ThirdPartyLibraryManager/Sources/FirebaseWrapper/Firebase.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by 김호세 on 2022/08/28. | ||
// | ||
import Foundation | ||
|
||
import FirebaseAnalytics | ||
import FirebaseCore | ||
|
||
|
||
protocol FirebaseConfiguarable { | ||
func configure() | ||
} | ||
|
||
final class FirebaseConfigure: FirebaseConfiguarable { | ||
func configure() { | ||
guard | ||
let filePath = Bundle.module.path(forResource: "GoogleService-Info", ofType: "plist"), | ||
let fileOption = FirebaseOptions(contentsOfFile: filePath) | ||
else { | ||
print("Error 발생 GoogleService-Info 파일을 읽을 수 없음.") | ||
return | ||
} | ||
|
||
FirebaseApp.configure(options: fileOption) | ||
} | ||
} | ||
|
||
public class FirebaseConfigureService { | ||
public class Firebase { | ||
static var service: FirebaseConfiguarable = FirebaseConfigure() | ||
public static func configure() { | ||
service.configure() | ||
} | ||
} | ||
} | ||
|
73 changes: 73 additions & 0 deletions
73
ThirdPartyLibraryManager/Sources/FirebaseWrapper/MessagingService.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by 김호세 on 2022/09/01. | ||
// | ||
|
||
import Foundation | ||
import FirebaseMessaging | ||
|
||
protocol FirebaseMessagingServicable { | ||
func configure() | ||
func registerDeviceToken(deviceToken: Data) | ||
func setAPNSToken(deviceToken: Data) | ||
func deleteToken() | ||
func printFCMToken() | ||
} | ||
|
||
public class MessagingService: NSObject { } | ||
|
||
final class FirebaseMessagingService: NSObject { } | ||
|
||
extension FirebaseMessagingService: FirebaseMessagingServicable { | ||
|
||
func configure() { | ||
Messaging.messaging().delegate = self | ||
} | ||
|
||
func registerDeviceToken(deviceToken: Data) { | ||
Messaging.messaging().apnsToken = deviceToken | ||
} | ||
func setAPNSToken(deviceToken: Data) { | ||
Messaging.messaging().setAPNSToken(deviceToken, type: .unknown) | ||
} | ||
func deleteToken() { | ||
Messaging.messaging().deleteToken { err in | ||
print(err!) | ||
} | ||
} | ||
func printFCMToken() { | ||
Messaging.messaging().token { token, err in | ||
print(token!) | ||
} | ||
} | ||
} | ||
public extension MessagingService { | ||
class Firebase { | ||
static var service: FirebaseMessagingServicable = FirebaseMessagingService() | ||
public static func configure() { | ||
service.configure() | ||
} | ||
public static func registerDeviceToken(deviceToken: Data) { | ||
service.registerDeviceToken(deviceToken: deviceToken) | ||
} | ||
public static func setAPNSToken(deviceToken: Data) { | ||
service.setAPNSToken(deviceToken: deviceToken) | ||
} | ||
public static func deleteToken() { | ||
service.deleteToken() | ||
} | ||
public static func printFCMToken() { | ||
service.printFCMToken() | ||
} | ||
} | ||
} | ||
extension FirebaseMessagingService: MessagingDelegate { | ||
public func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) { | ||
guard let fcmToken = fcmToken else { | ||
return | ||
} | ||
print("fcmToken in a module: ", fcmToken) | ||
} | ||
} |
File renamed without changes.
Binary file removed
BIN
-607 KB
...r/FirebaseCrashlytics/FBLPromises.xcframework/ios-arm64/FBLPromises.framework/FBLPromises
Binary file not shown.
63 changes: 0 additions & 63 deletions
63
...shlytics/FBLPromises.xcframework/ios-arm64/FBLPromises.framework/Headers/FBLPromise+All.h
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.