Commit 855c8d8
Define RN_BUILDING for React Native's own CocoaPods targets
Summary:
React Native's public C++ headers are gaining guards from `react/cxxstableapi`. Those
guards turn a direct include of a fine-grained header into an error for consumers that
opt into the strict API by defining `RN_STRICT_API`. React Native's own sources keep
including those fine-grained headers directly, so they have to be exempt. The guards
recognise the exemption via `RN_BUILDING`.
Mark every first-party pod as part of React Native's own build by defining
`RN_BUILDING` for it, through a new `mark_as_react_native_build` helper called last in
each spec block
Third-party pods deliberately do NOT get this: they compile their own code against the
public API and must remain subject to the guards. For the same reason the definition
goes into `pod_target_xcconfig`, which applies to the pod's own target, rather than
`user_target_xcconfig`, which would leak it to the app.
This change is inert on its own: nothing behaves differently unless a consumer defines
`RN_STRICT_API`.
Changelog: [Internal]
Differential Revision: D1150510891 parent 63c36fe commit 855c8d8
79 files changed
Lines changed: 219 additions & 0 deletions
File tree
- packages/react-native
- Libraries
- ActionSheetIOS
- AppDelegate
- Blob
- FBLazyVector
- Image
- LinkingIOS
- NativeAnimation
- Network
- PushNotificationIOS
- Required
- Settings
- Text
- TypeSafety
- Vibration
- ReactApple
- Libraries/RCTFoundation/RCTDeprecation
- RCTAnimatedModuleProvider
- RCTSwiftUIWrapper
- RCTSwiftUI
- ReactCommon
- callinvoker
- cxxreact
- hermes
- executor
- jserrorhandler
- jsiexecutor
- jsinspector-modern
- cdp
- network
- tracing
- jsitooling
- jsi
- logger
- oscompat
- reactperflogger
- react
- bridging
- cxxstableapi
- debug
- featureflags
- nativemodule
- core/platform/ios
- defaults
- dom
- featureflags
- idlecallbacks
- intersectionobserver
- microtasks
- mutationobserver
- samples
- viewtransition
- webperformance
- networking
- performance
- cdpmetrics
- timeline
- renderer
- consistency
- css
- debug
- graphics
- imagemanager/platform/ios
- runtimescheduler
- runtime
- platform/ios
- timing
- utils
- runtimeexecutor
- yoga
- React
- CoreModules
- Runtime
- scripts
- cocoapods
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
0 commit comments