Skip to content

Commit cde1054

Browse files
chore: Bump appium-adb (#1018)
1 parent c459923 commit cde1054

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/commands/app-management.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export async function mobileRemoveApp(appId, timeout, keepData, skipInstallCheck
113113
*/
114114
export async function terminateApp(appId, options = {}) {
115115
this.log.info(`Terminating '${appId}'`);
116-
const pids = await this.adb.getPIDsByName(appId);
116+
const pids = await this.adb.listAppProcessIds(appId);
117117
if (_.isEmpty(pids)) {
118118
this.log.info(`The app '${appId}' is not running`);
119119
return false;
@@ -139,7 +139,7 @@ export async function terminateApp(appId, options = {}) {
139139
if (await this.queryAppState(appId) <= APP_STATE.NOT_RUNNING) {
140140
return true;
141141
}
142-
currentPids = await this.adb.getPIDsByName(appId);
142+
currentPids = await this.adb.listAppProcessIds(appId);
143143
if (_.isEmpty(currentPids) || _.isEmpty(_.intersection(pids, currentPids))) {
144144
this.log.info(
145145
`The application '${appId}' was reported running, ` +

lib/commands/context/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ async function procFromWebview(webview) {
521521
const pid = pidMatch[1];
522522
this.log.debug(`${webview} mapped to pid ${pid}`);
523523
this.log.debug(`Getting process name for webview '${webview}'`);
524-
const pkg = await this.adb.getNameByPid(pid);
524+
const pkg = await this.adb.getProcessNameById(pid);
525525
this.log.debug(`Got process name: '${pkg}'`);
526526
return pkg;
527527
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"dependencies": {
5151
"@appium/support": "^7.0.0-rc.1",
5252
"@colors/colors": "^1.6.0",
53-
"appium-adb": "^13.0.9",
54-
"appium-chromedriver": "^8.0.0",
53+
"appium-adb": "^14.0.0",
54+
"appium-chromedriver": "^8.0.16",
5555
"asyncbox": "^3.0.0",
5656
"axios": "^1.x",
5757
"bluebird": "^3.4.7",

0 commit comments

Comments
 (0)