Repository navigation
Commit 2afaf3b
Stop suppressing the for-frameworks guard inside umbrella context (#58850)
Summary:
Pull Request resolved: #58850
The for-frameworks guard skipped its warning whenever `RN_UMBRELLA_CONTEXT` was defined, and its message told consumers to include the header through the module umbrella. Neither makes sense for this tier: umbrellas only re-export public headers, and framework-tier modules have no umbrella at all. The exemption therefore had no legitimate use; its only effect was to hide a public header transitively leaking a for-frameworks header into consumer code.
Drop the `RN_UMBRELLA_CONTEXT` exemption so such a leak is reported, and point the message at the only real escape hatch, `RN_ALLOW_FRAMEWORKS`. No umbrella or public header includes a for-frameworks header today, so this does not change any existing build.
Changelog:
[Internal]
___
Differential Revision: D123399815
fbshipit-source-id: 20c3da6dd27163aa644e4a8475815037baa432cf1 parent a4ed576 commit 2afaf3b
1 file changed
Lines changed: 9 additions & 7 deletions
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
0 commit comments