name: TetherApp
options:
  bundleIdPrefix: io.pecord
  deploymentTarget:
    iOS: "17.0"
  createIntermediateGroups: true

packages:
  TetherKit:
    path: ../TetherKit

targets:
  TetherApp:
    type: application
    platform: iOS
    sources:
      - Sources
    dependencies:
      - package: TetherKit
    settings:
      base:
        PRODUCT_BUNDLE_IDENTIFIER: io.pecord.tether
        MARKETING_VERSION: "0.1.0"
        CURRENT_PROJECT_VERSION: "1"
        GENERATE_INFOPLIST_FILE: true
        # Free Apple ID signing for on-device runs; blank is fine for Simulator.
        DEVELOPMENT_TEAM: ""
        CODE_SIGN_STYLE: Automatic
        # http:// to the LAN server — allow cleartext on local network.
        INFOPLIST_KEY_NSLocalNetworkUsageDescription: "tether connects to your clipboard relay on the local network."
        INFOPLIST_KEY_UILaunchScreen_Generation: true
      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."
        UILaunchScreen: {}
