Skip to content

Commit 776013d

Browse files
committed
Merge branch '0.73-stable' of github.com:facebook/react-native into 0.73-stable
2 parents 666d7b3 + 1eb4bf0 commit 776013d

File tree

60 files changed

+1187
-919
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1187
-919
lines changed

packages/community-cli-plugin/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/community-cli-plugin",
3-
"version": "0.73.8",
3+
"version": "0.73.10",
44
"description": "Core CLI commands for React Native",
55
"keywords": [
66
"react-native",
@@ -22,9 +22,9 @@
2222
"dist"
2323
],
2424
"dependencies": {
25-
"@react-native/dev-middleware": "^0.73.4",
26-
"@react-native-community/cli-server-api": "12.0.0",
27-
"@react-native-community/cli-tools": "12.0.0",
25+
"@react-native/dev-middleware": "^0.73.5",
26+
"@react-native-community/cli-server-api": "12.1.1",
27+
"@react-native-community/cli-tools": "12.1.1",
2828
"@react-native/metro-babel-transformer": "^0.73.12",
2929
"chalk": "^4.0.0",
3030
"execa": "^5.1.1",

packages/dev-middleware/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/dev-middleware",
3-
"version": "0.73.4",
3+
"version": "0.73.5",
44
"description": "Dev server middleware for React Native",
55
"keywords": [
66
"react-native",

packages/dev-middleware/src/createDevMiddleware.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ type Options = $ReadOnly<{
6060
* This is an unstable API with no semver guarantees.
6161
*/
6262
unstable_experiments?: ExperimentsConfig,
63+
64+
/**
65+
* An interface for using a modified inspector proxy implementation.
66+
*
67+
* This is an unstable API with no semver guarantees.
68+
*/
69+
unstable_InspectorProxy?: Class<InspectorProxy>,
6370
}>;
6471

6572
type DevMiddlewareAPI = $ReadOnly<{
@@ -74,10 +81,12 @@ export default function createDevMiddleware({
7481
unstable_browserLauncher = DefaultBrowserLauncher,
7582
unstable_eventReporter,
7683
unstable_experiments: experimentConfig = {},
84+
unstable_InspectorProxy,
7785
}: Options): DevMiddlewareAPI {
7886
const experiments = getExperiments(experimentConfig);
7987

80-
const inspectorProxy = new InspectorProxy(
88+
const InspectorProxyClass = unstable_InspectorProxy ?? InspectorProxy;
89+
const inspectorProxy = new InspectorProxyClass(
8190
projectRoot,
8291
serverBaseUrl,
8392
unstable_eventReporter,

packages/dev-middleware/src/index.flow.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ export {default as createDevMiddleware} from './createDevMiddleware';
1313

1414
export type {BrowserLauncher, LaunchedBrowser} from './types/BrowserLauncher';
1515
export type {EventReporter, ReportableEvent} from './types/EventReporter';
16+
17+
export {default as unstable_InspectorProxy} from './inspector-proxy/InspectorProxy';
18+
export {default as unstable_Device} from './inspector-proxy/Device';

packages/react-native-codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/codegen",
3-
"version": "0.73.1",
3+
"version": "0.73.2",
44
"description": "Code generation tools for React Native",
55
"license": "MIT",
66
"repository": {

packages/react-native-gradle-plugin/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ gradlePlugin {
2626
id = "com.facebook.react"
2727
implementationClass = "com.facebook.react.ReactPlugin"
2828
}
29+
create("reactrootproject") {
30+
id = "com.facebook.react.rootproject"
31+
implementationClass = "com.facebook.react.ReactRootProjectPlugin"
32+
}
2933
}
3034
}
3135

packages/react-native-gradle-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/gradle-plugin",
3-
"version": "0.73.3",
3+
"version": "0.73.4",
44
"description": "Gradle Plugin for React Native",
55
"license": "MIT",
66
"repository": {
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
package com.facebook.react
9+
10+
import org.gradle.api.Plugin
11+
import org.gradle.api.Project
12+
13+
/**
14+
* Gradle plugin applied to the `android/build.gradle` file.
15+
*
16+
* This plugin allows to specify project wide configurations that can be applied to both apps and
17+
* libraries before they're evaluated.
18+
*/
19+
class ReactRootProjectPlugin : Plugin<Project> {
20+
override fun apply(project: Project) {
21+
project.subprojects {
22+
// As the :app project (i.e. ReactPlugin) configures both namespaces and JVM toolchains
23+
// for libraries, its evaluation must happen before the libraries' evaluation.
24+
// Eventually the configuration of namespace/JVM toolchain can be moved inside this plugin.
25+
if (it.path != ":app") {
26+
it.evaluationDependsOn(":app")
27+
}
28+
}
29+
}
30+
}

packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32'
2121

2222
is_new_arch_enabled = ENV["RCT_NEW_ARCH_ENABLED"] == "1"
2323
use_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == '1'
24-
use_frameworks = ENV['USE_FRAMEWORKS'] != nil
2524

2625
new_arch_enabled_flag = (is_new_arch_enabled ? " -DRCT_NEW_ARCH_ENABLED" : "")
2726
is_fabric_enabled = is_new_arch_enabled || ENV["RCT_FABRIC_ENABLED"]
@@ -43,21 +42,7 @@ header_search_paths = [
4342
].concat(use_hermes ? [
4443
"$(PODS_ROOT)/Headers/Public/React-hermes",
4544
"$(PODS_ROOT)/Headers/Public/hermes-engine"
46-
] : []).concat(use_frameworks ? [
47-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-Fabric/React_Fabric.framework/Headers/",
48-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx/",
49-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-graphics/React_graphics.framework/Headers/",
50-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios",
51-
"$(PODS_CONFIGURATION_BUILD_DIR)/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core",
52-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-NativeModulesApple/React_NativeModulesApple.framework/Headers",
53-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-RuntimeApple/React_RuntimeApple.framework/Headers",
54-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-RuntimeCore/React_RuntimeCore.framework/Headers",
55-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-RCTFabric/RCTFabric.framework/Headers/",
56-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-utils/React_utils.framework/Headers/",
57-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers/",
58-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-runtimescheduler/React_runtimescheduler.framework/Headers/",
59-
"$(PODS_CONFIGURATION_BUILD_DIR)/React-rendererdebug/React_rendererdebug.framework/Headers/",
60-
] : []).map{|p| "\"#{p}\""}.join(" ")
45+
] : [])
6146

6247
Pod::Spec.new do |s|
6348
s.name = "React-RCTAppDelegate"
@@ -87,18 +72,19 @@ Pod::Spec.new do |s|
8772
s.dependency "RCT-Folly"
8873
s.dependency "RCTRequired"
8974
s.dependency "RCTTypeSafety"
90-
s.dependency "ReactCommon/turbomodule/core"
9175
s.dependency "React-RCTNetwork"
9276
s.dependency "React-RCTImage"
93-
s.dependency "React-NativeModulesApple"
9477
s.dependency "React-CoreModules"
9578
s.dependency "React-nativeconfig"
96-
s.dependency "React-runtimescheduler"
97-
s.dependency "React-RCTFabric"
79+
80+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
81+
add_dependency(s, "React-NativeModulesApple")
82+
add_dependency(s, "React-runtimescheduler")
83+
add_dependency(s, "React-RCTFabric", :framework_name => "RCTFabric")
9884

9985
if is_new_arch_enabled
100-
s.dependency "React-RuntimeCore"
101-
s.dependency "React-RuntimeApple"
86+
add_dependency(s, "React-RuntimeCore")
87+
add_dependency(s, "React-RuntimeApple")
10288
if use_hermes
10389
s.dependency "React-RuntimeHermes"
10490
end
@@ -111,11 +97,15 @@ Pod::Spec.new do |s|
11197
end
11298

11399
if is_new_arch_enabled
114-
s.dependency "React-Fabric"
115-
s.dependency "React-graphics"
116-
s.dependency "React-utils"
117-
s.dependency "React-debug"
118-
s.dependency "React-rendererdebug"
100+
add_dependency(s, "React-Fabric", :additional_framework_paths => ["react/renderer/components/view/platform/cxx"])
101+
add_dependency(s, "React-graphics", :additional_framework_paths => ["react/renderer/graphics/platform/ios"])
102+
add_dependency(s, "React-utils")
103+
add_dependency(s, "React-debug")
104+
add_dependency(s, "React-rendererdebug")
105+
106+
rel_path_from_pods_root_to_app = Pathname.new(ENV['APP_PATH']).relative_path_from(Pod::Config.instance.installation_root)
107+
rel_path_from_pods_to_app = Pathname.new(ENV['APP_PATH']).relative_path_from(File.join(Pod::Config.instance.installation_root, 'Pods'))
108+
119109

120110
rel_path_from_pods_root_to_app = Pathname.new(ENV['APP_PATH']).relative_path_from(Pod::Config.instance.installation_root)
121111
rel_path_from_pods_to_app = Pathname.new(ENV['APP_PATH']).relative_path_from(File.join(Pod::Config.instance.installation_root, 'Pods'))

packages/react-native/Libraries/Blob/React-RCTBlob.podspec

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,8 @@ folly_version = '2022.05.16.00'
2222
header_search_paths = [
2323
"\"$(PODS_ROOT)/RCT-Folly\"",
2424
"\"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\"",
25-
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\""
2625
]
2726

28-
if ENV["USE_FRAMEWORKS"]
29-
header_search_paths = header_search_paths.concat([
30-
"\"$(PODS_CONFIGURATION_BUILD_DIR)/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core\"",
31-
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-NativeModulesApple/React_NativeModulesApple.framework/Headers\""
32-
])
33-
end
34-
3527
Pod::Spec.new do |s|
3628
s.name = "React-RCTBlob"
3729
s.version = version
@@ -52,12 +44,14 @@ Pod::Spec.new do |s|
5244
}
5345

5446
s.dependency "RCT-Folly", folly_version
55-
s.dependency "React-Codegen", version
56-
s.dependency "ReactCommon/turbomodule/core", version
57-
s.dependency "React-jsi", version
58-
s.dependency "React-Core/RCTBlobHeaders", version
59-
s.dependency "React-Core/RCTWebSocket", version
60-
s.dependency "React-RCTNetwork", version
47+
s.dependency "React-jsi"
48+
s.dependency "React-Core/RCTBlobHeaders"
49+
s.dependency "React-Core/RCTWebSocket"
50+
s.dependency "React-RCTNetwork"
51+
52+
add_dependency(s, "React-Codegen")
53+
add_dependency(s, "React-NativeModulesApple")
54+
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
6155

6256
if ENV["USE_HERMES"] == nil || ENV["USE_HERMES"] == "1"
6357
s.dependency "hermes-engine"

0 commit comments

Comments
 (0)