@rnx-kit/react-native-host 0.2.9 → 0.3.1
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
|
@@ -9,7 +9,14 @@ repository = package['repository']
|
|
|
9
9
|
repo_dir = repository['directory']
|
|
10
10
|
|
|
11
11
|
new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
|
|
12
|
-
preprocessor_definitions = [
|
|
12
|
+
preprocessor_definitions = [
|
|
13
|
+
'FOLLY_CFG_NO_COROUTINES=1',
|
|
14
|
+
'FOLLY_HAVE_CLOCK_GETTIME=1',
|
|
15
|
+
'FOLLY_HAVE_PTHREAD=1',
|
|
16
|
+
'FOLLY_MOBILE=1',
|
|
17
|
+
'FOLLY_NO_CONFIG=1',
|
|
18
|
+
'FOLLY_USE_LIBCPP=1',
|
|
19
|
+
]
|
|
13
20
|
if new_arch_enabled
|
|
14
21
|
preprocessor_definitions << 'RCT_NEW_ARCH_ENABLED=1'
|
|
15
22
|
preprocessor_definitions << 'USE_FABRIC=1'
|
|
@@ -42,7 +49,7 @@ Pod::Spec.new do |s|
|
|
|
42
49
|
end
|
|
43
50
|
|
|
44
51
|
s.pod_target_xcconfig = {
|
|
45
|
-
'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++
|
|
52
|
+
'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++20',
|
|
46
53
|
'DEFINES_MODULE' => 'YES',
|
|
47
54
|
'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_definitions,
|
|
48
55
|
'HEADER_SEARCH_PATHS' => [
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#include <folly/Portability.h>
|
|
2
|
+
#if FOLLY_HAS_COROUTINES
|
|
3
|
+
// TODO: `FOLLY_CFG_NO_COROUTINES` was added in 0.73. We can drop this block
|
|
4
|
+
// when we drop support for 0.72:
|
|
5
|
+
// https://github.com/facebook/react-native/commit/17154a661fe06ed25bf599f47bd4193eba011971
|
|
6
|
+
#define FOLLY_HAS_COROUTINES 0
|
|
7
|
+
#endif
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#import "RNXTurboModuleAdapter.h"
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
#include "FollyConfig.h"
|
|
4
4
|
#pragma clang diagnostic push
|
|
5
5
|
#pragma clang diagnostic ignored "-Wcomma"
|
|
6
6
|
#import <cxxreact/JSExecutor.h>
|
|
@@ -84,7 +84,8 @@
|
|
|
84
84
|
|
|
85
85
|
// MARK: - Private
|
|
86
86
|
|
|
87
|
-
- (std::unique_ptr<facebook::react::JSExecutorFactory>)initJsExecutorFactoryWithBridge:
|
|
87
|
+
- (std::unique_ptr<facebook::react::JSExecutorFactory>)initJsExecutorFactoryWithBridge:
|
|
88
|
+
(RCTBridge *)bridge
|
|
88
89
|
{
|
|
89
90
|
#if USE_RUNTIME_SCHEDULER
|
|
90
91
|
_runtimeScheduler =
|
package/cocoa/ReactNativeHost.mm
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnx-kit/react-native-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Simplify React Native initialization",
|
|
5
5
|
"homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/react-native-host#readme",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
"lint:kt": "ktlint --relative 'android/src/**/*.kt'"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"react-native": ">=0.
|
|
27
|
+
"react-native": ">=0.66"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@rnx-kit/scripts": "*",
|
|
31
|
+
"@rnx-kit/tsconfig": "*",
|
|
31
32
|
"prettier": "^3.0.0"
|
|
32
33
|
}
|
|
33
34
|
}
|