-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPackage.swift
More file actions
68 lines (66 loc) · 3.09 KB
/
Copy pathPackage.swift
File metadata and controls
68 lines (66 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// swift-tools-version: 5.9
import PackageDescription
// Module layout — the iOS app is Xcode-built (Columba.xcodeproj), with
// configure-xcodeproj.rb pulling files in by path. This SwiftPM manifest
// exists for two reasons:
//
// 1. The Xcode project references this manifest as a LOCAL package
// (XCLocalSwiftPackageReference) so RNSAPI / SwiftBLEBridge get built by
// SwiftPM rather than hand-written pbxproj entries.
// 2. `swift build` (used by tooling + CI) can still typecheck the pure-Swift
// libraries without the Python.xcframework bridging header.
//
// The LXST voice stack (LXSTSwift + the Opus/Codec2 codec C trees) is no longer
// vendored here — it lives in the standalone, transport-agnostic LXST-swift
// package (consumed via SwiftPM, wired to RNS through Columba's
// PythonNetworkTransport). See `dependencies` below.
//
// Targets that DO require the bridging header (PythonBridge, RNSBackendPy,
// ColumbaApp) live ONLY in the pbxproj — they're not declared here.
let package = Package(
name: "ColumbaApp",
platforms: [
.iOS(.v17),
.macOS(.v14)
],
products: [
.library(name: "RNSAPI", targets: ["RNSAPI"]),
.library(name: "SwiftBLEBridge", targets: ["SwiftBLEBridge"]),
],
dependencies: [
// Transport-agnostic LXST voice library (owns the Opus/Codec2 codecs
// and the NetworkTransport seam; no Reticulum dependency). Columba
// provides the implementation via PythonNetworkTransport. Tracking the
// branch until a release is tagged — same model as the RNS fork.
.package(url: "https://github.com/torlando-tech/LXST-swift.git", branch: "feat/transport-agnostic"),
],
targets: [
// ──────── RNSAPI: pure-interface protocol surface ────────
.target(
name: "RNSAPI",
path: "Sources/RNSAPI",
// libsqlite3 (system) backs LXMFDatabase's on-disk persistence.
linkerSettings: [.linkedLibrary("sqlite3")]
),
// ──────── SwiftBLEBridge: CoreBluetooth wrapper for ble-reticulum ──
// Mirror of Columba Android's reticulum/ble module. Holds CBCentralManager
// + CBPeripheralManager state and exposes a Swift API that the iOS BLE
// driver (app/ble/ios_ble_driver.py) calls into. The Python ↔ Swift
// callback invocation path lives separately in the pbxproj-only
// `PythonBLECallbackBridge.swift` (which needs Python.h); SwiftBLEBridge
// itself is pure CoreBluetooth so `swift build` compiles it cleanly.
.target(
name: "SwiftBLEBridge",
dependencies: ["RNSAPI"],
path: "Sources/SwiftBLEBridge"
),
// Pure-Swift unit tests for RNSAPI (msgpack, AppDataParser,
// PropagationNodeInfo). Runs natively via `swift test` on macOS — no
// simulator / Xcode test target needed (RNSAPI has no UIKit/Python deps).
.testTarget(
name: "RNSAPITests",
dependencies: ["RNSAPI"],
path: "Tests/RNSAPITests"
),
]
)