Skip to content

Commit d1ddd3e

Browse files
committed
fix for iOS session creation
1 parent 34fe605 commit d1ddd3e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"appium",
66
"flutter"
77
],
8-
"version": "1.0.0-beta.8",
8+
"version": "1.0.0-beta.9",
99
"author": "",
1010
"license": "MIT License",
1111
"repository": {
@@ -64,7 +64,7 @@
6464
"ts-node": "^10.9.2",
6565
"typescript": "^5.4.5",
6666
"webdriverio": "^8.38.0",
67-
"wdio-flutter-by-service": "1.0.0"
67+
"wdio-flutter-by-service": "^1.0.5"
6868
},
6969
"peerDependencies": {
7070
"appium": "^2.5.4"

src/iOS.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ const setupNewIOSDriver = async (...args: any[]): Promise<XCUITestDriver> => {
1111
return iosdriver;
1212
};
1313

14-
async function portForward(flutterPort: any, udid: any) {
14+
async function portForward(iOSDriver: any, flutterPort: any, udid: any) {
1515
// Need to do this for real device
1616
if (
17-
this.proxydriver instanceof XCUITestDriver &&
18-
this.proxydriver.isRealDevice()
17+
iOSDriver instanceof XCUITestDriver &&
18+
iOSDriver.isRealDevice()
1919
) {
2020
log.info(`Forwarding port ${flutterPort} to device ${udid}`);
2121
await DEVICE_CONNECTIONS_FACTORY.requestConnection(udid, flutterPort, {
@@ -36,6 +36,6 @@ export const startIOSSession = async (
3636
// the session starts without any apps
3737
caps.flutterPort = caps.flutterPort || 8600;
3838
log.info('iOS session started', iOSDriver);
39-
await portForward(caps.flutterPort, caps.udid);
39+
await portForward(iOSDriver, caps.flutterPort, caps.udid);
4040
return [iOSDriver, caps.flutterPort];
4141
};

0 commit comments

Comments
 (0)