Files
bitchat/Package.swift
T
jack 20ebaa109c Convert JSON protocol to efficient binary format
- Implemented compact binary encoding for packets and messages
- Reduced packet size significantly (13-byte fixed header + variable payload)
- Optimized for BLE's limited MTU with smaller message sizes
- Added BinaryProtocol.swift with encode/decode functions
- Updated all message types to use binary serialization
- Maintains all existing functionality with better performance
2025-07-02 22:09:02 +02:00

23 lines
399 B
Swift

// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "bitchat",
platforms: [
.iOS(.v16),
.macOS(.v13)
],
products: [
.executable(
name: "bitchat",
targets: ["bitchat"]
),
],
targets: [
.executableTarget(
name: "bitchat",
path: "bitchat"
),
]
)