Compare commits

...
Author SHA1 Message Date
Gabe Debes 300ebd2cdb [build-tools] Keep Appium command generation on v3 drivers 2026-11-14 17:53:54 -07:00
4 changed files with 11 additions and 1 deletions

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
'@expo/build-tools': patch
---
Keep Appium command list generation on drivers compatible with Appium 3 and add a summary for supported device buttons.
@@ -16,14 +16,17 @@ const { pathToFileURL } = require('node:url');
// Track the Appium 3 line, matching the appium@^3 the worker installs for
// simulator sessions (see startAppiumRemoteSession.ts).
const APPIUM_VERSION = '^3';
// Newer driver majors require Appium 4. Keep these on the Appium 3 lines.
const DRIVERS = [
{
packageName: 'appium-xcuitest-driver',
version: '^12',
exportName: 'XCUITestDriver',
typeName: 'XCUITestAppiumCommand',
},
{
packageName: 'appium-uiautomator2-driver',
version: '^8',
exportName: 'AndroidUiautomator2Driver',
typeName: 'UiAutomator2AppiumCommand',
},
@@ -70,7 +73,7 @@ async function main() {
'--prefix',
sandbox,
`appium@${APPIUM_VERSION}`,
...DRIVERS.map(({ packageName }) => packageName),
...DRIVERS.map(({ packageName, version }) => `${packageName}@${version}`),
],
{ stdio: 'inherit' }
);
@@ -285,6 +285,7 @@ export const APPIUM_COMMAND_SUMMARIES: Record<AppiumCommand, string> = {
mobileGetPerformanceData: 'Read app performance data',
mobileGetPermission: 'Read an app permission',
mobileGetPermissions: 'Read app permissions',
mobileGetPressableButtons: 'Listed available device buttons',
mobileGetSimulatedHingeAngle: 'Read the simulated hinge angle',
mobileGetSimulatedLocation: 'Read the simulated location',
mobileGetSource: 'Read the screen contents',
@@ -184,6 +184,7 @@ export type XCUITestAppiumCommand =
| 'mobileGetIncreaseContrast'
| 'mobileGetPasteboard'
| 'mobileGetPermission'
| 'mobileGetPressableButtons'
| 'mobileGetSimulatedHingeAngle'
| 'mobileGetSimulatedLocation'
| 'mobileGetSource'