2022-02-10 15:20:21 +00:00
|
|
|
// swift-tools-version:5.5
|
|
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
2023-09-26 17:03:18 +00:00
|
|
|
let checksum = "18fe309d16894f6536339f310d09df9f3b721c938354ecc948ee75f3b8d4becd"
|
|
|
|
let version = "v1.1.20"
|
2022-02-10 15:20:21 +00:00
|
|
|
let url = "https://github.com/matrix-org/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
|
|
|
|
|
|
|
|
let package = Package(
|
2022-02-11 12:04:28 +00:00
|
|
|
name: "MatrixRustSDK",
|
|
|
|
platforms: [
|
|
|
|
.iOS(.v15),
|
|
|
|
.macOS(.v12)
|
|
|
|
],
|
2022-02-10 15:20:21 +00:00
|
|
|
products: [
|
2022-12-19 11:37:08 +00:00
|
|
|
.library(name: "MatrixRustSDK", targets: ["MatrixRustSDK"]),
|
2022-02-10 15:20:21 +00:00
|
|
|
],
|
|
|
|
targets: [
|
2022-12-19 11:37:08 +00:00
|
|
|
.binaryTarget(name: "MatrixSDKFFI", url: url, checksum: checksum),
|
|
|
|
.target(name: "MatrixRustSDK", dependencies: [.target(name: "MatrixSDKFFI")])
|
2022-02-10 15:20:21 +00:00
|
|
|
]
|
|
|
|
)
|