From 346b18c1a7058b443c721b3a0e58e0b05c8dc999 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Fri, 18 Oct 2024 16:13:33 +0200 Subject: [PATCH] fix: declare support for 0.76 (#2222) --- README.md | 7 +++++-- package.json | 6 +++--- scripts/testing/test-matrix.mjs | 13 ++++++++----- yarn.lock | 6 +++--- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d66853bd7..0ae32fe1b 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ npx --package react-native-test-app@latest init In this example, we will create a project named "sample" in `sample` with apps for all platforms: -```sh +``` ✔ What is the name of your test app? … sample ? Which platforms do you need test apps for? › Instructions: @@ -44,8 +44,9 @@ Instructions: ◉ Android ◉ iOS ◉ macOS +◯ visionOS (Experimental) ◉ Windows -✔ Where should we create the new project?? … sample +✔ Where should we create the new project? … sample ``` Install npm dependencies inside the new project folder: @@ -100,9 +101,11 @@ in the wiki. [react-native-datetimepicker](https://github.com/react-native-datetimepicker/datetimepicker) • [react-native-google-signin](https://github.com/react-native-google-signin/google-signin) • [react-native-image-editor](https://github.com/callstack/react-native-image-editor) • +[react-native-keychain](https://github.com/oblador/react-native-keychain) • [react-native-masked-view](https://github.com/react-native-masked-view/masked-view) • [react-native-menu](https://github.com/react-native-menu/menu) • [react-native-netinfo](https://github.com/react-native-netinfo/react-native-netinfo) • +[react-native-pager-view](https://github.com/callstack/react-native-pager-view) • [react-native-segmented-control](https://github.com/react-native-segmented-control/segmented-control) • [react-native-webview](https://github.com/react-native-webview/react-native-webview) • [realm-js](https://github.com/realm/realm-js) • diff --git a/package.json b/package.json index d9b480b04..2a9309e47 100644 --- a/package.json +++ b/package.json @@ -97,12 +97,12 @@ "uuid": "^10.0.0" }, "peerDependencies": { - "@callstack/react-native-visionos": "0.73 - 0.75", + "@callstack/react-native-visionos": "0.73 - 0.76", "@expo/config-plugins": ">=5.0", "react": "17.0.1 - 19.0", - "react-native": "0.66 - 0.75 || >=0.76.0-0 <0.76.0", + "react-native": "0.66 - 0.76 || >=0.77.0-0 <0.77.0", "react-native-macos": "^0.0.0-0 || 0.66 || 0.68 || 0.71 - 0.75", - "react-native-windows": "^0.0.0-0 || 0.66 - 0.75" + "react-native-windows": "^0.0.0-0 || 0.66 - 0.76" }, "peerDependenciesMeta": { "@callstack/react-native-visionos": { diff --git a/scripts/testing/test-matrix.mjs b/scripts/testing/test-matrix.mjs index 9d5c20486..5f3852911 100644 --- a/scripts/testing/test-matrix.mjs +++ b/scripts/testing/test-matrix.mjs @@ -4,7 +4,7 @@ * Reminder that this script is meant to be runnable without installing * dependencies. It can therefore not rely on any external libraries. */ -import { spawn } from "node:child_process"; +import { spawn, spawnSync } from "node:child_process"; import * as fs from "node:fs"; import { URL, fileURLToPath } from "node:url"; import * as util from "node:util"; @@ -327,8 +327,7 @@ if (platforms.length === 0) { }) .then(() => { showBanner(`Reconfigure existing app`); - $( - PACKAGE_MANAGER, + const args = [ "configure-test-app", "-p", "android", @@ -339,8 +338,12 @@ if (platforms.length === 0) { "-p", "visionos", "-p", - "windows" - ); + "windows", + ]; + const { status } = spawnSync(PACKAGE_MANAGER, args, { stdio: "inherit" }); + if (status !== 1) { + throw new Error("Expected an error"); + } }) .then(() => { showBanner(green("✔ Pass")); diff --git a/yarn.lock b/yarn.lock index 507300148..09afdb7e4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12409,12 +12409,12 @@ __metadata: typescript: "npm:^5.0.0" uuid: "npm:^10.0.0" peerDependencies: - "@callstack/react-native-visionos": 0.73 - 0.75 + "@callstack/react-native-visionos": 0.73 - 0.76 "@expo/config-plugins": ">=5.0" react: 17.0.1 - 19.0 - react-native: 0.66 - 0.75 || >=0.76.0-0 <0.76.0 + react-native: 0.66 - 0.76 || >=0.77.0-0 <0.77.0 react-native-macos: ^0.0.0-0 || 0.66 || 0.68 || 0.71 - 0.75 - react-native-windows: ^0.0.0-0 || 0.66 - 0.75 + react-native-windows: ^0.0.0-0 || 0.66 - 0.76 peerDependenciesMeta: "@callstack/react-native-visionos": optional: true