Drop TetherKit's TetherClient/SSEClient/Message from the macOS app; drive tethercore.Engine instead (RoomIdentity still from TetherKit via selective import). The Mac now gets direct P2P over the RTC data channel for free, and the native Swift app is no longer a parallel wire-protocol implementation. Background NSPasteboard polling (auto-send on copy) and write-on-receive are preserved. Feed UI moves to a FeedItem view-model (RTC messages carry ts=0 → fall back to local time). Verified end-to-end against the live server: RECEIVE (bus → Mac pasteboard via pbpaste) and SEND (pbcopy → bus) both confirmed. Generalize core/build-ios.sh → build-apple.sh: builds iOS device + sim + macOS arm64 into one TetherCore.xcframework and vendors it into both apps. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: MacTetherApp
|
|
options:
|
|
bundleIdPrefix: io.pecord
|
|
deploymentTarget:
|
|
macOS: "14.0"
|
|
createIntermediateGroups: true
|
|
|
|
packages:
|
|
TetherKit:
|
|
path: ../TetherKit
|
|
|
|
targets:
|
|
MacTetherApp:
|
|
type: application
|
|
platform: macOS
|
|
sources:
|
|
- Sources
|
|
dependencies:
|
|
- package: TetherKit # RoomIdentity only — networking now lives in TetherCore
|
|
- framework: Vendor/TetherCore.xcframework
|
|
embed: false # static lib, nothing to embed
|
|
settings:
|
|
base:
|
|
PRODUCT_BUNDLE_IDENTIFIER: io.pecord.tether.mac
|
|
# Rust staticlib pulls in SecRandomCopyBytes (ring) + system config (reqwest).
|
|
OTHER_LDFLAGS: "-framework Security -framework SystemConfiguration -lresolv"
|
|
MARKETING_VERSION: "0.1.0"
|
|
CURRENT_PROJECT_VERSION: "1"
|
|
GENERATE_INFOPLIST_FILE: true
|
|
DEVELOPMENT_TEAM: ""
|
|
CODE_SIGN_STYLE: Automatic
|
|
configs:
|
|
Debug:
|
|
INFOPLIST_KEY_NSAppTransportSecurity: ""
|
|
info:
|
|
path: Sources/Info.plist
|
|
properties:
|
|
NSAppTransportSecurity:
|
|
NSAllowsLocalNetworking: true
|
|
NSLocalNetworkUsageDescription: "tether connects to your clipboard relay on the local network."
|