react-native-macos 0.75.11 → 0.75.13

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.
@@ -16,7 +16,7 @@ const version: $ReadOnly<{
16
16
  }> = {
17
17
  major: 0,
18
18
  minor: 75,
19
- patch: 11,
19
+ patch: 13,
20
20
  prerelease: null,
21
21
  };
22
22
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(75),
26
- RCTVersionPatch: @(11),
26
+ RCTVersionPatch: @(13),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.75.11
1
+ VERSION_NAME=0.75.13
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 75,
20
- "patch", 11,
20
+ "patch", 13,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 75;
20
- int32_t Patch = 11;
20
+ int32_t Patch = 13;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
@@ -20,7 +20,7 @@
20
20
  *
21
21
  * @typedef {{
22
22
  * name: string;
23
- * path: string;
23
+ * path?: string;
24
24
  * isWorkspace: boolean;
25
25
  * }} XcodeProject
26
26
  *
@@ -44,6 +44,14 @@ const {logger, CLIError, getDefaultUserTerminal} = (() => {
44
44
  return require(tools);
45
45
  })();
46
46
 
47
+ /**
48
+ * @param {string} sourceDir
49
+ * @param {XcodeProject} xcodeProject
50
+ */
51
+ function getXcodeProjectPath(sourceDir, xcodeProject) {
52
+ return path.join(sourceDir, xcodeProject.path || '.', xcodeProject.name);
53
+ }
54
+
47
55
  /**
48
56
  * @param {ProjectConfig} ctx
49
57
  * @param {Options} args
@@ -117,7 +125,7 @@ function runMacOS(_, ctx, args) {
117
125
  async function run(sourceDir, xcodeProject, scheme, args) {
118
126
  await buildProject(sourceDir, xcodeProject, scheme, args);
119
127
 
120
- const buildSettings = getBuildSettings(xcodeProject, args.mode, scheme);
128
+ const buildSettings = getBuildSettings(sourceDir, xcodeProject, args.mode, scheme);
121
129
  const appPath = path.join(
122
130
  buildSettings.TARGET_BUILD_DIR,
123
131
  buildSettings.FULL_PRODUCT_NAME,
@@ -162,7 +170,7 @@ function buildProject(sourceDir, xcodeProject, scheme, args) {
162
170
  return new Promise((resolve, reject) => {
163
171
  const xcodebuildArgs = [
164
172
  xcodeProject.isWorkspace ? '-workspace' : '-project',
165
- path.join(sourceDir, xcodeProject.path, xcodeProject.name),
173
+ getXcodeProjectPath(sourceDir, xcodeProject),
166
174
  '-configuration',
167
175
  args.mode,
168
176
  '-scheme',
@@ -231,18 +239,19 @@ function buildProject(sourceDir, xcodeProject, scheme, args) {
231
239
  }
232
240
 
233
241
  /**
242
+ * @param {string} sourceDir
234
243
  * @param {XcodeProject} xcodeProject
235
244
  * @param {string} configuration
236
245
  * @param {string} scheme
237
246
  * @returns {{ FULL_PRODUCT_NAME: string, INFOPLIST_PATH: string, TARGET_BUILD_DIR: string }}
238
247
  */
239
- function getBuildSettings(xcodeProject, configuration, scheme) {
248
+ function getBuildSettings(sourceDir, xcodeProject, configuration, scheme) {
240
249
  const settings = JSON.parse(
241
250
  child_process.execFileSync(
242
251
  'xcodebuild',
243
252
  [
244
253
  xcodeProject.isWorkspace ? '-workspace' : '-project',
245
- xcodeProject.name,
254
+ getXcodeProjectPath(sourceDir, xcodeProject),
246
255
  '-scheme',
247
256
  scheme,
248
257
  '-sdk',
@@ -363,7 +372,7 @@ module.exports = [
363
372
  {
364
373
  name: '--port [number]',
365
374
  default: process.env.RCT_METRO_PORT || 8081,
366
- parse: val => Number(val),
375
+ parse: (/** @type {string} */ val) => Number(val),
367
376
  },
368
377
  {
369
378
  name: '--terminal [string]',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.75.11",
3
+ "version": "0.75.13",
4
4
  "description": "React Native for macOS",
5
5
  "license": "MIT",
6
6
  "repository": {