appium-webdriveragent 11.4.0 → 11.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/WebDriverAgentLib/Info.plist +2 -2
- package/WebDriverAgentLib/Routing/FBTCPSocket.h +5 -1
- package/WebDriverAgentLib/Routing/FBTCPSocket.m +17 -5
- package/WebDriverAgentLib/Routing/FBWebServer.m +34 -5
- package/WebDriverAgentLib/Utilities/FBImageProcessor.m +35 -20
- package/WebDriverAgentLib/Utilities/FBMjpegServer.h +5 -0
- package/WebDriverAgentLib/Utilities/FBMjpegServer.m +76 -11
- package/build/lib/webdriveragent.d.ts.map +1 -1
- package/build/lib/webdriveragent.js +1 -1
- package/build/lib/webdriveragent.js.map +1 -1
- package/build/lib/xcodebuild.js +1 -1
- package/build/lib/xcodebuild.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/webdriveragent.ts +4 -2
- package/lib/xcodebuild.ts +4 -4
- package/package.json +1 -1
package/lib/webdriveragent.ts
CHANGED
|
@@ -315,11 +315,13 @@ export class WebDriverAgent {
|
|
|
315
315
|
|
|
316
316
|
private async parseBundleId(wdaBundlePath: string): Promise<string> {
|
|
317
317
|
const infoPlistPath = path.join(wdaBundlePath, 'Info.plist');
|
|
318
|
-
const infoPlist = await plist.parsePlist(await fs.readFile(infoPlistPath))
|
|
318
|
+
const infoPlist = (await plist.parsePlist(await fs.readFile(infoPlistPath))) as {
|
|
319
|
+
CFBundleIdentifier?: string;
|
|
320
|
+
};
|
|
319
321
|
if (!infoPlist.CFBundleIdentifier) {
|
|
320
322
|
throw new Error(`Could not find bundle id in '${infoPlistPath}'`);
|
|
321
323
|
}
|
|
322
|
-
return infoPlist.CFBundleIdentifier
|
|
324
|
+
return infoPlist.CFBundleIdentifier;
|
|
323
325
|
}
|
|
324
326
|
|
|
325
327
|
private async fetchWDABundle(): Promise<string> {
|
package/lib/xcodebuild.ts
CHANGED
|
@@ -461,18 +461,18 @@ export class XcodeBuild {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
const proxyTimeout = noSessionProxy.timeout;
|
|
464
|
-
noSessionProxy.timeout = 1000;
|
|
464
|
+
(noSessionProxy as any).timeout = 1000;
|
|
465
465
|
try {
|
|
466
466
|
currentStatus = (await noSessionProxy.command('/status', 'GET')) as StringRecord;
|
|
467
|
-
if (currentStatus
|
|
468
|
-
this.agentUrl =
|
|
467
|
+
if (currentStatus?.ios?.ip) {
|
|
468
|
+
this.agentUrl = currentStatus.ios.ip as string;
|
|
469
469
|
}
|
|
470
470
|
this.log.debug(`WebDriverAgent information:`);
|
|
471
471
|
this.log.debug(JSON.stringify(currentStatus, null, 2));
|
|
472
472
|
} catch (err: any) {
|
|
473
473
|
throw new Error(`Unable to connect to running WebDriverAgent: ${err.message}`);
|
|
474
474
|
} finally {
|
|
475
|
-
noSessionProxy.timeout = proxyTimeout;
|
|
475
|
+
(noSessionProxy as any).timeout = proxyTimeout;
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
478
|
|