Commit 6e272c8
Use the same secrets file across WordPress, Jetpack, and Reader (#25803)
* Remove dead Google login credentials
Removed with WordPressAuthenticator, via f8ad8c4 -
#25646
* Remove dead GoogleSignIn URL scheme entries
These were the OAuth callback schemes — reversed Google client IDs — for the
Google sign-in flow that lived in `WordPressAuthenticator`, deleted in #25646.
Nothing handles the scheme anymore.
The schemes were hardcoded here rather than injected from `googleLoginSchemeId`,
so removing that secret in the preceding commit left them untouched and equally
dead.
---
Generated with the help of Claude Code, https://claude.ai/code
Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>
* Move Sentry DSN definition from secrets to `Info.plist`
That value does not need to be secret.
See https://docs.sentry.io/concepts/key-terms/dsn-explainer/#dsn-utilization
* Update DocsBot documentation links
The `/docs/` path the widget comment pointed at is stale; the page now lives
under `/documentation/developer/`.
The same link sits on `docsBotId` because it establishes what the value is: the
widget `id` is embed code, documented for placement in a site's public HTML.
That makes it a candidate to leave `BuildSecrets` the way the Sentry DSN did.
---
Generated with the help of Claude Code, https://claude.ai/code
Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>
* Move Docs Bot ID from secrets to Jetpack's `Info.plist`
* Read one secrets file for all app targets
The per-app branching existed because the secrets files held app-specific
values. Those have since moved to each app's `Info.plist`, read via
`BuildSettings`, leaving only values the three apps share.
`WordPress-Secrets-Internal.swift` and `-Alpha.swift` leave the input list too:
the script stopped reading them well before this change.
The shebang moves to `#!/usr/bin/env bash` with a separate `set -euo pipefail`.
`#!/bin/bash -euo pipefail` passed multiple parameters, which most systems do
not support.
---
Generated with the help of Claude Code, https://claude.ai/code
Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>
* Fix stale script path in credentials filelist
The entry pointed at `ApplyConfiguration.sh`, renamed in e78ed88 and never
updated here, so the self-dependency its comment describes was not wired: Xcode
had no edge from the build phase to the script driving it.
---
Generated with the help of Claude Code, https://claude.ai/code
Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>
* Store the Sentry DSN without its scheme
`INFOPLIST_PREPROCESS` is on for WordPress and Jetpack, so the plist goes
through the C preprocessor, where `//` opens a comment. The `https://` in the
DSN swallowed the rest of the line including `</string>`, leaving XML that
`ProcessInfoPlistFile` could not parse, and every app build failed.
Reader does not preprocess its plist, but the value is read through one code
path, so all three stay consistent.
This mirrors `WPProductBlogURL`, which is stored scheme-less for the same
reason.
---
Generated with the help of Claude Code, https://claude.ai/code
Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>
* Slim down AI-generated comment
* Name the Sentry DSN key for its missing scheme
The constraint only shows up in `BuildSettings+Live.swift`, which someone
editing the plist never opens. `WPSentryNoSchemeDSN` states it where a full DSN
would otherwise get pasted, and unlike an XML comment it survives Xcode's plist
editor.
---
Generated with the help of Claude Code, https://claude.ai/code
Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>
* Remove now-unused app-specific secrets
* Drop the app prefix from the secrets file name
Every target reads this file now, so naming it after one of them misleads. It
also matches the source name in the secrets repo, `iOS/WPiOS/Secrets.swift`.
---
Generated with the help of Claude Code, https://claude.ai/code
Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Code Opus 4.8 <noreply@anthropic.com>1 parent 78ade99 commit 6e272c8
19 files changed
Lines changed: 38 additions & 116 deletions
File tree
- .configure-files
- Modules/Sources/BuildSettingsKit
- Scripts/BuildPhases
- Sources
- Jetpack
- Reader
- WordPress
- WordPress
- Classes
- System
- Utility/Logging
- ViewRelated/Support/SupportChatBot
- Credentials
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 8 | + | |
29 | 9 | | |
30 | 10 | | |
31 | 11 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 13 | | |
26 | 14 | | |
27 | 15 | | |
| |||
35 | 23 | | |
36 | 24 | | |
37 | 25 | | |
38 | | - | |
39 | 26 | | |
40 | | - | |
41 | | - | |
42 | 27 | | |
43 | 28 | | |
44 | 29 | | |
45 | 30 | | |
46 | 31 | | |
47 | | - | |
48 | 32 | | |
49 | | - | |
50 | | - | |
51 | 33 | | |
52 | 34 | | |
53 | 35 | | |
54 | 36 | | |
55 | | - | |
56 | 37 | | |
57 | | - | |
58 | | - | |
59 | 38 | | |
60 | 39 | | |
61 | 40 | | |
| |||
65 | 44 | | |
66 | 45 | | |
67 | 46 | | |
68 | | - | |
69 | 47 | | |
70 | | - | |
71 | | - | |
72 | 48 | | |
73 | 49 | | |
74 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 52 | + | |
| 53 | + | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
| |||
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 63 | + | |
| 64 | + | |
69 | 65 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 66 | + | |
86 | 67 | | |
87 | 68 | | |
88 | 69 | | |
| |||
0 commit comments