| 1 | // swift-tools-version:5.7 |
| 2 | |
| 3 | // A package manifest for local development. This file will be copied |
| 4 | // into the root of the repo when generating an XCFramework. |
| 5 | |
| 6 | import PackageDescription |
| 7 | |
| 8 | let package = Package( |
| 9 | name: "MatrixRustSDK", |
| 10 | platforms: [ |
| 11 | .iOS(.v16), |
| 12 | .macOS(.v12) |
| 13 | ], |
| 14 | products: [ |
| 15 | .library(name: "MatrixRustSDK", |
| 16 | type: .dynamic, |
| 17 | targets: ["MatrixRustSDK"]), |
| 18 | ], |
| 19 | targets: [ |
| 20 | .binaryTarget(name: "MatrixSDKFFI", path: "bindings/apple/generated/MatrixSDKFFI.xcframework"), |
| 21 | .target(name: "MatrixRustSDK", |
| 22 | dependencies: [.target(name: "MatrixSDKFFI")], |
| 23 | path: "bindings/apple/generated/swift") |
| 24 | ] |
| 25 | ) |