Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,29 @@ let package = Package(
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "AgoraChat",
targets: ["AgoraChat"]),
targets: ["AgoraChatWrapper"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(
url: "https://github.com/AgoraIO/AgoraInfra_iOS.git",
.upToNextMinor(from: "1.2.0")
),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.binaryTarget(name: "AgoraChat", url: "https://download-sdk.oss-cn-beijing.aliyuncs.com/downloads/AgoraChat/AgoraChat1_3_7_beta.xcframework.zip", checksum: "5d183f795e15aeaac623808dd8d147b81be7f41ac2f0b34afbe73fcceca6a28e"),
// 1️⃣ binary SDK (name must match .xcframework inside the zip)
.binaryTarget(name: "AgoraChat", url: "https://download.agora.io/sdk/release/AgoraChat1_4_0_beta.zip", checksum: "16623c4d9cb0270a4582a74a9ef49732153d399a0b8cf87e17f4a2e86899a0d7"),

// 2️⃣ wrapper target
.target(
name: "AgoraChatWrapper",
dependencies: [
"AgoraChat",
.product(name: "AgoraInfra_iOS", package: "AgoraInfra_iOS")
]
),
]
)
Empty file.