summaryrefslogtreecommitdiff
path: root/makima/ios/project.yml
blob: 2b099b45016c85a24377700735691243ab098fc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Makima
options:
  bundleIdPrefix: co.soryu
  deploymentTarget:
    iOS: "18.0"
  developmentLanguage: en
  createIntermediateGroups: true
  xcodeVersion: "16.0"
  groupSortPosition: top
  generateEmptyDirectories: true

settings:
  base:
    SWIFT_VERSION: "5.10"
    IPHONEOS_DEPLOYMENT_TARGET: "18.0"
    ENABLE_USER_SCRIPT_SANDBOXING: YES
    CURRENT_PROJECT_VERSION: "1"
    MARKETING_VERSION: "0.1.0"
    SWIFT_STRICT_CONCURRENCY: complete
    CODE_SIGN_STYLE: Automatic
    DEVELOPMENT_TEAM: ""

configs:
  Debug: debug
  Release: release
  Screenshots: debug

targets:
  Makima:
    type: application
    platform: iOS
    sources:
      - path: Sources/Makima
        excludes:
          - "**/.DS_Store"
    resources:
      - path: Sources/Makima/Resources
    info:
      path: Sources/Makima/App/Info.plist
      properties:
        CFBundleDisplayName: Makima
        CFBundleShortVersionString: $(MARKETING_VERSION)
        CFBundleVersion: $(CURRENT_PROJECT_VERSION)
        LSRequiresIPhoneOS: true
        UILaunchScreen:
          UIColorName: BrandBackground
        UISupportedInterfaceOrientations:
          - UIInterfaceOrientationPortrait
        UIUserInterfaceStyle: Dark
        ITSAppUsesNonExemptEncryption: false
        NSAppTransportSecurity:
          NSAllowsArbitraryLoads: false
        CFBundleURLTypes:
          - CFBundleURLName: co.soryu.makima
            CFBundleURLSchemes:
              - makima
    settings:
      base:
        PRODUCT_BUNDLE_IDENTIFIER: co.soryu.makima
        TARGETED_DEVICE_FAMILY: "1"
        ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
        ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: BrandAccent
      configs:
        Screenshots:
          SWIFT_ACTIVE_COMPILATION_CONDITIONS: "DEBUG SCREENSHOT_MODE"
          OTHER_SWIFT_FLAGS: "-DSCREENSHOT_MODE"

  MakimaTests:
    type: bundle.unit-test
    platform: iOS
    sources:
      - path: Tests/MakimaTests
    dependencies:
      - target: Makima
    settings:
      base:
        PRODUCT_BUNDLE_IDENTIFIER: co.soryu.makima.tests

  MakimaUITests:
    type: bundle.ui-testing
    platform: iOS
    sources:
      - path: Tests/MakimaUITests
    dependencies:
      - target: Makima
    settings:
      base:
        PRODUCT_BUNDLE_IDENTIFIER: co.soryu.makima.uitests
        TEST_TARGET_NAME: Makima

schemes:
  Makima:
    build:
      targets:
        Makima: all
    run:
      config: Debug
    test:
      config: Debug
      targets:
        - MakimaTests
    archive:
      config: Release

  Makima-Screenshots:
    build:
      targets:
        Makima: [build]
        MakimaUITests: [test]
    run:
      config: Screenshots
    test:
      config: Screenshots
      targets:
        - MakimaUITests