Files
app/ios/DModemSmoke/Package.swift
T
Claude fd3e12243d Toward iOS: the engine's C API, an XCFramework build for Apple's systems, its Swift tests
The engine for a program in C or Swift (dmodem_engine.h): started on SIP
or a peer line, its DTE a socket, the log, status, exit, peer line and
speaker as callbacks; native-test's c_api_test drives it (AT commands, a
dial handing the program its line, BUSY, the end).

ios/build-native.sh builds the engine with D-Modem-RE, libre and Mbed
TLS for iOS (devices, simulator) and macOS into DModemEngine.xcframework;
ios/DModemSmoke's Swift tests run it on macOS through the C API. CI
(apple.yml) does both on a macOS runner; android.yml's native job runs
the engine's tests with Apple's fallbacks on Linux too.

D-Modem-RE to its claude/apple-portability branch (portable.h: Apple's
ways where Linux has its own), on top of the speaker hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-17 13:45:11 +00:00

21 lines
656 B
Swift

// swift-tools-version:5.9
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 Neo-Desktop
//
// The modem from Swift: the engine's XCFramework (ios/build-native.sh)
// and tests that run it on macOS through its C API, as the iOS app will.
import PackageDescription
let package = Package(
name: "DModemSmoke",
platforms: [.macOS(.v12), .iOS(.v15)],
targets: [
.binaryTarget(name: "DModemEngine", path: "../../build-apple/DModemEngine.xcframework"),
.testTarget(
name: "DModemSmokeTests",
dependencies: ["DModemEngine"],
linkerSettings: [.linkedLibrary("c++")]
),
]
)