Compare commits

..

No commits in common. "main" and "1.0.5" have entirely different histories.
main ... 1.0.5

5 changed files with 36 additions and 9 deletions

View File

@ -9,7 +9,7 @@ let package = Package(
products: [
.library(
name: "tcmpush",
targets: ["tcmpushWrapper"]
targets: ["tcmpush"]
)
],
dependencies: [
@ -19,17 +19,18 @@ let package = Package(
// 4. ( )
.binaryTarget(
name: "tcmpush_core",
url: "https://git.ipstein.myds.me/api/packages/seonkyu.kim/generic/tcmpush/1.0.8/tcmpush.xcframework.zip",
checksum: "1b7d3cc1381d213f13f888015fce49f05ca6547846e8b8ab4e74d2cf9d2e426e"
url: "https://git.ipstein.myds.me/api/packages/seonkyu.kim/generic/tcmpush/1.0.1/tcmpush.xcframework.zip",
checksum: "d977cbcd3e7c80accfd3188c76b6557fe253ac6f1a92ce33c1f74867a11028d8"
),
// 5. ( )
.target(
name: "tcmpushWrapper",
name: "tcmpush",
dependencies: [
"tcmpush_core",
"tcmpush_core", // .
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk")
]
// path: "Sources/tcmpush" ( )
)
]
)
)

BIN
Sources/.DS_Store vendored

Binary file not shown.

View File

View File

@ -0,0 +1,29 @@
//
// tcmpush.swift
// tcmpush
//
// Created by TA9 on 11/26/25.
//
import UIKit
public class TCMPush: NSObject {
public static let shared = TCMPush()
private override init() {}
public static var isDebugMode: Bool = false
public func configure() {
FCMManager.shared.configure()
}
public func setAPNSToken(_ deviceToken: Data) {
FCMManager.shared.setAPNSToken(deviceToken)
}
// completion .
public func getFCMToken(completion: @escaping (String?, Error?) -> Void) {
FCMManager.shared.getFCMToken(completion: completion)
}
}

View File

@ -1,3 +0,0 @@
import Foundation
@_exported import tcmpush