| 1 | name: DocsPhone |
| 2 | options: |
| 3 | bundleIdPrefix: works.oficina |
| 4 | deploymentTarget: |
| 5 | iOS: '26.0' |
| 6 | packages: |
| 7 | DocsNative: |
| 8 | path: ../apple |
| 9 | RastrilloNative: |
| 10 | url: https://amadan.net/rastrillo/native |
| 11 | revision: 0254817dc9dd118ab271f1120cd2b03c1270a1f9 |
| 12 | settings: |
| 13 | base: |
| 14 | SWIFT_VERSION: '6.0' |
| 15 | CODE_SIGN_STYLE: Automatic |
| 16 | MARKETING_VERSION: 0.1.0 |
| 17 | CURRENT_PROJECT_VERSION: '1' |
| 18 | targets: |
| 19 | DocsPhone: |
| 20 | type: application |
| 21 | platform: iOS |
| 22 | sources: |
| 23 | - ../apple/Sources/DocsApp |
| 24 | - Assets.xcassets |
| 25 | - path: ../PrivacyInfo.xcprivacy |
| 26 | buildPhase: resources |
| 27 | dependencies: |
| 28 | - package: DocsNative |
| 29 | product: DocsKit |
| 30 | - package: RastrilloNative |
| 31 | product: RastrilloApple |
| 32 | settings: |
| 33 | base: |
| 34 | ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon |
| 35 | PROVISIONING_PROFILE_SPECIFIER: $(OFICINA_PROVISIONING_PROFILE) |
| 36 | PRODUCT_BUNDLE_IDENTIFIER: works.oficina.docs |
| 37 | # Oficina ID (rastrillo/native APPLE.md, "Oficina ID, slice A"): Docs' |
| 38 | # own keychain group first, then the shared one; group.works.oficina; |
| 39 | # webcredentials:id.oficina.works for passkeys. |
| 40 | CODE_SIGN_ENTITLEMENTS: DocsPhone.entitlements |
| 41 | TARGETED_DEVICE_FAMILY: 1,2 |
| 42 | GENERATE_INFOPLIST_FILE: true |
| 43 | INFOPLIST_KEY_CFBundleDisplayName: Oficina Docs |
| 44 | INFOPLIST_KEY_UILaunchScreen_Generation: true |
| 45 | # App Store Connect refuses an iPad-capable upload without these |
| 46 | # (all four on iPad, for multitasking). |
| 47 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone: UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight |
| 48 | # Docs uses only the system's HTTPS: exempt (as build 10 declared). |
| 49 | INFOPLIST_KEY_ITSAppUsesNonExemptEncryption: false |
| 50 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight |
| 51 | info: |
| 52 | path: Info.plist |
| 53 | properties: |
| 54 | CFBundleURLTypes: |
| 55 | - CFBundleURLName: works.oficina.docs.signin |
| 56 | CFBundleURLSchemes: |
| 57 | - works.oficina.docs |
| 58 | CFBundleTypeRole: Editor |
| 59 | CFBundleShortVersionString: $(MARKETING_VERSION) |
| 60 | CFBundleVersion: $(CURRENT_PROJECT_VERSION) |
| 61 | # The twelve languages Docs ships. Without the key every resource |
| 62 | # bundle (DocsKit's, RastrilloApple's) reads English. |
| 63 | CFBundleLocalizations: |
| 64 | - en |
| 65 | - ar |
| 66 | - bn |
| 67 | - es |
| 68 | - ga |
| 69 | - hi |
| 70 | - ja |
| 71 | - pt |
| 72 | - ru |
| 73 | - vi |
| 74 | - yue |
| 75 | - zh-Hans |
| 76 | DocsReviewPhone: |
| 77 | type: application |
| 78 | platform: iOS |
| 79 | sources: |
| 80 | - Review |
| 81 | dependencies: |
| 82 | - package: DocsNative |
| 83 | product: DocsKit |
| 84 | - package: RastrilloNative |
| 85 | product: RastrilloApple |
| 86 | settings: |
| 87 | base: |
| 88 | PRODUCT_BUNDLE_IDENTIFIER: works.oficina.docs.review |
| 89 | TARGETED_DEVICE_FAMILY: 1,2 |
| 90 | GENERATE_INFOPLIST_FILE: true |
| 91 | INFOPLIST_KEY_UILaunchScreen_Generation: true |
| 92 | DocsPhoneUITests: |
| 93 | type: bundle.ui-testing |
| 94 | platform: iOS |
| 95 | sources: |
| 96 | - UITests |
| 97 | dependencies: |
| 98 | - target: DocsReviewPhone |
| 99 | settings: |
| 100 | base: |
| 101 | GENERATE_INFOPLIST_FILE: true |
| 102 | TEST_TARGET_NAME: DocsReviewPhone |
| 103 | # The screenshot gate's iPhone half: the Mac half's catalog file, run as a |
| 104 | # logic test in the simulator by native/scripts/snapshots.sh. |
| 105 | DocsPhoneSnapshots: |
| 106 | type: bundle.unit-test |
| 107 | platform: iOS |
| 108 | sources: |
| 109 | - path: ../apple/Tests/DocsSnapshots |
| 110 | excludes: |
| 111 | - __Snapshots__ |
| 112 | dependencies: |
| 113 | - package: DocsNative |
| 114 | product: DocsKit |
| 115 | - package: RastrilloNative |
| 116 | product: RastrilloApple |
| 117 | - package: RastrilloNative |
| 118 | product: RastrilloSnapshots |
| 119 | - package: RastrilloNative |
| 120 | product: RastrilloTestSupport |
| 121 | settings: |
| 122 | base: |
| 123 | GENERATE_INFOPLIST_FILE: true |
| 124 | PRODUCT_BUNDLE_IDENTIFIER: works.oficina.docs.snapshots |
| 125 | # Editor tests that need UIKit's text view: the render-loop regression |
| 126 | # (TestFlight 0.1.10 build 12) and the per-block rendering of the native |
| 127 | # redesign's S1a (the surface's flush triggers, delta safety, the block |
| 128 | # index, block render equivalence, render isolation and §7's counters). |
| 129 | # The Mac half runs the same files in `swift test`; this runs them in the |
| 130 | # simulator. native/scripts/test-iphone.sh runs it. DOCS_PROBES compiles |
| 131 | # the counters' test, as DocsKit's debug build compiles the counters. |
| 132 | DocsPhoneTests: |
| 133 | type: bundle.unit-test |
| 134 | platform: iOS |
| 135 | sources: |
| 136 | - path: ../apple/Tests/DocsKitTests/EditorRenderLoopTests.swift |
| 137 | - path: ../apple/Tests/DocsKitTests/SurfaceTestSupport.swift |
| 138 | - path: ../apple/Tests/DocsKitTests/FlushTriggerTests.swift |
| 139 | - path: ../apple/Tests/DocsKitTests/DeltaSafetyTests.swift |
| 140 | - path: ../apple/Tests/DocsKitTests/BlockIndexTests.swift |
| 141 | - path: ../apple/Tests/DocsKitTests/BlockRenderEquivalenceTests.swift |
| 142 | - path: ../apple/Tests/DocsKitTests/RenderIsolationTests.swift |
| 143 | - path: ../apple/Tests/DocsKitTests/SurfaceTimingTests.swift |
| 144 | - path: ../apple/Tests/DocsKitTests/SurfaceLifecycleTests.swift |
| 145 | - path: ../apple/Tests/DocsKitTests/PhoneLargeDocumentTests.swift |
| 146 | - path: ../apple/Tests/DocsKitTests/PhoneDocumentTests.swift |
| 147 | - path: ../apple/Tests/DocsKitTests/PhonePaginationTests.swift |
| 148 | dependencies: |
| 149 | - package: DocsNative |
| 150 | product: DocsKit |
| 151 | - package: RastrilloNative |
| 152 | product: RastrilloApple |
| 153 | - package: RastrilloNative |
| 154 | product: RastrilloTestSupport |
| 155 | settings: |
| 156 | base: |
| 157 | GENERATE_INFOPLIST_FILE: true |
| 158 | PRODUCT_BUNDLE_IDENTIFIER: works.oficina.docs.phonetests |
| 159 | SWIFT_ACTIVE_COMPILATION_CONDITIONS: $(inherited) DOCS_PROBES |
| 160 | schemes: |
| 161 | DocsPhoneTests: |
| 162 | build: |
| 163 | targets: |
| 164 | DocsPhoneTests: [test] |
| 165 | test: |
| 166 | targets: |
| 167 | - DocsPhoneTests |
| 168 | DocsPhoneSnapshots: |
| 169 | build: |
| 170 | targets: |
| 171 | DocsPhoneSnapshots: [test] |
| 172 | test: |
| 173 | targets: |
| 174 | - DocsPhoneSnapshots |
| 175 | DocsReviewPhone: |
| 176 | build: |
| 177 | targets: |
| 178 | DocsReviewPhone: all |
| 179 | test: |
| 180 | targets: |
| 181 | - DocsPhoneUITests |
| 182 | environmentVariables: |
| 183 | DOCS_NATIVE_REVIEW_INPUT: $(DOCS_NATIVE_REVIEW_INPUT) |
| 184 | |