name: Closer
options:
  bundleIdPrefix: app.closer
  deploymentTarget:
    iOS: "17.0"
  xcodeVersion: "16.0"
settings:
  base:
    SWIFT_VERSION: "6.0"
    SWIFT_STRICT_CONCURRENCY: complete
    INFOPLIST_FILE: Closer/Info.plist
    DEVELOPMENT_TEAM: "" # Set your team ID here

targets:
  Closer:
    type: application
    platform: iOS
    sources:
      - path: Closer
    settings:
      base:
        PRODUCT_BUNDLE_IDENTIFIER: app.closer.iphone
        TARGETED_DEVICE_FAMILY: 1
        INFOPLIST_FILE: Closer/Info.plist
    dependencies:
    preBuildScripts:
      - name: "Run SwiftLint"
        script: |
          if which swiftlint > /dev/null 2>&1; then
            swiftlint
          fi
        basedOnDependencyAnalysis: false

  CloserTests:
    type: bundle.unit-test
    platform: iOS
    sources:
      - path: CloserTests
    dependencies:
      - target: Closer
    settings:
      base:
        TEST_HOST: "$(BUILT_PRODUCTS_DIR)/Closer.app/Closer"

  CloserUITests:
    type: bundle.ui-testing
    platform: iOS
    sources:
      - path: CloserUITests
    dependencies:
      - target: Closer
    settings:
      base:
        TEST_TARGET_NAME: Closer