24 lines
785 B
Swift
24 lines
785 B
Swift
// swift-tools-version:5.5
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let checksum = "4fece101a335f8f518d2451021dc3dd00fe3acd4bdad58985deeeaa22e93dadc"
|
|
let version = "v1.0.49-alpha"
|
|
let url = "https://github.com/matrix-org/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
|
|
|
|
let package = Package(
|
|
name: "MatrixRustSDK",
|
|
platforms: [
|
|
.iOS(.v15),
|
|
.macOS(.v12)
|
|
],
|
|
products: [
|
|
.library(name: "MatrixRustSDK", targets: ["MatrixRustSDK"]),
|
|
],
|
|
targets: [
|
|
.binaryTarget(name: "MatrixSDKFFI", url: url, checksum: checksum),
|
|
.target(name: "MatrixRustSDK", dependencies: [.target(name: "MatrixSDKFFI")])
|
|
]
|
|
)
|