1// swift-tools-version: 5.9
2import PackageDescription
3
4let package = Package(
5 name: "SophaxChat",
6 platforms: [
7 .iOS(.v17),
8 .macOS(.v14)
9 ],
10 products: [
11 .library(name: "SophaxChatCore", targets: ["SophaxChatCore"]),
12 ],
13 targets: [
14 // Prebuilt XCFramework containing the mls-rs Rust static library + C FFI headers.
15 // Rebuilt by running: bash scripts/build_mls_xcframework.sh
16 .binaryTarget(
17 name: "SophaxMLS",
18 path: "Frameworks/SophaxMLS.xcframework"
19 ),
20 .target(
21 name: "SophaxChatCore",
22 dependencies: ["SophaxMLS"],
23 path: "Sources/SophaxChatCore",
24 swiftSettings: [
25 .enableExperimentalFeature("StrictConcurrency")
26 ]
27 ),
28 .testTarget(
29 name: "SophaxChatCoreTests",
30 dependencies: ["SophaxChatCore"],
31 path: "Tests/SophaxChatCoreTests"
32 )
33 ]
34)