Compare commits
No commits in common. "main" and "1.0.5" have entirely different histories.
|
|
@ -9,7 +9,7 @@ let package = Package(
|
||||||
products: [
|
products: [
|
||||||
.library(
|
.library(
|
||||||
name: "tcmpush",
|
name: "tcmpush",
|
||||||
targets: ["tcmpushWrapper"]
|
targets: ["tcmpush"]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
|
|
@ -19,17 +19,18 @@ 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.8/tcmpush.xcframework.zip",
|
url: "https://git.ipstein.myds.me/api/packages/seonkyu.kim/generic/tcmpush/1.0.1/tcmpush.xcframework.zip",
|
||||||
checksum: "1b7d3cc1381d213f13f888015fce49f05ca6547846e8b8ab4e74d2cf9d2e426e"
|
checksum: "d977cbcd3e7c80accfd3188c76b6557fe253ac6f1a92ce33c1f74867a11028d8"
|
||||||
),
|
),
|
||||||
|
|
||||||
// 5. 래퍼 타겟 (최종 모듈 이름)
|
// 5. 래퍼 타겟 (최종 모듈 이름)
|
||||||
.target(
|
.target(
|
||||||
name: "tcmpushWrapper",
|
name: "tcmpush",
|
||||||
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
BIN
Sources/.DS_Store
vendored
Binary file not shown.
0
Sources/tcmpush/Dummy.swift
Normal file
0
Sources/tcmpush/Dummy.swift
Normal file
29
Sources/tcmpush/tcmpush.swift
Normal file
29
Sources/tcmpush/tcmpush.swift
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
|
|
||||||
import Foundation
|
|
||||||
@_exported import tcmpush
|
|
||||||
Loading…
Reference in New Issue
Block a user