@rnx-kit/react-native-host 0.2.9 → 0.3.0

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.
@@ -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 = ['FOLLY_NO_CONFIG=1', 'FOLLY_MOBILE=1', 'FOLLY_USE_LIBCPP=1']
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++17',
52
+ 'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++20',
46
53
  'DEFINES_MODULE' => 'YES',
47
54
  'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_definitions,
48
55
  'HEADER_SEARCH_PATHS' => [
@@ -1,6 +1,12 @@
1
1
  #import "RNXTurboModuleAdapter.h"
2
2
 
3
- #define FOLLY_NO_CONFIG 1
3
+ #include <folly/Portability.h>
4
+ #if FOLLY_HAS_COROUTINES
5
+ // TODO: `FOLLY_CFG_NO_COROUTINES` was added in 0.73. We can drop this block
6
+ // when we drop support for 0.72:
7
+ // https://github.com/facebook/react-native/commit/17154a661fe06ed25bf599f47bd4193eba011971
8
+ #define FOLLY_HAS_COROUTINES 0
9
+ #endif
4
10
  #pragma clang diagnostic push
5
11
  #pragma clang diagnostic ignored "-Wcomma"
6
12
  #import <cxxreact/JSExecutor.h>
@@ -1,6 +1,12 @@
1
1
  #import "ReactNativeHost.h"
2
2
 
3
- #define FOLLY_NO_CONFIG 1
3
+ #include <folly/Portability.h>
4
+ #if FOLLY_HAS_COROUTINES
5
+ // TODO: `FOLLY_CFG_NO_COROUTINES` was added in 0.73. We can drop this block
6
+ // when we drop support for 0.72:
7
+ // https://github.com/facebook/react-native/commit/17154a661fe06ed25bf599f47bd4193eba011971
8
+ #define FOLLY_HAS_COROUTINES 0
9
+ #endif
4
10
  #pragma clang diagnostic push
5
11
  #pragma clang diagnostic ignored "-Wcomma"
6
12
  #import <cxxreact/JSExecutor.h>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnx-kit/react-native-host",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
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,7 +24,7 @@
24
24
  "lint:kt": "ktlint --relative 'android/src/**/*.kt'"
25
25
  },
26
26
  "peerDependencies": {
27
- "react-native": ">=0.64"
27
+ "react-native": ">=0.66"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@rnx-kit/scripts": "*",