name: ElementX
attributes:
  ORGANIZATIONNAME: Element

fileGroups:
    - project.yml

options:
  groupSortPosition: bottom
  createIntermediateGroups: true
  deploymentTarget:
    iOS: "15.0"
    macOS: "12.0"
  groupOrdering: 
    - order: [ElementX, UnitTests, UITests, IntegrationTests, Tools]
    - pattern: ElementX
      order: [Sources, Resources, SupportingFiles]
    - pattern: Sources
      order: [Services, Screens, Other]
  postGenCommand: cd Tools/XcodeGen && sh postGenCommand.sh

settings:
  CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED: YES
  ENABLE_BITCODE: NO


include:
  - path: ElementX/SupportingFiles/target.yml
  - path: UnitTests/SupportingFiles/target.yml
  - path: UITests/SupportingFiles/target.yml
  - path: IntegrationTests/SupportingFiles/target.yml

packages:
  MatrixRustSDK:
    url: https://github.com/matrix-org/matrix-rust-components-swift
    exactVersion: 1.0.13-alpha
    # path: ../matrix-rust-components-swift
  DesignKit:
    path: ./
  AnalyticsEvents:
    url: https://github.com/matrix-org/matrix-analytics-events
    branch: main
  AppAuth:
    url: https://github.com/openid/AppAuth-iOS
    majorVersion: 1.5.0
  DTCoreText:
    url: https://github.com/Cocoanetics/DTCoreText
    majorVersion: 1.6.26
  KeychainAccess:
    url: https://github.com/kishikawakatsumi/KeychainAccess
    majorVersion: 4.2.2
  Kingfisher:
    url: https://github.com/onevcat/Kingfisher
    majorVersion: 7.2.0
  Introspect:
    url: https://github.com/siteline/SwiftUI-Introspect
    majorVersion: 0.1.4
  PostHog:
    url: https://github.com/PostHog/posthog-ios
    majorVersion: 1.4.4
  SwiftyBeaver:
    url: https://github.com/SwiftyBeaver/SwiftyBeaver
    majorVersion: 1.9.5
  SwiftState:
    url: https://github.com/ReactKit/SwiftState
    majorVersion: 6.0.0
  GZIP:
    url: https://github.com/nicklockwood/GZIP
    majorVersion: 1.3.0
  Sentry:
    url: https://github.com/getsentry/sentry-cocoa
    majorVersion: 7.15.0
  SnapshotTesting:
    url: https://github.com/pointfreeco/swift-snapshot-testing
    majorVersion: 1.9.0
