@rnx-kit/react-native-host 0.2.2 → 0.2.4

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,7 @@ 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']
12
+ preprocessor_definitions = ['FOLLY_NO_CONFIG=1', 'FOLLY_MOBILE=1', 'FOLLY_USE_LIBCPP=1']
13
13
  if new_arch_enabled
14
14
  preprocessor_definitions << 'RCT_NEW_ARCH_ENABLED=1'
15
15
  preprocessor_definitions << 'USE_FABRIC=1'
@@ -29,9 +29,9 @@ Pod::Spec.new do |s|
29
29
  s.osx.deployment_target = '10.15'
30
30
 
31
31
  s.dependency 'React-Core'
32
+ s.dependency 'React-cxxreact'
32
33
 
33
34
  if new_arch_enabled
34
- s.dependency 'React-cxxreact'
35
35
  s.dependency 'React-RCTFabric'
36
36
  s.dependency 'ReactCommon/turbomodule/core'
37
37
  end
@@ -41,8 +41,11 @@ Pod::Spec.new do |s|
41
41
  'DEFINES_MODULE' => 'YES',
42
42
  'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_definitions,
43
43
  'HEADER_SEARCH_PATHS' => [
44
- '$(PODS_ROOT)/Headers/Private/React-Core',
45
44
  '$(PODS_ROOT)/boost',
45
+ '$(PODS_ROOT)/boost-for-react-native',
46
+ '$(PODS_ROOT)/RCT-Folly',
47
+ '$(PODS_ROOT)/DoubleConversion',
48
+ '$(PODS_ROOT)/Headers/Private/React-Core',
46
49
  ],
47
50
  }
48
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnx-kit/react-native-host",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
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",
@@ -18,40 +18,11 @@
18
18
  "url": "https://github.com/microsoft/rnx-kit",
19
19
  "directory": "packages/react-native-host"
20
20
  },
21
- "engines": {
22
- "node": ">=14.15"
23
- },
24
21
  "scripts": {
25
22
  "format:c": "clang-format -i $(git ls-files '*.c' '*.cpp' '*.h' '*.m' '*.mm')",
26
23
  "lint:kt": "ktlint --relative --verbose 'android/src/**/*.kt'"
27
24
  },
28
25
  "peerDependencies": {
29
- "react": "17.0.1 || 17.0.2 || 18.0.0 || 18.1.0 || 18.2.0",
30
- "react-native": "^0.64.2 || ^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.69.0 || ^0.70.0 || ^0.71.0"
31
- },
32
- "devDependencies": {
33
- "@babel/core": "^7.12.9",
34
- "@babel/preset-env": "^7.1.6",
35
- "react": "17.0.2",
36
- "react-native": "^0.68.0"
37
- },
38
- "eslintConfig": {
39
- "extends": "@rnx-kit/eslint-config"
40
- },
41
- "rnx-kit": {
42
- "alignDeps": {
43
- "requirements": {
44
- "development": [
45
- "react-native@0.68"
46
- ],
47
- "production": [
48
- "react-native@>=0.64 <1.0"
49
- ]
50
- },
51
- "capabilities": [
52
- "core-android",
53
- "core-ios"
54
- ]
55
- }
26
+ "react-native": ">=0.64"
56
27
  }
57
28
  }