Update Package.swift

This commit is contained in:
김선규 2025-11-26 08:45:43 +00:00
parent d6a6082c9b
commit 0374457b42

View File

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