react-native 0.80.0-rc.4 → 0.80.0
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/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Stable_Android.kt +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSStable.h +0 -3
- package/package.json +8 -8
- package/scripts/cocoapods/new_architecture.rb +1 -1
- package/scripts/codegen/generate-artifacts-executor/generateRCTThirdPartyComponents.js +18 -6
- package/scripts/codegen/generate-artifacts-executor/utils.js +2 -0
- 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/sdks/hermesc/win64-bin/msvcp140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140_1.dll +0 -0
package/React/Base/RCTVersion.m
CHANGED
|
@@ -18,7 +18,5 @@ public class ReactNativeFeatureFlagsOverrides_RNOSS_Stable_Android(
|
|
|
18
18
|
|
|
19
19
|
override fun useTurboModules(): Boolean = bridgelessEnabled || turboModulesEnabled
|
|
20
20
|
|
|
21
|
-
override fun updateRuntimeShadowNodeReferencesOnCommit(): Boolean = true
|
|
22
|
-
|
|
23
21
|
override fun useShadowNodeStateOnClone(): Boolean = true
|
|
24
22
|
}
|
|
@@ -26,9 +26,6 @@ class ReactNativeFeatureFlagsOverridesOSSStable
|
|
|
26
26
|
bool useNativeViewConfigsInBridgelessMode() override {
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
29
|
-
bool updateRuntimeShadowNodeReferencesOnCommit() override {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
29
|
bool useShadowNodeStateOnClone() override {
|
|
33
30
|
return true;
|
|
34
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.80.0
|
|
3
|
+
"version": "0.80.0",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -159,13 +159,13 @@
|
|
|
159
159
|
},
|
|
160
160
|
"dependencies": {
|
|
161
161
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
162
|
-
"@react-native/assets-registry": "0.80.0
|
|
163
|
-
"@react-native/codegen": "0.80.0
|
|
164
|
-
"@react-native/community-cli-plugin": "0.80.0
|
|
165
|
-
"@react-native/gradle-plugin": "0.80.0
|
|
166
|
-
"@react-native/js-polyfills": "0.80.0
|
|
167
|
-
"@react-native/normalize-colors": "0.80.0
|
|
168
|
-
"@react-native/virtualized-lists": "0.80.0
|
|
162
|
+
"@react-native/assets-registry": "0.80.0",
|
|
163
|
+
"@react-native/codegen": "0.80.0",
|
|
164
|
+
"@react-native/community-cli-plugin": "0.80.0",
|
|
165
|
+
"@react-native/gradle-plugin": "0.80.0",
|
|
166
|
+
"@react-native/js-polyfills": "0.80.0",
|
|
167
|
+
"@react-native/normalize-colors": "0.80.0",
|
|
168
|
+
"@react-native/virtualized-lists": "0.80.0",
|
|
169
169
|
"abort-controller": "^3.0.0",
|
|
170
170
|
"anser": "^1.4.9",
|
|
171
171
|
"ansi-regex": "^5.0.0",
|
|
@@ -161,7 +161,7 @@ class NewArchitectureHelper
|
|
|
161
161
|
.uniq{ |p| p.path }
|
|
162
162
|
.map{ |p| p.path }
|
|
163
163
|
|
|
164
|
-
excluded_info_plist = ["/Pods", "Tests", "metainternal", ".bundle"]
|
|
164
|
+
excluded_info_plist = ["/Pods", "Tests", "metainternal", ".bundle", "build/", "DerivedData/"]
|
|
165
165
|
projectPaths.each do |projectPath|
|
|
166
166
|
projectFolderPath = File.dirname(projectPath)
|
|
167
167
|
infoPlistFiles = `find #{projectFolderPath} -name "Info.plist"`
|
|
@@ -52,8 +52,23 @@ function generateRCTThirdPartyComponents(libraries, outputDir) {
|
|
|
52
52
|
|
|
53
53
|
const librariesToCrawl = {};
|
|
54
54
|
|
|
55
|
+
// Using new API explicitly or not using any config field to define components.
|
|
56
|
+
const componentLibrariesUsingNewApi = [];
|
|
57
|
+
const componentLibrariesUsingOldApi = [];
|
|
58
|
+
|
|
59
|
+
for (const library of componentLibraries) {
|
|
60
|
+
if (
|
|
61
|
+
library.config.ios?.components ||
|
|
62
|
+
!library.config.ios?.componentProvider
|
|
63
|
+
) {
|
|
64
|
+
componentLibrariesUsingNewApi.push(library);
|
|
65
|
+
} else {
|
|
66
|
+
componentLibrariesUsingOldApi.push(library);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
55
70
|
// Old API
|
|
56
|
-
|
|
71
|
+
componentLibrariesUsingOldApi.forEach(library => {
|
|
57
72
|
const {config, libraryPath} = library;
|
|
58
73
|
const libraryName = JSON.parse(
|
|
59
74
|
fs.readFileSync(path.join(libraryPath, 'package.json')),
|
|
@@ -62,9 +77,6 @@ function generateRCTThirdPartyComponents(libraries, outputDir) {
|
|
|
62
77
|
librariesToCrawl[libraryName] = library;
|
|
63
78
|
|
|
64
79
|
const componentsProvider = config.ios?.componentProvider;
|
|
65
|
-
if (!componentsProvider) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
80
|
|
|
69
81
|
delete librariesToCrawl[libraryName];
|
|
70
82
|
componentsInLibraries[libraryName] =
|
|
@@ -79,7 +91,7 @@ function generateRCTThirdPartyComponents(libraries, outputDir) {
|
|
|
79
91
|
});
|
|
80
92
|
|
|
81
93
|
// New API
|
|
82
|
-
const iosAnnotations = parseiOSAnnotations(
|
|
94
|
+
const iosAnnotations = parseiOSAnnotations(componentLibrariesUsingNewApi);
|
|
83
95
|
for (const [libraryName, annotationMap] of Object.entries(iosAnnotations)) {
|
|
84
96
|
const {library, components} = annotationMap;
|
|
85
97
|
librariesToCrawl[libraryName] = library;
|
|
@@ -186,7 +198,7 @@ function findRCTComponentViewProtocolClass(filepath) {
|
|
|
186
198
|
const lines = fileContent.split('\n');
|
|
187
199
|
const signatureIndex = lines.findIndex(line => regex.test(line));
|
|
188
200
|
const returnRegex = /return (.*)\.class/;
|
|
189
|
-
const classNameMatch = String(lines.slice(signatureIndex)).match(
|
|
201
|
+
const classNameMatch = String(lines.slice(signatureIndex).join('\n')).match(
|
|
190
202
|
returnRegex,
|
|
191
203
|
);
|
|
192
204
|
if (classNameMatch) {
|
|
@@ -216,6 +216,7 @@ function extractLibrariesFromJSON(configFile, dependencyPath) {
|
|
|
216
216
|
const config = configFile.codegenConfig;
|
|
217
217
|
return [
|
|
218
218
|
{
|
|
219
|
+
name: configFile.name,
|
|
219
220
|
config,
|
|
220
221
|
libraryPath: dependencyPath,
|
|
221
222
|
},
|
|
@@ -267,6 +268,7 @@ function printDeprecationWarningIfNeeded(dependency) {
|
|
|
267
268
|
function extractLibrariesFromConfigurationArray(configFile, dependencyPath) {
|
|
268
269
|
return configFile.codegenConfig.libraries.map(config => {
|
|
269
270
|
return {
|
|
271
|
+
name: config.name,
|
|
270
272
|
config,
|
|
271
273
|
libraryPath: dependencyPath,
|
|
272
274
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|