Skip to content

Commit

Permalink
fix ios port and android streaming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sudharsan-selvaraj committed Nov 4, 2024
1 parent 68cdd65 commit 47e88b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file modified device-farm.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/CapabilityManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ export async function iOSCapabilities(
},
options: { liveVideo: boolean },
) {
freeDevice.mjpegServerPort = options.liveVideo ? await getPort() : undefined;

caps.firstMatch[0] = caps.firstMatch[0] || {};
caps.firstMatch[0]['appium:app'] = await findAppPath(caps);
caps.firstMatch[0]['appium:udid'] = freeDevice.udid;
caps.firstMatch[0]['appium:deviceName'] = freeDevice.name;
caps.firstMatch[0]['appium:platformVersion'] = freeDevice.sdk;
caps.firstMatch[0]['appium:mjpegServerPort'] = options.liveVideo
? freeDevice.mjpegServerPort
: undefined;
caps.firstMatch[0]['appium:mjpegServerPort'] = freeDevice.mjpegServerPort;
caps.firstMatch[0]['appium:wdaLocalPort'] = freeDevice.wdaLocalPort = await getPort();
if (freeDevice.realDevice && !caps.firstMatch[0]['df:skipReport']) {
const wdaInfo = await prisma.appInformation.findFirst({
Expand Down
2 changes: 1 addition & 1 deletion src/modules

0 comments on commit 47e88b2

Please sign in to comment.