From 4e45a873e54403770c92906380d9753fa93f3bf6 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Sun, 29 Mar 2020 20:27:23 -0500 Subject: [PATCH 1/2] update android capability types --- .../remote/AndroidMobileCapabilityType.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java b/src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java index b97592e82..329595b6e 100644 --- a/src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java +++ b/src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java @@ -448,4 +448,45 @@ public interface AndroidMobileCapabilityType extends CapabilityType { * @since 1.9.0 */ String DISABLE_WINDOW_ANIMATION = "disableWindowAnimation"; + + /** + * Specify the Android build-tools version to be something different than the default, which is to use the most + * recent version. It is helpful to use a non-default version if your environment uses alpha/beta build tools. + * @since 1.14.0 + */ + String BUILD_TOOLS_VERSION = "buildToolsVersion"; + + /** + * By default application installation is skipped if newer or the same version of this app is already present on + * the device under test. Setting this option to {@code true} will enforce Appium to always install the current + * application build independently of the currently installed version of it. Defaults to {@code false}. + * @since 1.16.0 + */ + String ENFORCE_APP_INSTALL= "enforceAppInstall"; + + /** + * Whether or not Appium should augment its webview detection with page detection, guaranteeing that any + * webview contexts which show up in the context list have active pages. This can prevent an error if a + * context is selected where Chromedriver cannot find any pages. Defaults to {@code false}. + * @since 1.15.0 + */ + String ENSURE_WEBVIEWS_HAVE_PAGES = "ensureWebviewsHavePages"; + + /** + * To support the `ensureWebviewsHavePages` feature, it is necessary to open a TCP port for communication with + * the webview on the device under test. This capability allows overriding of the default port of {@code 9222}, + * in case multiple sessions are running simultaneously (to avoid port clash), or in case the default port + * is not appropriate for your system. + * @since 1.15.0 + */ + String WEBVIEW_DEVTOOLS_PORT = "webviewDevtoolsPort"; + + /** + * Set the maximum number of remote cached apks which are pushed to the device-under-test's + * local storage. Caching apks remotely speeds up the execution of sequential test cases, when using the + * same set of apks, by avoiding the need to be push an apk to the remote file system every time a + * reinstall is needed. Set this capability to {@code 0} to disable caching. Defaults to {@code 10}. + * @since 1.14.0 + */ + String REMOTE_APPS_CACHE_LIMIT = "remoteAppsCacheLimit"; } From 4a17939423b5a8e9193b56a1a7f013074da069ac Mon Sep 17 00:00:00 2001 From: titusfortner Date: Mon, 30 Mar 2020 10:31:14 -0500 Subject: [PATCH 2/2] fix missing space --- .../appium/java_client/remote/AndroidMobileCapabilityType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java b/src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java index 329595b6e..9ec293fa5 100644 --- a/src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java +++ b/src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java @@ -462,7 +462,7 @@ public interface AndroidMobileCapabilityType extends CapabilityType { * application build independently of the currently installed version of it. Defaults to {@code false}. * @since 1.16.0 */ - String ENFORCE_APP_INSTALL= "enforceAppInstall"; + String ENFORCE_APP_INSTALL = "enforceAppInstall"; /** * Whether or not Appium should augment its webview detection with page detection, guaranteeing that any