Update Package.swift

This commit is contained in:
김선규 2025-11-26 08:55:17 +00:00
parent 0374457b42
commit bafe45b10e

View File

@ -2,16 +2,13 @@
import PackageDescription import PackageDescription
let package = Package( let package = Package(
// 1. (Git -> )
name: "tcmpush", name: "tcmpush",
platforms: [ platforms: [
.iOS(.v14) .iOS(.v14)
], ],
products: [ products: [
.library( .library(
// 2. import ( )
name: "tcmpush", name: "tcmpush",
// 3. target
targets: ["tcmpush"] targets: ["tcmpush"]
) )
], ],
@ -19,21 +16,21 @@ let package = Package(
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: "12.0.0") .package(url: "https://github.com/firebase/firebase-ios-sdk", from: "12.0.0")
], ],
targets: [ targets: [
// 4. ( , ) // 4. ( )
.binaryTarget( .binaryTarget(
name: "tcmpush_core", name: "tcmpush_core",
// URL Gitea
url: "https://git.ipstein.myds.me/api/packages/seonkyu.kim/generic/tcmpush/1.0.0/tcmpush.xcframework.zip", url: "https://git.ipstein.myds.me/api/packages/seonkyu.kim/generic/tcmpush/1.0.0/tcmpush.xcframework.zip",
checksum: "097aa3e33ce234fa7146757a8236361f17090bb669a2463b13d311229de2d43d" checksum: "097aa3e33ce234fa7146757a8236361f17090bb669a2463b13d311229de2d43d"
), ),
// 5. ( ) // 5. ( )
.target( .target(
name: "tcmpush", // product targets name: "tcmpush",
dependencies: [ dependencies: [
"tcmpush", // binaryTarget "tcmpush_core", // .
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk") .product(name: "FirebaseMessaging", package: "firebase-ios-sdk")
] ]
// path: "Sources/tcmpush" ( )
) )
] ]
) )