Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7bc009bef | ||
|
|
fd9fd3127a | ||
|
|
39e3755bd4 | ||
|
|
6268b559ae | ||
|
|
80702c0c3f | ||
|
|
a0b21401ad | ||
|
|
c7430c3f58 | ||
|
|
aa6f120dfd | ||
|
|
e52fa0aa20 | ||
|
|
56582f19d6 | ||
|
|
d2a9d9e463 | ||
|
|
83bbb3b9e9 |
|
|
@ -9,7 +9,7 @@ let package = Package(
|
||||||
products: [
|
products: [
|
||||||
.library(
|
.library(
|
||||||
name: "tcmpush",
|
name: "tcmpush",
|
||||||
targets: ["tcmpush"]
|
targets: ["tcmpushWrapper"]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
|
|
@ -19,18 +19,17 @@ let package = Package(
|
||||||
// 4. 바이너리 타겟 (내부용 이름)
|
// 4. 바이너리 타겟 (내부용 이름)
|
||||||
.binaryTarget(
|
.binaryTarget(
|
||||||
name: "tcmpush_core",
|
name: "tcmpush_core",
|
||||||
url: "https://git.ipstein.myds.me/api/packages/seonkyu.kim/generic/tcmpush/1.0.1/tcmpush.xcframework.zip",
|
url: "https://git.ipstein.myds.me/api/packages/seonkyu.kim/generic/tcmpush/1.0.8/tcmpush.xcframework.zip",
|
||||||
checksum: "d977cbcd3e7c80accfd3188c76b6557fe253ac6f1a92ce33c1f74867a11028d8"
|
checksum: "1b7d3cc1381d213f13f888015fce49f05ca6547846e8b8ab4e74d2cf9d2e426e"
|
||||||
),
|
),
|
||||||
|
|
||||||
// 5. 래퍼 타겟 (최종 모듈 이름)
|
// 5. 래퍼 타겟 (최종 모듈 이름)
|
||||||
.target(
|
.target(
|
||||||
name: "tcmpush",
|
name: "tcmpushWrapper",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
"tcmpush_core", // 여기를 바이너리 타겟 이름으로 수정했습니다.
|
"tcmpush_core",
|
||||||
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk")
|
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk")
|
||||||
]
|
]
|
||||||
// path: "Sources/tcmpush" (기본 경로에 폴더를 만드셨다면 생략 가능합니다)
|
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
BIN
Sources/.DS_Store
vendored
Normal file
BIN
Sources/.DS_Store
vendored
Normal file
Binary file not shown.
|
|
@ -1,29 +0,0 @@
|
||||||
//
|
|
||||||
// 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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
3
Sources/tcmpushWrapper/Dummy.swift
Normal file
3
Sources/tcmpushWrapper/Dummy.swift
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
@_exported import tcmpush
|
||||||
Loading…
Reference in New Issue
Block a user