react-native-tvos 0.81.2-0 → 0.81.3-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/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/package.json +8 -8
- package/scripts/cocoapods/autolinking.rb +0 -6
- package/scripts/cocoapods/codegen_utils.rb +1 -1
- package/scripts/codegen/generate-artifacts-executor/index.js +1 -5
- package/scripts/codegen/generate-artifacts-executor/utils.js +10 -41
- 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/React/Base/RCTVersion.m
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
#define REACT_NATIVE_VERSION_MAJOR 0
|
|
16
16
|
#define REACT_NATIVE_VERSION_MINOR 81
|
|
17
|
-
#define REACT_NATIVE_VERSION_PATCH
|
|
17
|
+
#define REACT_NATIVE_VERSION_PATCH 3
|
|
18
18
|
|
|
19
19
|
namespace facebook::react {
|
|
20
20
|
|
|
21
21
|
constexpr struct {
|
|
22
22
|
int32_t Major = 0;
|
|
23
23
|
int32_t Minor = 81;
|
|
24
|
-
int32_t Patch =
|
|
24
|
+
int32_t Patch = 3;
|
|
25
25
|
std::string_view Prerelease = "0";
|
|
26
26
|
} ReactNativeVersion;
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tvos",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.3-0",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -166,12 +166,12 @@
|
|
|
166
166
|
},
|
|
167
167
|
"dependencies": {
|
|
168
168
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
169
|
-
"@react-native/assets-registry": "0.81.
|
|
170
|
-
"@react-native/codegen": "0.81.
|
|
171
|
-
"@react-native/community-cli-plugin": "0.81.
|
|
172
|
-
"@react-native/gradle-plugin": "0.81.
|
|
173
|
-
"@react-native/js-polyfills": "0.81.
|
|
174
|
-
"@react-native/normalize-colors": "0.81.
|
|
169
|
+
"@react-native/assets-registry": "0.81.3",
|
|
170
|
+
"@react-native/codegen": "0.81.3",
|
|
171
|
+
"@react-native/community-cli-plugin": "0.81.3",
|
|
172
|
+
"@react-native/gradle-plugin": "0.81.3",
|
|
173
|
+
"@react-native/js-polyfills": "0.81.3",
|
|
174
|
+
"@react-native/normalize-colors": "0.81.3",
|
|
175
175
|
"abort-controller": "^3.0.0",
|
|
176
176
|
"anser": "^1.4.9",
|
|
177
177
|
"ansi-regex": "^5.0.0",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"whatwg-fetch": "^3.0.0",
|
|
199
199
|
"ws": "^6.2.3",
|
|
200
200
|
"yargs": "^17.6.2",
|
|
201
|
-
"@react-native-tvos/virtualized-lists": "0.81.
|
|
201
|
+
"@react-native-tvos/virtualized-lists": "0.81.3-0"
|
|
202
202
|
},
|
|
203
203
|
"codegenConfig": {
|
|
204
204
|
"libraries": [
|
|
@@ -40,12 +40,6 @@ def list_native_modules!(config_command)
|
|
|
40
40
|
packages = config["dependencies"]
|
|
41
41
|
ios_project_root = Pathname.new(config["project"]["ios"]["sourceDir"])
|
|
42
42
|
react_native_path = Pathname.new(config["reactNativePath"])
|
|
43
|
-
codegen_output_path = ios_project_root.join("build/generated/autolinking/autolinking.json")
|
|
44
|
-
|
|
45
|
-
# Write autolinking react-native-config output to codegen folder
|
|
46
|
-
FileUtils.mkdir_p(File.dirname(codegen_output_path))
|
|
47
|
-
File.write(codegen_output_path, json)
|
|
48
|
-
|
|
49
43
|
found_pods = []
|
|
50
44
|
|
|
51
45
|
packages.each do |package_name, package|
|
|
@@ -87,7 +87,7 @@ class CodegenUtils
|
|
|
87
87
|
codegen_path = file_manager.join(ios_folder, codegen_dir)
|
|
88
88
|
return if !dir_manager.exist?(codegen_path)
|
|
89
89
|
|
|
90
|
-
FileUtils.rm_rf("#{codegen_path}")
|
|
90
|
+
FileUtils.rm_rf(dir_manager.glob("#{codegen_path}/*"))
|
|
91
91
|
base_provider_path = file_manager.join(rn_path, 'React', 'Fabric', 'RCTThirdPartyFabricComponentsProvider')
|
|
92
92
|
FileUtils.rm_rf("#{base_provider_path}.h")
|
|
93
93
|
FileUtils.rm_rf("#{base_provider_path}.mm")
|
|
@@ -86,14 +86,10 @@ function execute(
|
|
|
86
86
|
buildCodegenIfNeeded();
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
const reactNativeConfig = readReactNativeConfig(
|
|
90
|
-
projectRoot,
|
|
91
|
-
baseOutputPath,
|
|
92
|
-
);
|
|
89
|
+
const reactNativeConfig = readReactNativeConfig(projectRoot);
|
|
93
90
|
const codegenEnabledLibraries = findCodegenEnabledLibraries(
|
|
94
91
|
pkgJson,
|
|
95
92
|
projectRoot,
|
|
96
|
-
baseOutputPath,
|
|
97
93
|
reactNativeConfig,
|
|
98
94
|
);
|
|
99
95
|
|
|
@@ -97,40 +97,15 @@ function cleanupEmptyFilesAndFolders(filepath /*: string */) {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
function
|
|
101
|
-
baseOutputPath /*: string */,
|
|
102
|
-
) /*: $FlowFixMe */ {
|
|
103
|
-
// NOTE: Generated by scripts/cocoapods/autolinking.rb in list_native_modules (called by use_native_modules)
|
|
104
|
-
const autolinkingGeneratedPath = path.resolve(
|
|
105
|
-
baseOutputPath,
|
|
106
|
-
'build/generated/autolinking/autolinking.json',
|
|
107
|
-
);
|
|
108
|
-
if (fs.existsSync(autolinkingGeneratedPath)) {
|
|
109
|
-
// $FlowFixMe[unsupported-syntax]
|
|
110
|
-
return require(autolinkingGeneratedPath);
|
|
111
|
-
} else {
|
|
112
|
-
codegenLog(
|
|
113
|
-
`Could not find generated autolinking output at: ${autolinkingGeneratedPath}`,
|
|
114
|
-
);
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function readReactNativeConfig(
|
|
120
|
-
projectRoot /*: string */,
|
|
121
|
-
baseOutputPath /*: string */,
|
|
122
|
-
) /*: $FlowFixMe */ {
|
|
123
|
-
const autolinkingOutput = readGeneratedAutolinkingOutput(baseOutputPath);
|
|
100
|
+
function readReactNativeConfig(projectRoot /*: string */) /*: $FlowFixMe */ {
|
|
124
101
|
const rnConfigFilePath = path.resolve(projectRoot, 'react-native.config.js');
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
} else if (fs.existsSync(rnConfigFilePath)) {
|
|
128
|
-
// $FlowIgnore[unsupported-syntax]
|
|
129
|
-
return require(rnConfigFilePath);
|
|
130
|
-
} else {
|
|
131
|
-
codegenLog(`Could not find React Native config at: ${rnConfigFilePath}`);
|
|
102
|
+
|
|
103
|
+
if (!fs.existsSync(rnConfigFilePath)) {
|
|
132
104
|
return {};
|
|
133
105
|
}
|
|
106
|
+
|
|
107
|
+
// $FlowIgnore[unsupported-syntax]
|
|
108
|
+
return require(rnConfigFilePath);
|
|
134
109
|
}
|
|
135
110
|
|
|
136
111
|
/**
|
|
@@ -139,23 +114,17 @@ function readReactNativeConfig(
|
|
|
139
114
|
function findCodegenEnabledLibraries(
|
|
140
115
|
pkgJson /*: $FlowFixMe */,
|
|
141
116
|
projectRoot /*: string */,
|
|
142
|
-
baseOutputPath /*: string */,
|
|
143
117
|
reactNativeConfig /*: $FlowFixMe */,
|
|
144
118
|
) /*: Array<$FlowFixMe> */ {
|
|
145
119
|
const projectLibraries = findProjectRootLibraries(pkgJson, projectRoot);
|
|
146
120
|
if (pkgJsonIncludesGeneratedCode(pkgJson)) {
|
|
147
121
|
return projectLibraries;
|
|
148
122
|
} else {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
if (!readGeneratedAutolinkingOutput(baseOutputPath)) {
|
|
153
|
-
libraries.push(...findExternalLibraries(pkgJson, projectRoot));
|
|
154
|
-
}
|
|
155
|
-
libraries.push(
|
|
123
|
+
return [
|
|
124
|
+
...projectLibraries,
|
|
125
|
+
...findExternalLibraries(pkgJson, projectRoot),
|
|
156
126
|
...findLibrariesFromReactNativeConfig(projectRoot, reactNativeConfig),
|
|
157
|
-
|
|
158
|
-
return libraries;
|
|
127
|
+
];
|
|
159
128
|
}
|
|
160
129
|
}
|
|
161
130
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|