From 8632cc98e2eee7c5875d79f92ecf38cfdd42acf5 Mon Sep 17 00:00:00 2001 From: Long Nguyen Date: Fri, 9 Oct 2020 02:58:02 +0900 Subject: [PATCH] feat: Allow registering your destination device on the developer portal (#1241) * Allow registering your destination device on the developer portal * Bump appium-webdriveragent to version 2.23.1 Co-authored-by: Kazuaki Matsuo --- README.md | 1 + lib/desired-caps.js | 3 +++ package.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd463141d..13f2b1efe 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,7 @@ Differences are noted here: |`wdaEventloopIdleDelay`|Delays the invocation of `-[XCUIApplicationProcess setEventLoopHasIdled:]` by the number of seconds specified with this capability. This can help quiescence apps that fail to do so for no obvious reason (and creating a session fails for that reason). This increases the time for session creation because `-[XCUIApplicationProcess setEventLoopHasIdled:]` is called multiple times. If you enable this capability start with at least `3` seconds and try increasing it, if creating the session still fails. Defaults to `0`. |e.g. `5`| |`processArguments`|Process arguments and environment which will be sent to the `WebDriverAgent` server.|`{ args: ["a", "b", "c"] , env: { "a": "b", "c": "d" } }` or `'{"args": ["a", "b", "c"], "env": { "a": "b", "c": "d" }}'`| |`autoLaunch`|When set to `false`, prevents the application under test from being launched automatically as a part of the new session startup process. The launch become the responsibility of the user. Defaults to `true`.|`true` or `false`| +|`allowProvisioningDeviceRegistration`|Allow `xcodebuild` to register your destination device on the developer portal if necessary. Requires a developer account to have been added in Xcode's Accounts preference pane. Defaults to `false`.|`true` or `false`| ### Simulator control capabilities: diff --git a/lib/desired-caps.js b/lib/desired-caps.js index 62604d711..8158ec219 100644 --- a/lib/desired-caps.js +++ b/lib/desired-caps.js @@ -227,6 +227,9 @@ let desiredCapConstraints = _.defaults({ safariWebInspectorMaxFrameLength: { isNumber: true }, + allowProvisioningDeviceRegistration: { + isBoolean: true + } }, iosDesiredCapConstraints); export { desiredCapConstraints, PLATFORM_NAME_IOS, PLATFORM_NAME_TVOS }; diff --git a/package.json b/package.json index 1e7b7b78f..6302b3e72 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "appium-ios-simulator": "^3.25.1", "appium-remote-debugger": "^8.13.0", "appium-support": "^2.47.1", - "appium-webdriveragent": "^2.22.2", + "appium-webdriveragent": "^2.23.1", "appium-xcode": "^3.8.0", "async-lock": "^1.0.0", "asyncbox": "^2.3.1",