react-native 0.73.0-rc.3 → 0.73.0-rc.5
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/Animated/nodes/AnimatedStyle.js +1 -1
- package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +13 -27
- package/Libraries/Blob/React-RCTBlob.podspec +8 -14
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/React-RCTImage.podspec +9 -13
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +4 -12
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +7 -13
- package/Libraries/Network/React-RCTNetwork.podspec +7 -17
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +7 -13
- package/Libraries/Settings/React-RCTSettings.podspec +7 -16
- package/Libraries/Vibration/React-RCTVibration.podspec +6 -14
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/React-CoreModules.podspec +4 -8
- package/React/Modules/RCTUIManager.m +4 -1
- package/React/React-RCTFabric.podspec +27 -31
- package/React-Core.podspec +1 -9
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +0 -11
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/DevLoadingModule.java +3 -9
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/JSTimerExecutor.java +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.java +41 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +4 -29
- package/ReactCommon/React-Fabric.podspec +12 -13
- package/ReactCommon/React-FabricImage.podspec +14 -14
- package/ReactCommon/React-Mapbuffer.podspec +2 -2
- package/ReactCommon/React-rncore.podspec +2 -3
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +7 -4
- package/ReactCommon/jsi/React-jsi.podspec +8 -2
- package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +3 -1
- package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +18 -6
- package/ReactCommon/react/renderer/attributedstring/conversions.h +6 -0
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +23 -3
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +4 -0
- package/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +2 -3
- package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +11 -16
- package/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +6 -4
- package/ReactCommon/react/runtime/React-RuntimeHermes.podspec +2 -1
- package/ReactCommon/react/utils/React-utils.podspec +2 -5
- package/gradle/libs.versions.toml +1 -1
- package/package.json +10 -10
- package/scripts/cocoapods/codegen_utils.rb +16 -17
- package/scripts/cocoapods/new_architecture.rb +15 -12
- package/scripts/cocoapods/utils.rb +75 -25
- package/scripts/react_native_pods.rb +36 -1
- package/sdks/.hermesversion +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +1 -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 +2 -2
- package/ReactCommon/jsinspector/.clang-tidy +0 -6
- package/ReactCommon/jsinspector/InspectorInterfaces.cpp +0 -106
- package/ReactCommon/jsinspector/InspectorInterfaces.h +0 -92
|
@@ -26,7 +26,9 @@ Pod::Spec.new do |s|
|
|
|
26
26
|
"\"$(PODS_TARGET_SRCROOT)/../../../\"",
|
|
27
27
|
"\"$(PODS_TARGET_SRCROOT)\"",
|
|
28
28
|
"\"$(PODS_ROOT)/RCT-Folly\"",
|
|
29
|
-
|
|
29
|
+
"\"$(PODS_ROOT)/DoubleConversion\"",
|
|
30
|
+
"\"$(PODS_ROOT)/fmt/include\"",
|
|
31
|
+
].join(" ")
|
|
30
32
|
|
|
31
33
|
s.name = "React-ImageManager"
|
|
32
34
|
s.version = version
|
|
@@ -43,31 +45,24 @@ Pod::Spec.new do |s|
|
|
|
43
45
|
if ENV['USE_FRAMEWORKS']
|
|
44
46
|
s.module_name = "React_ImageManager"
|
|
45
47
|
s.header_mappings_dir = "./"
|
|
46
|
-
header_search_paths = header_search_paths + [
|
|
47
|
-
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers\"",
|
|
48
|
-
"\"$(PODS_ROOT)/DoubleConversion\"",
|
|
49
|
-
"\"$(PODS_ROOT)/fmt/include\"",
|
|
50
|
-
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers\"",
|
|
51
|
-
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios\"",
|
|
52
|
-
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-debug/React_debug.framework/Headers\"",
|
|
53
|
-
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-utils/React_utils.framework/Headers\"",
|
|
54
|
-
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-rendererdebug/React_rendererdebug.framework/Headers/\"",
|
|
55
|
-
]
|
|
56
48
|
end
|
|
57
49
|
|
|
58
50
|
s.pod_target_xcconfig = {
|
|
59
51
|
"USE_HEADERMAP" => "NO",
|
|
60
|
-
"HEADER_SEARCH_PATHS" => header_search_paths
|
|
52
|
+
"HEADER_SEARCH_PATHS" => header_search_paths,
|
|
61
53
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
|
62
54
|
"DEFINES_MODULE" => "YES",
|
|
63
55
|
}
|
|
64
56
|
|
|
65
57
|
s.dependency "RCT-Folly/Fabric"
|
|
66
|
-
s.dependency "React-Fabric"
|
|
67
58
|
s.dependency "React-Core/Default"
|
|
68
59
|
s.dependency "React-RCTImage"
|
|
69
|
-
s.dependency "React-debug"
|
|
70
|
-
s.dependency "React-rendererdebug"
|
|
71
|
-
s.dependency "React-utils"
|
|
72
60
|
s.dependency "glog"
|
|
61
|
+
|
|
62
|
+
add_dependency(s, "React-Fabric")
|
|
63
|
+
add_dependency(s, "React-graphics", :additional_framework_paths => ["react/renderer/graphics/platform/ios"])
|
|
64
|
+
add_dependency(s, "React-debug")
|
|
65
|
+
add_dependency(s, "React-utils")
|
|
66
|
+
add_dependency(s, "React-rendererdebug")
|
|
67
|
+
|
|
73
68
|
end
|
|
@@ -25,8 +25,7 @@ header_search_paths = [
|
|
|
25
25
|
]
|
|
26
26
|
|
|
27
27
|
if ENV['USE_FRAMEWORKS']
|
|
28
|
-
header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" #this is needed to allow the RuntimeScheduler access its own files
|
|
29
|
-
header_search_paths << "\"${PODS_CONFIGURATION_BUILD_DIR}/React-debug/React_debug.framework/Headers\""
|
|
28
|
+
header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the RuntimeScheduler access its own files
|
|
30
29
|
end
|
|
31
30
|
|
|
32
31
|
Pod::Spec.new do |s|
|
|
@@ -51,17 +50,20 @@ Pod::Spec.new do |s|
|
|
|
51
50
|
s.header_mappings_dir = "../../.."
|
|
52
51
|
end
|
|
53
52
|
|
|
54
|
-
s.dependency "React-jsi"
|
|
55
53
|
s.dependency "React-runtimeexecutor"
|
|
56
54
|
s.dependency "React-callinvoker"
|
|
57
|
-
s.dependency "React-
|
|
55
|
+
s.dependency "React-cxxreact"
|
|
58
56
|
s.dependency "React-rendererdebug"
|
|
59
57
|
s.dependency "React-utils"
|
|
60
58
|
s.dependency "glog"
|
|
61
59
|
s.dependency "RCT-Folly", folly_version
|
|
60
|
+
s.dependency "React-jsi"
|
|
61
|
+
add_dependency(s, "React-debug")
|
|
62
62
|
|
|
63
63
|
if ENV["USE_HERMES"] == nil || ENV["USE_HERMES"] == "1"
|
|
64
64
|
s.dependency "hermes-engine"
|
|
65
|
+
else
|
|
66
|
+
s.dependency "React-jsc"
|
|
65
67
|
end
|
|
66
68
|
|
|
67
69
|
end
|
|
@@ -44,9 +44,10 @@ Pod::Spec.new do |s|
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
s.dependency folly_dep_name, folly_version
|
|
47
|
-
s.dependency "React-jsi"
|
|
48
47
|
s.dependency "React-nativeconfig"
|
|
49
48
|
s.dependency "React-jsitracing"
|
|
49
|
+
s.dependency "React-utils"
|
|
50
|
+
s.dependency "React-jsi"
|
|
50
51
|
|
|
51
52
|
if ENV["USE_HERMES"] == nil || ENV["USE_HERMES"] == "1"
|
|
52
53
|
s.dependency "hermes-engine"
|
|
@@ -25,10 +25,6 @@ header_search_paths = [
|
|
|
25
25
|
"\"$(PODS_TARGET_SRCROOT)/ReactCommon\"",
|
|
26
26
|
]
|
|
27
27
|
|
|
28
|
-
if ENV["USE_FRAMEWORKS"]
|
|
29
|
-
header_search_paths << "\"${PODS_CONFIGURATION_BUILD_DIR}/React-debug/React_debug.framework/Headers\""
|
|
30
|
-
end
|
|
31
|
-
|
|
32
28
|
Pod::Spec.new do |s|
|
|
33
29
|
s.name = "React-utils"
|
|
34
30
|
s.version = version
|
|
@@ -52,6 +48,7 @@ Pod::Spec.new do |s|
|
|
|
52
48
|
end
|
|
53
49
|
|
|
54
50
|
s.dependency "RCT-Folly", folly_version
|
|
55
|
-
s.dependency "React-debug"
|
|
56
51
|
s.dependency "glog"
|
|
52
|
+
|
|
53
|
+
add_dependency(s, "React-debug")
|
|
57
54
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.73.0-rc.
|
|
3
|
+
"version": "0.73.0-rc.5",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -93,29 +93,29 @@
|
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"@jest/create-cache-key-function": "^29.6.3",
|
|
96
|
-
"@react-native-community/cli": "12.0.0
|
|
97
|
-
"@react-native-community/cli-platform-android": "12.0.0
|
|
98
|
-
"@react-native-community/cli-platform-ios": "12.0.0
|
|
96
|
+
"@react-native-community/cli": "12.0.0",
|
|
97
|
+
"@react-native-community/cli-platform-android": "12.0.0",
|
|
98
|
+
"@react-native-community/cli-platform-ios": "12.0.0",
|
|
99
99
|
"@react-native/assets-registry": "^0.73.1",
|
|
100
|
-
"@react-native/community-cli-plugin": "^0.73.
|
|
100
|
+
"@react-native/community-cli-plugin": "^0.73.9",
|
|
101
101
|
"@react-native/codegen": "^0.73.1",
|
|
102
|
-
"@react-native/gradle-plugin": "^0.73.
|
|
102
|
+
"@react-native/gradle-plugin": "^0.73.3",
|
|
103
103
|
"@react-native/js-polyfills": "^0.73.1",
|
|
104
104
|
"@react-native/normalize-colors": "^0.73.2",
|
|
105
|
-
"@react-native/virtualized-lists": "^0.73.
|
|
105
|
+
"@react-native/virtualized-lists": "^0.73.3",
|
|
106
106
|
"abort-controller": "^3.0.0",
|
|
107
107
|
"anser": "^1.4.9",
|
|
108
108
|
"ansi-regex": "^5.0.0",
|
|
109
109
|
"base64-js": "^1.5.1",
|
|
110
|
-
"deprecated-react-native-prop-types": "
|
|
110
|
+
"deprecated-react-native-prop-types": "^5.0.0",
|
|
111
111
|
"event-target-shim": "^5.0.1",
|
|
112
112
|
"flow-enums-runtime": "^0.0.6",
|
|
113
113
|
"invariant": "^2.2.4",
|
|
114
114
|
"jest-environment-node": "^29.6.3",
|
|
115
115
|
"jsc-android": "^250231.0.0",
|
|
116
116
|
"memoize-one": "^5.0.0",
|
|
117
|
-
"metro-runtime": "0.
|
|
118
|
-
"metro-source-map": "0.
|
|
117
|
+
"metro-runtime": "^0.80.0",
|
|
118
|
+
"metro-source-map": "^0.80.0",
|
|
119
119
|
"mkdirp": "^0.5.1",
|
|
120
120
|
"nullthrows": "^1.1.1",
|
|
121
121
|
"pretty-format": "^26.5.2",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
# LICENSE file in the root directory of this source tree.
|
|
5
5
|
|
|
6
6
|
require 'json'
|
|
7
|
+
require_relative './utils.rb'
|
|
7
8
|
require_relative './helpers.rb'
|
|
8
9
|
require_relative './codegen_script_phase_extractor.rb'
|
|
9
10
|
|
|
@@ -86,27 +87,25 @@ class CodegenUtils
|
|
|
86
87
|
"\"$(PODS_ROOT)/Headers/Private/React-Fabric\"",
|
|
87
88
|
"\"$(PODS_ROOT)/Headers/Private/React-RCTFabric\"",
|
|
88
89
|
"\"$(PODS_ROOT)/Headers/Private/Yoga\"",
|
|
90
|
+
"\"$(PODS_ROOT)/DoubleConversion\"",
|
|
91
|
+
"\"$(PODS_ROOT)/fmt/include\"",
|
|
92
|
+
"\"$(PODS_TARGET_SRCROOT)\"",
|
|
89
93
|
]
|
|
90
94
|
framework_search_paths = []
|
|
91
95
|
|
|
92
96
|
if use_frameworks
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-RCTFabric/RCTFabric.framework/Headers\"",
|
|
106
|
-
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\"",
|
|
107
|
-
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-rendererdebug/React_rendererdebug.framework/Headers\"",
|
|
108
|
-
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-utils/React_utils.framework/Headers\"",
|
|
109
|
-
])
|
|
97
|
+
ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Fabric", "React_Fabric", ["react/renderer/components/view/platform/cxx"])
|
|
98
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-FabricImage", "React_FabricImage", []))
|
|
99
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-graphics", "React_graphics", ["react/renderer/graphics/platform/ios"]))
|
|
100
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "ReactCommon", "ReactCommon", ["react/nativemodule/core"]))
|
|
101
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-NativeModulesApple", "React_NativeModulesApple", []))
|
|
102
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-RCTFabric", "RCTFabric", []))
|
|
103
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-debug", "React_debug", []))
|
|
104
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-rendererdebug", "React_rendererdebug", []))
|
|
105
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-utils", "React_utils", []))
|
|
106
|
+
.each { |search_path|
|
|
107
|
+
header_search_paths << "\"#{search_path}\""
|
|
108
|
+
}
|
|
110
109
|
end
|
|
111
110
|
|
|
112
111
|
spec = {
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
require 'json'
|
|
7
7
|
|
|
8
|
+
require_relative "./utils"
|
|
9
|
+
|
|
8
10
|
class NewArchitectureHelper
|
|
9
11
|
@@shared_flags = "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1"
|
|
10
12
|
|
|
@@ -106,18 +108,19 @@ class NewArchitectureHelper
|
|
|
106
108
|
if ENV['USE_FRAMEWORKS']
|
|
107
109
|
header_search_paths << "\"$(PODS_ROOT)/DoubleConversion\""
|
|
108
110
|
header_search_paths << "\"$(PODS_ROOT)/fmt/include\""
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
111
|
+
ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-graphics", "React_graphics", ["react/renderer/graphics/platform/ios"])
|
|
112
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Fabric", "React_Fabric", ["react/renderer/components/view/platform/cxx"]))
|
|
113
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-FabricImage", "React_FabricImage", []))
|
|
114
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "ReactCommon", "ReactCommon", ["react/nativemodule/core"]))
|
|
115
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-NativeModulesApple", "React_NativeModulesApple", []))
|
|
116
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-RCTFabric", "RCTFabric", []))
|
|
117
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-utils", "React_utils", []))
|
|
118
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-debug", "React_debug", []))
|
|
119
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-ImageManager", "React_ImageManager", []))
|
|
120
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-rendererdebug", "React_rendererdebug", []))
|
|
121
|
+
.each { |search_path|
|
|
122
|
+
header_search_paths << "\"#{search_path}\""
|
|
123
|
+
}
|
|
121
124
|
end
|
|
122
125
|
header_search_paths_string = header_search_paths.join(" ")
|
|
123
126
|
spec.compiler_flags = compiler_flags.empty? ? @@folly_compiler_flags : "#{compiler_flags} #{@@folly_compiler_flags}"
|
|
@@ -254,6 +254,46 @@ class ReactNativePodsUtils
|
|
|
254
254
|
end
|
|
255
255
|
end
|
|
256
256
|
|
|
257
|
+
def self.create_header_search_path_for_frameworks(base_folder, pod_name, framework_name, additional_paths, include_base_path = true)
|
|
258
|
+
platforms = $RN_PLATFORMS != nil ? $RN_PLATFORMS : []
|
|
259
|
+
search_paths = []
|
|
260
|
+
|
|
261
|
+
if platforms.empty?() || platforms.length() == 1
|
|
262
|
+
base_path = File.join("${#{base_folder}}", pod_name, "#{framework_name}.framework", "Headers")
|
|
263
|
+
self.add_search_path_to_result(search_paths, base_path, additional_paths, include_base_path)
|
|
264
|
+
else
|
|
265
|
+
platforms.each { |platform|
|
|
266
|
+
base_path = File.join("${#{base_folder}}", "#{pod_name}-#{platform}", "#{framework_name}.framework", "Headers")
|
|
267
|
+
self.add_search_path_to_result(search_paths, base_path, additional_paths, include_base_path)
|
|
268
|
+
}
|
|
269
|
+
end
|
|
270
|
+
return search_paths
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Add a new dependency to an existing spec, configuring also the headers search paths
|
|
274
|
+
def self.add_dependency(spec, dependency_name, base_folder_for_frameworks, framework_name, additional_paths: [], version: nil, subspec_dependency: nil)
|
|
275
|
+
# Update Search Path
|
|
276
|
+
optional_current_search_path = spec.to_hash["pod_target_xcconfig"]["HEADER_SEARCH_PATHS"]
|
|
277
|
+
current_search_paths = (optional_current_search_path != nil ? optional_current_search_path : "")
|
|
278
|
+
.split(" ")
|
|
279
|
+
create_header_search_path_for_frameworks(base_folder_for_frameworks, dependency_name, framework_name, additional_paths)
|
|
280
|
+
.each { |path|
|
|
281
|
+
wrapped_path = "\"#{path}\""
|
|
282
|
+
current_search_paths << wrapped_path
|
|
283
|
+
}
|
|
284
|
+
current_pod_target_xcconfig = spec.to_hash["pod_target_xcconfig"]
|
|
285
|
+
current_pod_target_xcconfig["HEADER_SEARCH_PATHS"] = current_search_paths.join(" ")
|
|
286
|
+
spec.pod_target_xcconfig = current_pod_target_xcconfig
|
|
287
|
+
|
|
288
|
+
actual_dependency = subspec_dependency != nil ? "#{dependency_name}/#{subspec_dependency}" : dependency_name
|
|
289
|
+
# Set Dependency
|
|
290
|
+
if !version
|
|
291
|
+
spec.dependency actual_dependency
|
|
292
|
+
else
|
|
293
|
+
spec.dependency actual_dependency, version
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
|
|
257
297
|
def self.update_search_paths(installer)
|
|
258
298
|
return if ENV['USE_FRAMEWORKS'] == nil
|
|
259
299
|
|
|
@@ -264,12 +304,14 @@ class ReactNativePodsUtils
|
|
|
264
304
|
|
|
265
305
|
header_search_paths = config.build_settings["HEADER_SEARCH_PATHS"] ||= "$(inherited)"
|
|
266
306
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
307
|
+
ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "ReactCommon", "ReactCommon", ["react/nativemodule/core"])
|
|
308
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "ReactCommon-Samples", "ReactCommon_Samples", ["platform/ios"]))
|
|
309
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Fabric", "React_Fabric", ["react/renderer/components/view/platform/cxx"], false))
|
|
310
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-NativeModulesApple", "React_NativeModulesApple", []))
|
|
311
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-graphics", "React_graphics", ["react/renderer/graphics/platform/ios"]))
|
|
312
|
+
.each{ |search_path|
|
|
313
|
+
header_search_paths = self.add_search_path_if_not_included(header_search_paths, search_path)
|
|
314
|
+
}
|
|
273
315
|
|
|
274
316
|
config.build_settings["HEADER_SEARCH_PATHS"] = header_search_paths
|
|
275
317
|
end
|
|
@@ -469,34 +511,31 @@ class ReactNativePodsUtils
|
|
|
469
511
|
end
|
|
470
512
|
|
|
471
513
|
def self.set_codegen_search_paths(target_installation_result)
|
|
472
|
-
ReactNativePodsUtils.
|
|
473
|
-
"\"
|
|
474
|
-
|
|
514
|
+
header_search_paths = ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Codegen", "React_Codegen", [])
|
|
515
|
+
.map { |search_path| "\"#{search_path}\"" }
|
|
516
|
+
ReactNativePodsUtils.update_header_paths_if_depends_on(target_installation_result, "React-Codegen", header_search_paths)
|
|
475
517
|
end
|
|
476
518
|
|
|
477
519
|
def self.set_reactcommon_searchpaths(target_installation_result)
|
|
478
|
-
ReactNativePodsUtils.
|
|
479
|
-
"\"
|
|
480
|
-
|
|
481
|
-
])
|
|
482
|
-
|
|
520
|
+
header_search_paths = ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "ReactCommon", "ReactCommon", ["react/nativemodule/core"])
|
|
521
|
+
.map { |search_path| "\"#{search_path}\"" }
|
|
522
|
+
ReactNativePodsUtils.update_header_paths_if_depends_on(target_installation_result, "ReactCommon", header_search_paths)
|
|
483
523
|
end
|
|
484
524
|
|
|
485
525
|
def self.set_rctfabric_search_paths(target_installation_result)
|
|
486
|
-
ReactNativePodsUtils.
|
|
487
|
-
"
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"\"
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
])
|
|
526
|
+
header_search_paths = ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-RCTFabric", "RCTFabric", [])
|
|
527
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Fabric", "React_Fabric", ["react/renderer/components/view/platform/cxx"]))
|
|
528
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-FabricImage", "React_FabricImage", []))
|
|
529
|
+
.concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Graphics", "React_graphics", ["react/renderer/graphics/platform/ios"]))
|
|
530
|
+
.map { |search_path| "\"#{search_path}\"" }
|
|
531
|
+
|
|
532
|
+
ReactNativePodsUtils.update_header_paths_if_depends_on(target_installation_result, "React-RCTFabric", header_search_paths)
|
|
494
533
|
end
|
|
495
534
|
|
|
496
535
|
def self.set_imagemanager_search_path(target_installation_result)
|
|
497
|
-
ReactNativePodsUtils.
|
|
498
|
-
"\"
|
|
499
|
-
|
|
536
|
+
header_search_paths = ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Fabric", "React_Fabric", ["react/renderer/imagemanager/platform/ios"])
|
|
537
|
+
.map { |search_path| "\"#{search_path}\"" }
|
|
538
|
+
ReactNativePodsUtils.update_header_paths_if_depends_on(target_installation_result, "React-ImageManager", header_search_paths)
|
|
500
539
|
end
|
|
501
540
|
|
|
502
541
|
def self.get_plist_paths_from(user_project)
|
|
@@ -583,4 +622,15 @@ class ReactNativePodsUtils
|
|
|
583
622
|
"React-hermes",
|
|
584
623
|
]
|
|
585
624
|
end
|
|
625
|
+
|
|
626
|
+
def self.add_search_path_to_result(result, base_path, additional_paths, include_base_path)
|
|
627
|
+
if (include_base_path)
|
|
628
|
+
result << base_path
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
additional_paths.each { |extra_path|
|
|
632
|
+
result << File.join(base_path, extra_path)
|
|
633
|
+
}
|
|
634
|
+
return result
|
|
635
|
+
end
|
|
586
636
|
end
|
|
@@ -210,6 +210,41 @@ def folly_flags()
|
|
|
210
210
|
return NewArchitectureHelper.folly_compiler_flags
|
|
211
211
|
end
|
|
212
212
|
|
|
213
|
+
# Add a dependency to a spec, making sure that the HEADER_SERACH_PATHS are set properly.
|
|
214
|
+
# This function automate the requirement to specify the HEADER_SEARCH_PATHS which was error prone
|
|
215
|
+
# and hard to pull out properly to begin with.
|
|
216
|
+
# Secondly, it prepares the podspec to work also with other platforms, because this function is
|
|
217
|
+
# able to generate search paths that are compatible with macOS and other platform if specified by
|
|
218
|
+
# the $RN_PLATFORMS variable.
|
|
219
|
+
# To generate Header Search Paths for multiple platforms, define in your Podfile or Ruby infra a
|
|
220
|
+
# $RN_PLATFORMS static variable with the list of supported platforms, for example:
|
|
221
|
+
# `$RN_PLATFORMS = ["iOS", "macOS"]`
|
|
222
|
+
#
|
|
223
|
+
# Parameters:
|
|
224
|
+
# - spec: the spec that needs to be modified
|
|
225
|
+
# - pod_name: the name of the dependency we had to add to the spec
|
|
226
|
+
# - additional_framework_paths: additional sub paths we had to add to the HEADER_SEARCH_PATH
|
|
227
|
+
# - framework_name: the name of the framework in case it is different from the pod_name
|
|
228
|
+
# - version: the version of the pod_name the spec needs to depend on
|
|
229
|
+
# - base_dir: Base directory from where we need to start looking. Defaults to PODS_CONFIGURATION_BUILD_DIR
|
|
230
|
+
def add_dependency(spec, pod_name, subspec: nil, additional_framework_paths: [], framework_name: nil, version: nil, base_dir: "PODS_CONFIGURATION_BUILD_DIR")
|
|
231
|
+
fixed_framework_name = framework_name != nil ? framework_name : pod_name.gsub("-", "_") # frameworks can't have "-" in their name
|
|
232
|
+
ReactNativePodsUtils.add_dependency(spec, pod_name, base_dir, fixed_framework_name, :additional_paths => additional_framework_paths, :version => version)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# This function generates an array of HEADER_SEARCH_PATH that can be added to the HEADER_SEARCH_PATH property when use_frameworks! is enabled
|
|
236
|
+
#
|
|
237
|
+
# Parameters:
|
|
238
|
+
# - pod_name: the name of the dependency we had to add to the spec
|
|
239
|
+
# - additional_framework_paths: additional sub paths we had to add to the HEADER_SEARCH_PATH
|
|
240
|
+
# - framework_name: the name of the framework in case it is different from the pod_name
|
|
241
|
+
# - base_dir: Base directory from where we need to start looking. Defaults to PODS_CONFIGURATION_BUILD_DIR
|
|
242
|
+
# - include_base_folder: whether the array must include the base import path or only the additional_framework_paths
|
|
243
|
+
def create_header_search_path_for_frameworks(pod_name, additional_framework_paths: [], framework_name: nil, base_dir: "PODS_CONFIGURATION_BUILD_DIR", include_base_folder: true)
|
|
244
|
+
fixed_framework_name = framework_name != nil ? framework_name : pod_name.gsub("-", "_")
|
|
245
|
+
return ReactNativePodsUtils.create_header_search_path_for_frameworks(base_dir, pod_name, fixed_framework_name, additional_framework_paths, include_base_folder)
|
|
246
|
+
end
|
|
247
|
+
|
|
213
248
|
# This function can be used by library developer to prepare their modules for the New Architecture.
|
|
214
249
|
# It passes the Folly Flags to the module, it configures the search path and installs some New Architecture specific dependencies.
|
|
215
250
|
#
|
|
@@ -258,7 +293,7 @@ def react_native_post_install(
|
|
|
258
293
|
flipper_post_install(installer)
|
|
259
294
|
end
|
|
260
295
|
|
|
261
|
-
fabric_enabled =
|
|
296
|
+
fabric_enabled = ENV['RCT_FABRIC_ENABLED'] == '1'
|
|
262
297
|
hermes_enabled = ReactNativePodsUtils.has_pod(installer, "React-hermes")
|
|
263
298
|
|
|
264
299
|
if hermes_enabled
|
package/sdks/.hermesversion
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
hermes-2023-
|
|
1
|
+
hermes-2023-11-17-RNv0.73.0-21043a3fc062be445e56a2c10ecd8be028dd9cc5
|
|
@@ -41,7 +41,7 @@ Pod::Spec.new do |spec|
|
|
|
41
41
|
|
|
42
42
|
spec.subspec 'Pre-built' do |ss|
|
|
43
43
|
ss.preserve_paths = ["destroot/bin/*"].concat(["**/*.{h,c,cpp}"])
|
|
44
|
-
ss.source_files = "destroot/include/**/*.h"
|
|
44
|
+
ss.source_files = "destroot/include/hermes/**/*.h"
|
|
45
45
|
ss.header_mappings_dir = "destroot/include"
|
|
46
46
|
ss.ios.vendored_frameworks = "destroot/Library/Frameworks/universal/hermes.xcframework"
|
|
47
47
|
ss.osx.vendored_frameworks = "destroot/Library/Frameworks/macosx/hermes.framework"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/template/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"react": "18.2.0",
|
|
14
|
-
"react-native": "0.73.0-rc.
|
|
14
|
+
"react-native": "0.73.0-rc.5"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/core": "^7.20.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@babel/runtime": "^7.20.0",
|
|
20
20
|
"@react-native/babel-preset": "^0.73.18",
|
|
21
21
|
"@react-native/eslint-config": "^0.73.1",
|
|
22
|
-
"@react-native/metro-config": "^0.73.
|
|
22
|
+
"@react-native/metro-config": "^0.73.2",
|
|
23
23
|
"@react-native/typescript-config": "^0.73.1",
|
|
24
24
|
"@types/react": "^18.2.6",
|
|
25
25
|
"@types/react-test-renderer": "^18.0.0",
|
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
#include "InspectorInterfaces.h"
|
|
9
|
-
|
|
10
|
-
#include <mutex>
|
|
11
|
-
#include <tuple>
|
|
12
|
-
#include <unordered_map>
|
|
13
|
-
|
|
14
|
-
namespace facebook::react {
|
|
15
|
-
|
|
16
|
-
// pure destructors in C++ are odd. You would think they don't want an
|
|
17
|
-
// implementation, but in fact the linker requires one. Define them to be
|
|
18
|
-
// empty so that people don't count on them for any particular behaviour.
|
|
19
|
-
IDestructible::~IDestructible() {}
|
|
20
|
-
ILocalConnection::~ILocalConnection() {}
|
|
21
|
-
IRemoteConnection::~IRemoteConnection() {}
|
|
22
|
-
IInspector::~IInspector() {}
|
|
23
|
-
|
|
24
|
-
namespace {
|
|
25
|
-
|
|
26
|
-
class InspectorImpl : public IInspector {
|
|
27
|
-
public:
|
|
28
|
-
int addPage(
|
|
29
|
-
const std::string& title,
|
|
30
|
-
const std::string& vm,
|
|
31
|
-
ConnectFunc connectFunc) override;
|
|
32
|
-
void removePage(int pageId) override;
|
|
33
|
-
|
|
34
|
-
std::vector<InspectorPage> getPages() const override;
|
|
35
|
-
std::unique_ptr<ILocalConnection> connect(
|
|
36
|
-
int pageId,
|
|
37
|
-
std::unique_ptr<IRemoteConnection> remote) override;
|
|
38
|
-
|
|
39
|
-
private:
|
|
40
|
-
mutable std::mutex mutex_;
|
|
41
|
-
int nextPageId_{1};
|
|
42
|
-
std::unordered_map<int, std::tuple<std::string, std::string>> titles_;
|
|
43
|
-
std::unordered_map<int, ConnectFunc> connectFuncs_;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
int InspectorImpl::addPage(
|
|
47
|
-
const std::string& title,
|
|
48
|
-
const std::string& vm,
|
|
49
|
-
ConnectFunc connectFunc) {
|
|
50
|
-
std::scoped_lock lock(mutex_);
|
|
51
|
-
|
|
52
|
-
int pageId = nextPageId_++;
|
|
53
|
-
titles_[pageId] = std::make_tuple(title, vm);
|
|
54
|
-
connectFuncs_[pageId] = std::move(connectFunc);
|
|
55
|
-
|
|
56
|
-
return pageId;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
void InspectorImpl::removePage(int pageId) {
|
|
60
|
-
std::scoped_lock lock(mutex_);
|
|
61
|
-
|
|
62
|
-
titles_.erase(pageId);
|
|
63
|
-
connectFuncs_.erase(pageId);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
std::vector<InspectorPage> InspectorImpl::getPages() const {
|
|
67
|
-
std::scoped_lock lock(mutex_);
|
|
68
|
-
|
|
69
|
-
std::vector<InspectorPage> inspectorPages;
|
|
70
|
-
for (auto& it : titles_) {
|
|
71
|
-
inspectorPages.push_back(InspectorPage{
|
|
72
|
-
it.first, std::get<0>(it.second), std::get<1>(it.second)});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return inspectorPages;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
std::unique_ptr<ILocalConnection> InspectorImpl::connect(
|
|
79
|
-
int pageId,
|
|
80
|
-
std::unique_ptr<IRemoteConnection> remote) {
|
|
81
|
-
IInspector::ConnectFunc connectFunc;
|
|
82
|
-
|
|
83
|
-
{
|
|
84
|
-
std::scoped_lock lock(mutex_);
|
|
85
|
-
|
|
86
|
-
auto it = connectFuncs_.find(pageId);
|
|
87
|
-
if (it != connectFuncs_.end()) {
|
|
88
|
-
connectFunc = it->second;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return connectFunc ? connectFunc(std::move(remote)) : nullptr;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
} // namespace
|
|
96
|
-
|
|
97
|
-
IInspector& getInspectorInstance() {
|
|
98
|
-
static InspectorImpl instance;
|
|
99
|
-
return instance;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
std::unique_ptr<IInspector> makeTestInspectorInstance() {
|
|
103
|
-
return std::make_unique<InspectorImpl>();
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
} // namespace facebook::react
|