@rnx-kit/react-native-host 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ReactNativeHost.podspec
CHANGED
|
@@ -8,7 +8,7 @@ version = package['version']
|
|
|
8
8
|
repository = package['repository']
|
|
9
9
|
repo_dir = repository['directory']
|
|
10
10
|
|
|
11
|
-
new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
|
|
11
|
+
new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' && ENV['USE_NEW_ARCH'] != '0'
|
|
12
12
|
preprocessor_definitions = [
|
|
13
13
|
'FOLLY_CFG_NO_COROUTINES=1',
|
|
14
14
|
'FOLLY_HAVE_CLOCK_GETTIME=1',
|
|
@@ -12,28 +12,26 @@
|
|
|
12
12
|
|
|
13
13
|
#if __has_include(<React/RCTAppSetupUtils.h>) // <0.72
|
|
14
14
|
#import <React/RCTAppSetupUtils.h>
|
|
15
|
-
#define USE_RUNTIME_SCHEDULER 0
|
|
16
15
|
#else
|
|
17
16
|
#import <React-RCTAppDelegate/RCTAppSetupUtils.h>
|
|
18
17
|
#import <React/RCTSurfacePresenterBridgeAdapter.h>
|
|
19
18
|
|
|
20
19
|
// We still get into this path because react-native-macos 0.71 picked up some
|
|
21
|
-
// 0.72 bits. AFAICT, `
|
|
22
|
-
//
|
|
23
|
-
#if __has_include(<
|
|
20
|
+
// 0.72 bits. AFAICT, `SchedulerPriorityUtils.h` is a new addition in 0.72 in
|
|
21
|
+
// both react-native and react-native-macos.
|
|
22
|
+
#if __has_include(<react/renderer/runtimescheduler/SchedulerPriorityUtils.h>)
|
|
23
|
+
#if __has_include(<React-RCTAppDelegate/RCTLegacyInteropComponents.h>) // <0.74
|
|
24
24
|
#import <React-RCTAppDelegate/RCTLegacyInteropComponents.h>
|
|
25
|
+
#define MANUALLY_REGISTER_LEGACY_COMPONENTS 1
|
|
26
|
+
#endif // __has_include(<React-RCTAppDelegate/RCTLegacyInteropComponents.h>)
|
|
25
27
|
#import <React/RCTLegacyViewManagerInteropComponentView.h>
|
|
26
28
|
#import <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
|
27
29
|
#import <react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h>
|
|
28
30
|
#if __has_include(<React/RCTRuntimeExecutorFromBridge.h>)
|
|
29
31
|
#import <React/RCTRuntimeExecutorFromBridge.h>
|
|
30
32
|
#endif // __has_include(<React/RCTRuntimeExecutorFromBridge.h>)
|
|
31
|
-
#define SUPPORTS_LEGACY_COMPONENTS 1
|
|
32
33
|
#define USE_RUNTIME_SCHEDULER 1
|
|
33
|
-
#
|
|
34
|
-
#define SUPPORTS_LEGACY_COMPONENTS 0
|
|
35
|
-
#define USE_RUNTIME_SCHEDULER 0
|
|
36
|
-
#endif // __has_include(<React-RCTAppDelegate/RCTLegacyInteropComponents.h>)
|
|
34
|
+
#endif // __has_include(<react/renderer/runtimescheduler/SchedulerPriorityUtils.h>)
|
|
37
35
|
|
|
38
36
|
#endif // __has_include(<React/RCTAppSetupUtils.h>)
|
|
39
37
|
|
|
@@ -52,7 +50,11 @@
|
|
|
52
50
|
(RCTBridge *)bridge
|
|
53
51
|
{
|
|
54
52
|
#if USE_TURBOMODULE
|
|
55
|
-
|
|
53
|
+
#if MANUALLY_REGISTER_LEGACY_COMPONENTS
|
|
54
|
+
for (NSString *legacyComponent in [RCTLegacyInteropComponents legacyInteropComponents]) {
|
|
55
|
+
[RCTLegacyViewManagerInteropComponentView supportLegacyViewManagerWithName:legacyComponent];
|
|
56
|
+
}
|
|
57
|
+
#endif // MANUALLY_REGISTER_LEGACY_COMPONENTS
|
|
56
58
|
// jsExecutorFactoryForBridge: (USE_TURBOMODULE=1)
|
|
57
59
|
return [self initJsExecutorFactoryWithBridge:bridge];
|
|
58
60
|
#else
|
|
@@ -104,15 +106,6 @@
|
|
|
104
106
|
#endif // USE_RUNTIME_SCHEDULER
|
|
105
107
|
}
|
|
106
108
|
|
|
107
|
-
- (void)registerLegacyViewManagers
|
|
108
|
-
{
|
|
109
|
-
#if SUPPORTS_LEGACY_COMPONENTS
|
|
110
|
-
for (NSString *legacyComponent in [RCTLegacyInteropComponents legacyInteropComponents]) {
|
|
111
|
-
[RCTLegacyViewManagerInteropComponentView supportLegacyViewManagerWithName:legacyComponent];
|
|
112
|
-
}
|
|
113
|
-
#endif // SUPPORTS_LEGACY_COMPONENTS
|
|
114
|
-
}
|
|
115
|
-
|
|
116
109
|
#endif // USE_TURBOMODULE
|
|
117
110
|
|
|
118
111
|
@end
|
package/package.json
CHANGED