# SPDX-License-Identifier: AGPL-3.0-only # Copyright (C) 2026 Neo-Desktop # # The iOS app's Xcode project, as text: xcodegen generate (in ios/DModem) # makes DModem.xcodeproj. It needs build-apple/DModemEngine.xcframework # (ios/build-native.sh) and the shared Kotlin's XCFramework # (./gradlew :shared:assembleDModemSharedXCFramework). name: DModem options: bundleIdPrefix: com.neodesktop deploymentTarget: iOS: "16.0" packages: DModemKit: path: ../DModemKit DModemSSH: path: ../DModemSSH targets: DModem: type: application platform: iOS sources: [Sources] dependencies: - package: DModemKit - package: DModemSSH - framework: ../../shared/build/XCFrameworks/release/DModemShared.xcframework embed: false # the dial-up link's VPN (embedded in the app's PlugIns) - target: DModemTunnel - sdk: NetworkExtension.framework - sdk: CallKit.framework info: path: Sources/Info.plist properties: CFBundleDisplayName: D-Modem CFBundleShortVersionString: "0.1" UILaunchScreen: {} UISupportedInterfaceOrientations: [UIInterfaceOrientationPortrait, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight] # the modem's call goes on in the background: its speaker (or quiet) keeps the app's audio running UIBackgroundModes: [audio] NSLocalNetworkUsageDescription: "D-Modem calls another phone with the app on this network, and SIP servers on it." NSBonjourServices: [_dmodem._tcp] # voice calls through the modem, a greeting recorded for the answering machine NSMicrophoneUsageDescription: "D-Modem uses the microphone for voice calls through the modem, and to record the answering machine's greeting." # received files and faxes in the Files app (On My iPhone › D-Modem) UIFileSharingEnabled: true LSSupportsOpeningDocumentsInPlace: true entitlements: path: Sources/DModem.entitlements properties: com.apple.developer.networking.networkextension: [packet-tunnel-provider] settings: base: PRODUCT_BUNDLE_IDENTIFIER: com.neodesktop.dmodem PRODUCT_NAME: DModem SWIFT_VERSION: "5.9" TARGETED_DEVICE_FAMILY: "1,2" # (the engine is C++; SystemDNS.c's res_ninit is libresolv's) OTHER_LDFLAGS: ["-lc++", "-lresolv"] SWIFT_OBJC_BRIDGING_HEADER: Sources/DModem-Bridging-Header.h # the dial-up link as the phone's VPN: a packet tunnel, its packets to the app on the loopback DModemTunnel: type: app-extension platform: iOS sources: [Tunnel] dependencies: - sdk: NetworkExtension.framework info: path: Tunnel/Info.plist properties: CFBundleDisplayName: D-Modem dial-up CFBundleShortVersionString: "0.1" NSExtension: NSExtensionPointIdentifier: com.apple.networkextension.packet-tunnel NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).PacketTunnelProvider entitlements: path: Tunnel/DModemTunnel.entitlements properties: com.apple.developer.networking.networkextension: [packet-tunnel-provider] settings: base: PRODUCT_BUNDLE_IDENTIFIER: com.neodesktop.dmodem.tunnel PRODUCT_NAME: DModemTunnel SWIFT_VERSION: "5.9" TARGETED_DEVICE_FAMILY: "1,2"