Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Macs without Android no longer show avdmanager discovery warnings #25815

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/25815/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 2 changed files with 21 additions and 2 deletions.

x
0 of 2 viewed, 2 left
4 additions and 1 deletionapps/server/src/device/DeviceHubOperations.tsModified
View file
@@ -97,8 +97,11 @@
"list",
);
const devices: Array<HostDevice> = [...hubList.simulators, ...hubList.emulators];
+ const androidAvailable = yield* options.androidAvailable;
const warnings = hubList.errors?.filter(
(error) =>
+ // The host summary already explains a missing Android SDK; the hub's failed probes are noise.
+ !(!androidAvailable && error.message.startsWith("[android-utils] ")) &&
// CoreSimulator can retain deleted devices; their optional usage timestamps are absent.
error.message.startsWith("[apple-utils] Failed to read CoreSimulator plist at ") &&
@@ -108,7 +111,7 @@
const details = warnings?.map((error) => error.message) ?? [];
let androidDiscoveryIncomplete = false;
- if (yield* options.androidAvailable) {
+ if (androidAvailable) {
const avds = yield* run("emulator", ["-list-avds"]);
// Discovered devices stay listed; the AVDs that could not be listed are a warning.
if (avds.code !== 0) {
17 additions and 1 deletionapps/server/src/device/DeviceService.test.tsModified
View file
@@ -58,6 +58,7 @@
const requests: string[] = [];
const devices: Array<Omit<DeviceSummary, "hostId">> = [];
const discoveryErrors = yield* Ref.make<Array<{ message: string; error?: string }>>([]);