appium-android-driver 9.14.2 → 9.14.3

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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## [9.14.3](https://github.com/appium/appium-android-driver/compare/v9.14.2...v9.14.3) (2024-12-01)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * Update deprecated method name ([#969](https://github.com/appium/appium-android-driver/issues/969)) ([031a26d](https://github.com/appium/appium-android-driver/commit/031a26d61a9545aa0866eddb648d3306ec871ba6))
6
+
1
7
  ## [9.14.2](https://github.com/appium/appium-android-driver/compare/v9.14.1...v9.14.2) (2024-11-27)
2
8
 
3
9
  ### Miscellaneous Chores
@@ -9,7 +9,7 @@ const EMU_CONSOLE_FEATURE = 'emulator_console';
9
9
  * @returns {Promise<string>}
10
10
  */
11
11
  async function mobileExecEmuConsoleCommand(opts) {
12
- this.ensureFeatureEnabled(EMU_CONSOLE_FEATURE);
12
+ this.assertFeatureEnabled(EMU_CONSOLE_FEATURE);
13
13
  const { command, execTimeout, connTimeout, initTimeout } = opts;
14
14
  if (!command) {
15
15
  throw new driver_1.errors.InvalidArgumentError(`The 'command' argument is mandatory`);
@@ -48,7 +48,7 @@ exports.supportedLogTypes = {
48
48
  * @returns
49
49
  */
50
50
  getter: (self) => {
51
- self.ensureFeatureEnabled(utils_1.GET_SERVER_LOGS_FEATURE);
51
+ self.assertFeatureEnabled(utils_1.GET_SERVER_LOGS_FEATURE);
52
52
  return self.log.unwrap().record.map(utils_1.nativeLogEntryToSeleniumEntry);
53
53
  },
54
54
  },
@@ -48,7 +48,7 @@ async function mobileChangePermissions(opts) {
48
48
  case PERMISSION_TARGET.PM:
49
49
  return await changePermissionsViaPm.bind(this)(permissions, appPackage, lodash_1.default.toLower(action));
50
50
  case PERMISSION_TARGET.APPOPS:
51
- this.ensureFeatureEnabled(utils_1.ADB_SHELL_FEATURE);
51
+ this.assertFeatureEnabled(utils_1.ADB_SHELL_FEATURE);
52
52
  return await changePermissionsViaAppops.bind(this)(permissions, appPackage, lodash_1.default.toLower(action));
53
53
  default:
54
54
  throw new driver_1.errors.InvalidArgumentError(`'target' argument must be one of: ${lodash_1.default.values(PERMISSION_TARGET)}`);
@@ -15,7 +15,7 @@ const utils_1 = require("../utils");
15
15
  * @returns {Promise<string | {stderr: string; stdout: string}>};
16
16
  */
17
17
  async function mobileShell(opts) {
18
- this.ensureFeatureEnabled(utils_1.ADB_SHELL_FEATURE);
18
+ this.assertFeatureEnabled(utils_1.ADB_SHELL_FEATURE);
19
19
  const { command, args = /** @type {string[]} */ ([]), timeout = 20000, includeStderr } = opts ?? {};
20
20
  if (!lodash_1.default.isString(command)) {
21
21
  throw new driver_1.errors.InvalidArgumentError(`The 'command' argument is mandatory`);
@@ -42,7 +42,7 @@ const ADB_SCREEN_STREAMING_FEATURE = 'adb_screen_streaming';
42
42
  * @returns {Promise<void>}
43
43
  */
44
44
  async function mobileStartScreenStreaming(options = {}) {
45
- this.ensureFeatureEnabled(ADB_SCREEN_STREAMING_FEATURE);
45
+ this.assertFeatureEnabled(ADB_SCREEN_STREAMING_FEATURE);
46
46
  const { width, height, bitRate, host = DEFAULT_HOST, port = DEFAULT_PORT, pathname, tcpPort = DEFAULT_PORT + 1, quality = DEFAULT_QUALITY, considerRotation = false, logPipelineDetails = false, } = options;
47
47
  if (lodash_1.default.isUndefined(this._screenStreamingProps)) {
48
48
  await verifyStreamingRequirements(this.adb);
@@ -8,7 +8,7 @@ const EMU_CONSOLE_FEATURE = 'emulator_console';
8
8
  * @returns {Promise<string>}
9
9
  */
10
10
  export async function mobileExecEmuConsoleCommand(opts) {
11
- this.ensureFeatureEnabled(EMU_CONSOLE_FEATURE);
11
+ this.assertFeatureEnabled(EMU_CONSOLE_FEATURE);
12
12
 
13
13
  const {command, execTimeout, connTimeout, initTimeout} = opts;
14
14
 
@@ -42,7 +42,7 @@ export const supportedLogTypes = {
42
42
  * @returns
43
43
  */
44
44
  getter: (self) => {
45
- self.ensureFeatureEnabled(GET_SERVER_LOGS_FEATURE);
45
+ self.assertFeatureEnabled(GET_SERVER_LOGS_FEATURE);
46
46
  return self.log.unwrap().record.map(nativeLogEntryToSeleniumEntry);
47
47
  },
48
48
  },
@@ -49,7 +49,7 @@ export async function mobileChangePermissions(opts) {
49
49
  case PERMISSION_TARGET.PM:
50
50
  return await changePermissionsViaPm.bind(this)(permissions, appPackage, _.toLower(action));
51
51
  case PERMISSION_TARGET.APPOPS:
52
- this.ensureFeatureEnabled(ADB_SHELL_FEATURE);
52
+ this.assertFeatureEnabled(ADB_SHELL_FEATURE);
53
53
  return await changePermissionsViaAppops.bind(this)(
54
54
  permissions,
55
55
  appPackage,
@@ -10,7 +10,7 @@ import {ADB_SHELL_FEATURE} from '../utils';
10
10
  * @returns {Promise<string | {stderr: string; stdout: string}>};
11
11
  */
12
12
  export async function mobileShell(opts) {
13
- this.ensureFeatureEnabled(ADB_SHELL_FEATURE);
13
+ this.assertFeatureEnabled(ADB_SHELL_FEATURE);
14
14
  const {command, args = /** @type {string[]} */ ([]), timeout = 20000, includeStderr} = opts ?? {};
15
15
 
16
16
  if (!_.isString(command)) {
@@ -39,7 +39,7 @@ const ADB_SCREEN_STREAMING_FEATURE = 'adb_screen_streaming';
39
39
  * @returns {Promise<void>}
40
40
  */
41
41
  export async function mobileStartScreenStreaming(options = {}) {
42
- this.ensureFeatureEnabled(ADB_SCREEN_STREAMING_FEATURE);
42
+ this.assertFeatureEnabled(ADB_SCREEN_STREAMING_FEATURE);
43
43
 
44
44
  const {
45
45
  width,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-android-driver",
3
- "version": "9.14.2",
3
+ "version": "9.14.3",
4
4
  "description": "Android UiAutomator and Chrome support for Appium",
5
5
  "keywords": [
6
6
  "appium",