Repository navigation
Commit 72885c1
Mark
Summary:
Pull Request resolved: #59105
`react_native_log.h` is how host integrations install a sink for React Native's native logs (`set_react_native_logfunc`, `ReactNativeLogLevel`). It is not reached from any public header, so classify it in the "for frameworks" tier of the C++ stable API by including `FrameworksGuard.h`. Consumers opting into `RN_STRICT_API` get a suppressible warning (silenced with `RN_ALLOW_FRAMEWORKS`) instead of no classification.
The `logger` target now depends on `cxxstableapi` in BUCK, CMake and CocoaPods.
Changelog: [Internal]
Reviewed By: cipolleschi
Differential Revision: D125412015
fbshipit-source-id: 64b44c5d2ca703bee33ca0c33274417b54a47262logger/react_native_log.h as a for-frameworks C++ API (#59105)1 parent f9c7007 commit 72885c1
3 files changed
Lines changed: 4 additions & 1 deletion
File tree
- packages/react-native/ReactCommon/logger
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
0 commit comments