diff --git a/device-farm.apk b/device-farm.apk index c9c54741..ad6d6a8f 100644 Binary files a/device-farm.apk and b/device-farm.apk differ diff --git a/package-lock.json b/package-lock.json index d6b376e1..1d344fd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "appium-device-farm", - "version": "9.4.2", + "version": "9.4.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "appium-device-farm", - "version": "9.4.2", + "version": "9.4.4", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/src/CapabilityManager.ts b/src/CapabilityManager.ts index 98863e3f..920119c7 100644 --- a/src/CapabilityManager.ts +++ b/src/CapabilityManager.ts @@ -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({ diff --git a/src/modules b/src/modules index 362b016a..90805f20 160000 --- a/src/modules +++ b/src/modules @@ -1 +1 @@ -Subproject commit 362b016aac53fd501156503c3661ca4ca06e0a2e +Subproject commit 90805f20398b347118560935401e5c3ec39ea70a