react-native 0.72.8 → 0.72.10
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/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/promiseRejectionTrackingOptions.js +5 -0
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/build.gradle +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/debug/flags.h +2 -0
- package/ReactCommon/react/renderer/core/PropsParserContext.h +5 -0
- package/package.json +1 -1
- package/scripts/cocoapods/__tests__/jsengine-test.rb +0 -2
- package/scripts/cocoapods/jsengine.rb +1 -5
- package/scripts/cocoapods/utils.rb +4 -3
- package/sdks/hermes-engine/utils/build-apple-framework.sh +3 -7
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/template/package.json +1 -1
- package/third-party-podspecs/boost.podspec +1 -1
|
@@ -36,6 +36,11 @@ let rejectionTrackingOptions: $Call<ExtractOptionsType, enable> = {
|
|
|
36
36
|
? rejection
|
|
37
37
|
: JSON.stringify((rejection: $FlowFixMe));
|
|
38
38
|
}
|
|
39
|
+
// It could although this object is not a standard error, it still has stack information to unwind
|
|
40
|
+
// $FlowFixMe ignore types just check if stack is there
|
|
41
|
+
if (rejection.stack && typeof rejection.stack === 'string') {
|
|
42
|
+
stack = rejection.stack;
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
const warning = `Possible unhandled promise rejection (id: ${id}):\n${
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -243,7 +243,7 @@ task createNativeDepsDirectories {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
task downloadBoost(dependsOn: createNativeDepsDirectories, type: Download) {
|
|
246
|
-
src("https://
|
|
246
|
+
src("https://archives.boost.io/release/${BOOST_VERSION.replace("_", ".")}/source/boost_${BOOST_VERSION}.tar.gz")
|
|
247
247
|
onlyIfModified(true)
|
|
248
248
|
overwrite(false)
|
|
249
249
|
retries(5)
|
|
@@ -17,6 +17,11 @@ namespace react {
|
|
|
17
17
|
// It should be used as infrequently as possible - most props can and should
|
|
18
18
|
// be parsed without any context.
|
|
19
19
|
struct PropsParserContext {
|
|
20
|
+
PropsParserContext(
|
|
21
|
+
SurfaceId const surfaceId,
|
|
22
|
+
ContextContainer const &contextContainer)
|
|
23
|
+
: surfaceId(surfaceId), contextContainer(contextContainer) {}
|
|
24
|
+
|
|
20
25
|
// Non-copyable
|
|
21
26
|
PropsParserContext(const PropsParserContext &) = delete;
|
|
22
27
|
PropsParserContext &operator=(const PropsParserContext &) = delete;
|
package/package.json
CHANGED
|
@@ -107,7 +107,6 @@ class JSEngineTests < Test::Unit::TestCase
|
|
|
107
107
|
assert_equal($podInvocation["libevent"][:version], "~> 2.1.12")
|
|
108
108
|
hermes_engine_pod_invocation = $podInvocation["hermes-engine"]
|
|
109
109
|
assert_equal(hermes_engine_pod_invocation[:podspec], "../../sdks/hermes-engine/hermes-engine.podspec")
|
|
110
|
-
assert_equal(hermes_engine_pod_invocation[:tag], "")
|
|
111
110
|
end
|
|
112
111
|
|
|
113
112
|
def test_setupHermes_installsPods_installsFabricSubspecWhenFabricEnabled
|
|
@@ -122,7 +121,6 @@ class JSEngineTests < Test::Unit::TestCase
|
|
|
122
121
|
assert_equal($podInvocation["React-jsi"][:path], "../../ReactCommon/jsi")
|
|
123
122
|
hermes_engine_pod_invocation = $podInvocation["hermes-engine"]
|
|
124
123
|
assert_equal(hermes_engine_pod_invocation[:podspec], "../../sdks/hermes-engine/hermes-engine.podspec")
|
|
125
|
-
assert_equal(hermes_engine_pod_invocation[:tag], "")
|
|
126
124
|
assert_equal($podInvocation["React-hermes"][:path], "../../ReactCommon/hermes")
|
|
127
125
|
assert_equal($podInvocation["libevent"][:version], "~> 2.1.12")
|
|
128
126
|
end
|
|
@@ -30,12 +30,8 @@ def setup_hermes!(react_native_path: "../node_modules/react-native", fabric_enab
|
|
|
30
30
|
abort unless prep_status == 0
|
|
31
31
|
|
|
32
32
|
pod 'React-jsi', :path => "#{react_native_path}/ReactCommon/jsi"
|
|
33
|
-
# This `:tag => hermestag` below is only to tell CocoaPods to update hermes-engine when React Native version changes.
|
|
34
|
-
# We have custom logic to compute the source for hermes-engine. See sdks/hermes-engine/*
|
|
35
|
-
hermestag_file = File.join(react_native_dir, "sdks", ".hermesversion")
|
|
36
|
-
hermestag = File.exist?(hermestag_file) ? File.read(hermestag_file).strip : ''
|
|
37
33
|
|
|
38
|
-
pod 'hermes-engine', :podspec => "#{react_native_path}/sdks/hermes-engine/hermes-engine.podspec"
|
|
34
|
+
pod 'hermes-engine', :podspec => "#{react_native_path}/sdks/hermes-engine/hermes-engine.podspec"
|
|
39
35
|
pod 'React-hermes', :path => "#{react_native_path}/ReactCommon/hermes"
|
|
40
36
|
pod 'libevent', '~> 2.1.12'
|
|
41
37
|
end
|
|
@@ -137,7 +137,7 @@ class ReactNativePodsUtils
|
|
|
137
137
|
|
|
138
138
|
# fix for weak linking
|
|
139
139
|
self.safe_init(config, other_ld_flags_key)
|
|
140
|
-
if self.
|
|
140
|
+
if self.is_using_xcode15_0(:xcodebuild_manager => xcodebuild_manager)
|
|
141
141
|
self.add_value_to_setting_if_missing(config, other_ld_flags_key, xcode15_compatibility_flags)
|
|
142
142
|
else
|
|
143
143
|
self.remove_value_from_setting_if_present(config, other_ld_flags_key, xcode15_compatibility_flags)
|
|
@@ -321,7 +321,7 @@ class ReactNativePodsUtils
|
|
|
321
321
|
end
|
|
322
322
|
end
|
|
323
323
|
|
|
324
|
-
def self.
|
|
324
|
+
def self.is_using_xcode15_0(xcodebuild_manager: Xcodebuild)
|
|
325
325
|
xcodebuild_version = xcodebuild_manager.version
|
|
326
326
|
|
|
327
327
|
# The output of xcodebuild -version is something like
|
|
@@ -332,7 +332,8 @@ class ReactNativePodsUtils
|
|
|
332
332
|
regex = /(\d+)\.(\d+)(?:\.(\d+))?/
|
|
333
333
|
if match_data = xcodebuild_version.match(regex)
|
|
334
334
|
major = match_data[1].to_i
|
|
335
|
-
|
|
335
|
+
minor = match_data[2].to_i
|
|
336
|
+
return major == 15 && minor == 0
|
|
336
337
|
end
|
|
337
338
|
|
|
338
339
|
return false
|
|
@@ -52,13 +52,9 @@ function build_host_hermesc {
|
|
|
52
52
|
|
|
53
53
|
# Utility function to configure an Apple framework
|
|
54
54
|
function configure_apple_framework {
|
|
55
|
-
local build_cli_tools
|
|
55
|
+
local build_cli_tools enable_debugger cmake_build_type xcode_15_flags xcode_major_version
|
|
56
|
+
|
|
56
57
|
|
|
57
|
-
if [[ $1 == iphoneos || $1 == catalyst ]]; then
|
|
58
|
-
enable_bitcode="true"
|
|
59
|
-
else
|
|
60
|
-
enable_bitcode="false"
|
|
61
|
-
fi
|
|
62
58
|
if [[ $1 == macosx ]]; then
|
|
63
59
|
build_cli_tools="true"
|
|
64
60
|
else
|
|
@@ -94,7 +90,7 @@ function configure_apple_framework {
|
|
|
94
90
|
-DHERMES_ENABLE_LIBFUZZER:BOOLEAN=false \
|
|
95
91
|
-DHERMES_ENABLE_FUZZILLI:BOOLEAN=false \
|
|
96
92
|
-DHERMES_ENABLE_TEST_SUITE:BOOLEAN=false \
|
|
97
|
-
-DHERMES_ENABLE_BITCODE:BOOLEAN=
|
|
93
|
+
-DHERMES_ENABLE_BITCODE:BOOLEAN=false \
|
|
98
94
|
-DHERMES_BUILD_APPLE_FRAMEWORK:BOOLEAN=true \
|
|
99
95
|
-DHERMES_BUILD_APPLE_DSYM:BOOLEAN=true \
|
|
100
96
|
-DHERMES_ENABLE_TOOLS:BOOLEAN="$build_cli_tools" \
|
|
Binary file
|
|
Binary file
|
package/template/package.json
CHANGED
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |spec|
|
|
|
10
10
|
spec.homepage = 'http://www.boost.org'
|
|
11
11
|
spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
|
|
12
12
|
spec.authors = 'Rene Rivera'
|
|
13
|
-
spec.source = { :http => 'https://
|
|
13
|
+
spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2',
|
|
14
14
|
:sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' }
|
|
15
15
|
|
|
16
16
|
# Pinning to the same version as React.podspec.
|