Commit b90d6b8
Remove unused env vars from fastlane tooling (#25771)
* Add helper to read build settings from xcconfig
Wraps `Xcodeproj::Config` with the error handling its raw API lacks: a
missing file, a missing key, and a key set to an empty value all raise
rather than silently yielding `nil`.
Uses `to_hash` rather than `attributes`, since the latter only sees the
settings assigned in the file itself, not those it pulls in via
`#include`.
---
Generated with the help of Claude Code, https://claude.com/claude-code
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Read the internal team ID from xcconfig
`INT_EXPORT_TEAM_ID` duplicated a value the project already declares:
enterprise and prototype builds use the `Release-Alpha` configuration,
whose `DEVELOPMENT_TEAM` is set in `config/Common.alpha.xcconfig`.
Reading it from there removes one secret from the environment the
tooling needs to be handed.
Note the value also lives in `project.env` in the `mobile-secrets`
repository, where it now has no consumer.
---
Generated with the help of Claude Code, https://claude.com/claude-code
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Read the external team ID from xcconfig
Same reasoning as the internal team ID in the previous commit:
`EXT_EXPORT_TEAM_ID` duplicated the `DEVELOPMENT_TEAM` that
`config/Common.release.xcconfig` already declares for the App Store
builds, which use the `Release` configuration.
With both gone, `project.env` no longer has to carry either team ID.
---
Generated with the help of Claude Code, https://claude.com/claude-code
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Stop passing team_id to upload_to_testflight
Both call sites authenticate with `api_key`, and pilot only ever reads
`team_id` on the username/password Spaceship path — see
`pilot/lib/pilot/manager.rb:36`, the sole reader of `config[:team_id]` in
the whole of `pilot/lib`, which sits in the `else` branch that an API
token skips.
An App Store Connect API key is issued by a single team, so there is no
team left to disambiguate. `woocommerce-ios` has shipped its TestFlight
uploads without the parameter for this reason.
---
Generated with the help of Claude Code, https://claude.com/claude-code
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Stop provisioning project.env
Every key it carried is now unused: the two export team IDs come from
`xcconfig`, `FASTLANE_ITC_TEAM_ID` was inert alongside an `api_key`, the
Sentry slugs are hardcoded constants in `build.rb`, and the two HockeyApp
IDs outlived the service.
With nothing reading the file, the `before_all` guard demanding it had no
purpose either — which is what the three CI scripts were copying the
example file to satisfy. `configure_apply` creates its destination
directory itself, so nothing else needed that block.
The file still exists in `mobile-secrets`, where it can now be deleted.
---
Generated with the help of Claude Code, https://claude.com/claude-code
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Remove now unused `project.env.enc`
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9664012 commit b90d6b8
11 files changed
Lines changed: 42 additions & 42 deletions
File tree
- .buildkite/commands
- .configure-files
- fastlane
- env
- lanes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
31 | | - | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
| 489 | + | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | 519 | | |
521 | 520 | | |
522 | 521 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | 211 | | |
213 | 212 | | |
214 | 213 | | |
| |||
0 commit comments