react-native 0.73.0-rc.2 → 0.73.0-rc.3
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/RCTAppDelegate.mm +1 -1
- package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +6 -2
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +2 -1
- package/Libraries/promiseRejectionTrackingOptions.js +21 -7
- package/React/Base/RCTBridgeProxy.mm +11 -3
- package/React/Base/RCTConstants.h +1 -1
- package/React/Base/RCTConstants.m +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/RCTSurfaceRootShadowView.h +1 -1
- package/React/Base/Surface/RCTSurfaceRootShadowView.m +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +1 -1
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/Modules/RCTUIManager.h +7 -0
- package/React/Modules/RCTUIManager.m +1 -1
- package/React/Views/RCTComponentData.m +1 -1
- package/React/Views/RCTLayout.h +1 -1
- package/React/Views/RCTRootShadowView.h +1 -1
- package/React/Views/RCTRootShadowView.m +1 -1
- package/React/Views/RCTShadowView.m +1 -1
- package/React/Views/ScrollView/RCTScrollView.m +1 -1
- package/React-Core.podspec +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.kt +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/{interfaces/ReactHost.kt → ReactHost.kt} +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/common/annotations/UnstableReactNativeAPI.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactHost.kt +58 -8
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactNativeHost.kt +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/DevLoadingModule.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessReactContext.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/CoreReactPackage.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/FabricViewStateManager.java +95 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +25 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +33 -23
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/hermes/executor/HermesExecutorFactory.cpp +10 -7
- package/ReactCommon/react/bridging/Object.h +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +8 -0
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +42 -10
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm +17 -17
- package/gradle/libs.versions.toml +1 -1
- package/package.json +4 -4
- package/scripts/cocoapods/utils.rb +4 -23
- package/scripts/codegen/generate-legacy-interop-components.js +8 -2
- package/sdks/hermes-engine/hermes-engine.podspec +7 -1
- package/sdks/hermes-engine/hermes-utils.rb +9 -6
- package/sdks/hermes-engine/utils/replace_hermes_version.js +8 -8
- 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/android/app/build.gradle +1 -1
- package/template/android/app/src/main/java/com/helloworld/MainApplication.kt +3 -10
- package/template/package.json +1 -1
- package/third-party-podspecs/glog.podspec +14 -1
|
@@ -52,8 +52,8 @@ function shouldReplaceHermesConfiguration(configuration) {
|
|
|
52
52
|
return true;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
function replaceHermesConfiguration(configuration, version,
|
|
56
|
-
const tarballURLPath = `${
|
|
55
|
+
function replaceHermesConfiguration(configuration, version, podsRoot) {
|
|
56
|
+
const tarballURLPath = `${podsRoot}/hermes-engine-artifacts/hermes-ios-${version}-${configuration}.tar.gz`;
|
|
57
57
|
|
|
58
58
|
const finalLocation = 'hermes-engine';
|
|
59
59
|
console.log('Preparing the final location');
|
|
@@ -68,7 +68,7 @@ function updateLastBuildConfiguration(configuration) {
|
|
|
68
68
|
fs.writeFileSync(LAST_BUILD_FILENAME, configuration);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
function main(configuration, version,
|
|
71
|
+
function main(configuration, version, podsRoot) {
|
|
72
72
|
validateBuildConfiguration(configuration);
|
|
73
73
|
validateVersion(version);
|
|
74
74
|
|
|
@@ -76,7 +76,7 @@ function main(configuration, version, reactNativePath) {
|
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
replaceHermesConfiguration(configuration, version,
|
|
79
|
+
replaceHermesConfiguration(configuration, version, podsRoot);
|
|
80
80
|
updateLastBuildConfiguration(configuration);
|
|
81
81
|
console.log('Done replacing hermes-engine');
|
|
82
82
|
}
|
|
@@ -94,13 +94,13 @@ const argv = yargs
|
|
|
94
94
|
'The Version of React Native associated with the Hermes tarball.',
|
|
95
95
|
})
|
|
96
96
|
.option('p', {
|
|
97
|
-
alias: '
|
|
98
|
-
description: 'The path to the
|
|
97
|
+
alias: 'podsRoot',
|
|
98
|
+
description: 'The path to the Pods root folder',
|
|
99
99
|
})
|
|
100
100
|
.usage('Usage: $0 -c Debug -r <version> -p <path/to/react-native>').argv;
|
|
101
101
|
|
|
102
102
|
const configuration = argv.configuration;
|
|
103
103
|
const version = argv.reactNativeVersion;
|
|
104
|
-
const
|
|
104
|
+
const podsRoot = argv.podsRoot;
|
|
105
105
|
|
|
106
|
-
main(configuration, version,
|
|
106
|
+
main(configuration, version, podsRoot);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -3,17 +3,15 @@ package com.helloworld
|
|
|
3
3
|
import android.app.Application
|
|
4
4
|
import com.facebook.react.PackageList
|
|
5
5
|
import com.facebook.react.ReactApplication
|
|
6
|
+
import com.facebook.react.ReactHost
|
|
6
7
|
import com.facebook.react.ReactNativeHost
|
|
7
8
|
import com.facebook.react.ReactPackage
|
|
8
|
-
import com.facebook.react.common.annotations.UnstableReactNativeAPI
|
|
9
9
|
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
|
|
10
|
-
import com.facebook.react.defaults.DefaultReactHost
|
|
10
|
+
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
|
11
11
|
import com.facebook.react.defaults.DefaultReactNativeHost
|
|
12
12
|
import com.facebook.react.flipper.ReactNativeFlipper
|
|
13
|
-
import com.facebook.react.interfaces.ReactHost
|
|
14
13
|
import com.facebook.soloader.SoLoader
|
|
15
14
|
|
|
16
|
-
@UnstableReactNativeAPI
|
|
17
15
|
class MainApplication : Application(), ReactApplication {
|
|
18
16
|
|
|
19
17
|
override val reactNativeHost: ReactNativeHost =
|
|
@@ -33,12 +31,7 @@ class MainApplication : Application(), ReactApplication {
|
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
override val reactHost: ReactHost
|
|
36
|
-
get() =
|
|
37
|
-
DefaultReactHost.getDefaultReactHost(
|
|
38
|
-
context = this,
|
|
39
|
-
packageList = PackageList(this).packages,
|
|
40
|
-
jsMainModulePath = "index",
|
|
41
|
-
isHermesEnabled = BuildConfig.IS_HERMES_ENABLED)
|
|
34
|
+
get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
|
|
42
35
|
|
|
43
36
|
override fun onCreate() {
|
|
44
37
|
super.onCreate()
|
package/template/package.json
CHANGED
|
@@ -29,10 +29,23 @@ Pod::Spec.new do |spec|
|
|
|
29
29
|
'src/base/*.h'
|
|
30
30
|
spec.exclude_files = "src/windows/**/*"
|
|
31
31
|
spec.compiler_flags = '-Wno-shorten-64-to-32'
|
|
32
|
+
|
|
33
|
+
# TODO: T167482718 Remove this code after April 2024, when Apple will
|
|
34
|
+
# push the lower version of Xcode required to upload apps to the Store.
|
|
35
|
+
xcode_path = `xcodebuild -version` # This return the current version of Xcode
|
|
36
|
+
|
|
37
|
+
match = xcode_path.match(/Xcode (\d+)\.(\d+)/)
|
|
38
|
+
major_version = match[1].to_i
|
|
39
|
+
minor_version = match[2].to_i
|
|
40
|
+
is_greater_than_15 = major_version >= 15
|
|
41
|
+
is_greater_than_14_3 = major_version == 14 && minor_version >= 3
|
|
42
|
+
should_define_modules = is_greater_than_15 ? "YES" : is_greater_than_14_3 ? "YES" : "NO"
|
|
43
|
+
# End TODO.
|
|
44
|
+
|
|
32
45
|
spec.pod_target_xcconfig = {
|
|
33
46
|
"USE_HEADERMAP" => "NO",
|
|
34
47
|
"HEADER_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/src",
|
|
35
|
-
"DEFINES_MODULE" => "YES"
|
|
48
|
+
"DEFINES_MODULE" => should_define_modules # When the workaround is removed, set this var to "YES"
|
|
36
49
|
}
|
|
37
50
|
|
|
38
51
|
# Pinning to the same version as React.podspec.
|