Repository navigation
Commit 37beffc
authored
Reject non-TurboModule exported modules when both interops are removed (#60531)
Summary:
With both legacy interop layers removed, `RCTTurboModuleManager` only creates classes that conform to `RCTTurboModule`. A module exported with `RCT_EXPORT_MODULE` that does not conform compiles but resolves to nil at runtime, so lookups such as URL request handlers and image loaders silently fall back. Make `RCT_EXPORT_MODULE` fail the build for such classes instead.
Changelog:
[iOS][Changed] - `RCT_EXPORT_MODULE` fails to compile for classes that do not conform to `RCTTurboModule` when both `RCT_REMOVE_LEGACY_MODULE_INTEROP` and `RCT_REMOVE_LEGACY_COMPONENT_INTEROP` are set
Signed-off-by: Christoph Purrer <chpurrer@meta.com>
Reviewed By: shwanton
Differential Revision: D136017712
Pull Request resolved: #605311 parent 06a4eb3 commit 37beffc
2 files changed
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
83 | 98 | | |
84 | 99 | | |
85 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
320 | 323 | | |
321 | 324 | | |
322 | 325 | | |
| |||
0 commit comments