react-native 0.74.0-rc.6 → 0.74.0-rc.7
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/AppDelegate/RCTRootViewFactory.h +1 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +4 -4
- package/React/Modules/RCTUIManager.m +10 -0
- 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/jserrorhandler/React-jserrorhandler.podspec +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +4 -1
- package/ReactCommon/react/runtime/React-RuntimeCore.podspec +1 -1
- package/ReactCommon/yoga/Yoga.podspec +4 -1
- package/package.json +8 -8
- package/scripts/cocoapods/utils.rb +1 -1
- package/sdks/hermes-engine/utils/build-apple-framework.sh +0 -2
- package/sdks/hermes-engine/utils/build-ios-framework.sh +4 -1
- package/sdks/hermes-engine/utils/build-mac-framework.sh +4 -1
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/template/package.json +5 -5
|
@@ -107,7 +107,7 @@ typedef RCTBridge *_Nonnull (
|
|
|
107
107
|
*
|
|
108
108
|
* @parameter: moduleName - the name of the app, used by Metro to resolve the module.
|
|
109
109
|
* @parameter: initialProperties - a set of initial properties.
|
|
110
|
-
* @parameter:
|
|
110
|
+
* @parameter: launchOptions - a dictionary with a set of options.
|
|
111
111
|
*/
|
|
112
112
|
- (UIView *_Nonnull)viewWithModuleName:(NSString *)moduleName
|
|
113
113
|
initialProperties:(NSDictionary *__nullable)initialProperties
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -89,6 +89,9 @@ RCT_EXPORT_MODULE()
|
|
|
89
89
|
|
|
90
90
|
- (void)invalidate
|
|
91
91
|
{
|
|
92
|
+
if (_invalidated) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
92
95
|
_invalidated = YES;
|
|
93
96
|
[self _cleanupObservers];
|
|
94
97
|
}
|
|
@@ -109,10 +112,7 @@ RCT_EXPORT_MODULE()
|
|
|
109
112
|
|
|
110
113
|
[[NSNotificationCenter defaultCenter] removeObserver:self name:RCTWindowFrameDidChangeNotification object:nil];
|
|
111
114
|
|
|
112
|
-
[[NSNotificationCenter defaultCenter]
|
|
113
|
-
selector:@selector(invalidate)
|
|
114
|
-
name:RCTBridgeWillInvalidateModulesNotification
|
|
115
|
-
object:nil];
|
|
115
|
+
[[NSNotificationCenter defaultCenter] removeObserver:self name:RCTBridgeWillInvalidateModulesNotification object:nil];
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
static BOOL RCTIsIPhoneNotched()
|
|
@@ -1680,6 +1680,16 @@ static UIView *_jsResponder;
|
|
|
1680
1680
|
return self;
|
|
1681
1681
|
}
|
|
1682
1682
|
|
|
1683
|
+
- (NSUInteger)count
|
|
1684
|
+
{
|
|
1685
|
+
return self->_registry.count;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
- (NSEnumerator *)keyEnumerator
|
|
1689
|
+
{
|
|
1690
|
+
return self->_registry.keyEnumerator;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1683
1693
|
- (id)objectForKey:(id)key
|
|
1684
1694
|
{
|
|
1685
1695
|
if (![key isKindOfClass:[NSNumber class]]) {
|
|
@@ -219,7 +219,10 @@ static jsi::Value convertJSErrorDetailsToJSRuntimeError(jsi::Runtime &runtime, N
|
|
|
219
219
|
NSString *message = jsErrorDetails[@"message"];
|
|
220
220
|
|
|
221
221
|
auto jsError = createJSRuntimeError(runtime, [message UTF8String]);
|
|
222
|
-
|
|
222
|
+
for (NSString *key in jsErrorDetails) {
|
|
223
|
+
id value = jsErrorDetails[key];
|
|
224
|
+
jsError.asObject(runtime).setProperty(runtime, [key UTF8String], convertObjCObjectToJSIValue(runtime, value));
|
|
225
|
+
}
|
|
223
226
|
|
|
224
227
|
return jsError;
|
|
225
228
|
}
|
|
@@ -32,7 +32,10 @@ Pod::Spec.new do |spec|
|
|
|
32
32
|
spec.requires_arc = false
|
|
33
33
|
spec.pod_target_xcconfig = {
|
|
34
34
|
'DEFINES_MODULE' => 'YES'
|
|
35
|
-
}
|
|
35
|
+
}.merge!(ENV['USE_FRAMEWORKS'] != nil ? {
|
|
36
|
+
'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"'
|
|
37
|
+
} : {})
|
|
38
|
+
|
|
36
39
|
spec.compiler_flags = [
|
|
37
40
|
'-fno-omit-frame-pointer',
|
|
38
41
|
'-fexceptions',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.74.0-rc.
|
|
3
|
+
"version": "0.74.0-rc.7",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
"@react-native-community/cli": "13.6.4",
|
|
111
111
|
"@react-native-community/cli-platform-android": "13.6.4",
|
|
112
112
|
"@react-native-community/cli-platform-ios": "13.6.4",
|
|
113
|
-
"@react-native/assets-registry": "0.74.
|
|
114
|
-
"@react-native/codegen": "0.74.
|
|
115
|
-
"@react-native/community-cli-plugin": "0.74.
|
|
116
|
-
"@react-native/gradle-plugin": "0.74.
|
|
117
|
-
"@react-native/js-polyfills": "0.74.
|
|
118
|
-
"@react-native/normalize-colors": "0.74.
|
|
119
|
-
"@react-native/virtualized-lists": "0.74.
|
|
113
|
+
"@react-native/assets-registry": "0.74.78",
|
|
114
|
+
"@react-native/codegen": "0.74.78",
|
|
115
|
+
"@react-native/community-cli-plugin": "0.74.78",
|
|
116
|
+
"@react-native/gradle-plugin": "0.74.78",
|
|
117
|
+
"@react-native/js-polyfills": "0.74.78",
|
|
118
|
+
"@react-native/normalize-colors": "0.74.78",
|
|
119
|
+
"@react-native/virtualized-lists": "0.74.78",
|
|
120
120
|
"abort-controller": "^3.0.0",
|
|
121
121
|
"anser": "^1.4.9",
|
|
122
122
|
"ansi-regex": "^5.0.0",
|
|
@@ -189,7 +189,7 @@ class ReactNativePodsUtils
|
|
|
189
189
|
installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
|
|
190
190
|
if pod_name.to_s == target_pod_name
|
|
191
191
|
target_installation_result.native_target.build_configurations.each do |config|
|
|
192
|
-
if configuration == nil || (configuration != nil &&
|
|
192
|
+
if configuration == nil || (configuration != nil && config.name.include?(configuration))
|
|
193
193
|
config.build_settings[settings_name] ||= '$(inherited) '
|
|
194
194
|
config.build_settings[settings_name] << settings_value
|
|
195
195
|
end
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
# Defines functions for building various Hermes frameworks.
|
|
8
8
|
# See build-ios-framework.sh and build-mac-framework.sh for usage examples.
|
|
9
9
|
|
|
10
|
-
set -x -e
|
|
11
|
-
|
|
12
10
|
CURR_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
13
11
|
|
|
14
12
|
IMPORT_HERMESC_PATH=${HERMES_OVERRIDE_HERMESC_PATH:-$PWD/build_host_hermesc/ImportHermesc.cmake}
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
# This source code is licensed under the MIT license found in the
|
|
5
5
|
# LICENSE file in the root directory of this source tree.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
if [ "$CI" ]; then
|
|
8
|
+
set -x
|
|
9
|
+
fi
|
|
10
|
+
set -e
|
|
8
11
|
|
|
9
12
|
# Given a specific target, retrieve the right architecture for it
|
|
10
13
|
# $1 the target you want to build. Allowed values: iphoneos, iphonesimulator, catalyst
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
# This source code is licensed under the MIT license found in the
|
|
5
5
|
# LICENSE file in the root directory of this source tree.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
if [ "$CI" ]; then
|
|
8
|
+
set -x
|
|
9
|
+
fi
|
|
10
|
+
set -e
|
|
8
11
|
|
|
9
12
|
# shellcheck source=xplat/js/react-native-github/sdks/hermes-engine/utils/build-apple-framework.sh
|
|
10
13
|
CURR_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/template/package.json
CHANGED
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"react": "18.2.0",
|
|
14
|
-
"react-native": "0.74.0-rc.
|
|
14
|
+
"react-native": "0.74.0-rc.7"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/core": "^7.20.0",
|
|
18
18
|
"@babel/preset-env": "^7.20.0",
|
|
19
19
|
"@babel/runtime": "^7.20.0",
|
|
20
|
-
"@react-native/babel-preset": "0.74.
|
|
21
|
-
"@react-native/eslint-config": "0.74.
|
|
22
|
-
"@react-native/metro-config": "0.74.
|
|
23
|
-
"@react-native/typescript-config": "0.74.
|
|
20
|
+
"@react-native/babel-preset": "0.74.78",
|
|
21
|
+
"@react-native/eslint-config": "0.74.78",
|
|
22
|
+
"@react-native/metro-config": "0.74.78",
|
|
23
|
+
"@react-native/typescript-config": "0.74.78",
|
|
24
24
|
"@types/react": "^18.2.6",
|
|
25
25
|
"@types/react-test-renderer": "^18.0.0",
|
|
26
26
|
"babel-jest": "^29.6.3",
|