react-native-macos 0.81.0 → 0.81.1
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/local-cli/runMacOS/runMacOS.js +23 -8
- package/package.json +3 -3
- package/react-native.config.js +8 -2
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 1
|
|
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 = 1;
|
|
25
25
|
std::string_view Prerelease = "";
|
|
26
26
|
} ReactNativeVersion;
|
|
27
27
|
|
|
@@ -35,12 +35,27 @@
|
|
|
35
35
|
* }} ProjectConfig
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const path = require('path');
|
|
38
|
+
const child_process = require('node:child_process');
|
|
39
|
+
const path = require('node:path');
|
|
41
40
|
|
|
42
|
-
const
|
|
43
|
-
const
|
|
41
|
+
const colors = (() => {
|
|
42
|
+
const {WriteStream} = require('node:tty');
|
|
43
|
+
if (WriteStream.prototype.hasColors() &&
|
|
44
|
+
!process.env.NODE_TEST_CONTEXT &&
|
|
45
|
+
process.env.NODE_ENV !== 'test'
|
|
46
|
+
) {
|
|
47
|
+
return {
|
|
48
|
+
bold: (s) => '\u001B[1m' + s + '\u001B[22m',
|
|
49
|
+
dim: (s) => '\u001B[2m' + s + '\u001B[22m',
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const passthrough = (s) => s;
|
|
54
|
+
return { bold: passthrough, dim: passthrough };
|
|
55
|
+
})();
|
|
56
|
+
|
|
57
|
+
const {logger, CLIError, getDefaultUserTerminal} = ((projectRoot = process.cwd()) => {
|
|
58
|
+
const cli = require.resolve('@react-native-community/cli/package.json', {paths: [projectRoot]});
|
|
44
59
|
const options = {paths: [path.dirname(cli)]};
|
|
45
60
|
const tools = require.resolve('@react-native-community/cli-tools', options);
|
|
46
61
|
return require(tools);
|
|
@@ -92,7 +107,7 @@ function parseArgs(ctx, args) {
|
|
|
92
107
|
logger.info(
|
|
93
108
|
`Found Xcode ${
|
|
94
109
|
xcodeProject.isWorkspace ? 'workspace' : 'project'
|
|
95
|
-
} "${
|
|
110
|
+
} "${colors.bold(xcodeProject.name)}"`,
|
|
96
111
|
);
|
|
97
112
|
|
|
98
113
|
return {sourceDir, xcodeProject, scheme};
|
|
@@ -146,7 +161,7 @@ async function run(sourceDir, xcodeProject, scheme, args) {
|
|
|
146
161
|
.trim();
|
|
147
162
|
|
|
148
163
|
logger.info(
|
|
149
|
-
`Launching app "${
|
|
164
|
+
`Launching app "${colors.bold(bundleID)}" from "${colors.bold(appPath)}"`,
|
|
150
165
|
);
|
|
151
166
|
|
|
152
167
|
child_process.exec(
|
|
@@ -179,7 +194,7 @@ function buildProject(sourceDir, xcodeProject, scheme, args) {
|
|
|
179
194
|
scheme,
|
|
180
195
|
];
|
|
181
196
|
logger.info(
|
|
182
|
-
`Building ${
|
|
197
|
+
`Building ${colors.dim(
|
|
183
198
|
`(using "xcodebuild ${xcodebuildArgs.join(' ')}")`,
|
|
184
199
|
)}`,
|
|
185
200
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-macos",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.1",
|
|
4
4
|
"description": "React Native for macOS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
},
|
|
167
167
|
"dependencies": {
|
|
168
168
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
169
|
-
"@react-native-macos/virtualized-lists": "0.81.
|
|
169
|
+
"@react-native-macos/virtualized-lists": "0.81.1",
|
|
170
170
|
"@react-native/assets-registry": "0.81.5",
|
|
171
171
|
"@react-native/codegen": "0.81.5",
|
|
172
172
|
"@react-native/community-cli-plugin": "0.81.5",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
{
|
|
206
206
|
"name": "FBReactNativeSpec",
|
|
207
207
|
"type": "all",
|
|
208
|
-
"
|
|
208
|
+
"macos": {
|
|
209
209
|
"modules": {
|
|
210
210
|
"AccessibilityManager": {
|
|
211
211
|
"unstableRequiresMainQueueSetup": true
|
package/react-native.config.js
CHANGED
|
@@ -71,8 +71,14 @@ try {
|
|
|
71
71
|
// [macOS
|
|
72
72
|
let apple;
|
|
73
73
|
try {
|
|
74
|
+
const iosPath = require.resolve('@react-native-community/cli-platform-ios', {
|
|
75
|
+
paths: [process.cwd()],
|
|
76
|
+
});
|
|
74
77
|
// $FlowFixMe[untyped-import]
|
|
75
|
-
apple =
|
|
78
|
+
apple = findCommunityPlatformPackage(
|
|
79
|
+
'@react-native-community/cli-platform-apple',
|
|
80
|
+
iosPath,
|
|
81
|
+
);
|
|
76
82
|
} catch {
|
|
77
83
|
if (verbose) {
|
|
78
84
|
console.warn(
|
|
@@ -156,7 +162,7 @@ if (android != null) {
|
|
|
156
162
|
|
|
157
163
|
// [macOS
|
|
158
164
|
config.commands.push(...macosCommands);
|
|
159
|
-
if (apple
|
|
165
|
+
if (apple) {
|
|
160
166
|
config.platforms.macos = {
|
|
161
167
|
linkConfig: () => {
|
|
162
168
|
return {
|