Skip to content

Commit

Permalink
chore: Bump appium-adb (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Jan 13, 2024
1 parent fb53389 commit 8cb6373
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/commands/mixins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import type {
ADB,
InstallOptions,
LogcatListener,
SmsListResult,
UninstallOptions,
} from 'appium-adb';
import type Chromedriver from 'appium-chromedriver';
Expand Down Expand Up @@ -564,15 +563,15 @@ export interface GeneralMixin {
/**
* Retrieves the list of recent system notifications.
*
* @returns See the documentation on `adb.getNotifications` for more details
* @returns See the documentation on `io.appium.settings -> getNotifications` for more details
*/
mobileGetNotifications(): Promise<StringRecord>;

/**
* Retrieves the list of recent SMS messages with their properties.
* @returns See the documentation on `adb.getSmsList` for more details
* @returns See the documentation on `io.appium.settings -> getSmsList` for more details
*/
mobileListSms(opts: types.ListSmsOpts): Promise<SmsListResult>;
mobileListSms(opts: types.ListSmsOpts): Promise<types.SmsListResult>;

/**
* Unlocks the device if it is locked. Noop if the device's screen is not locked.
Expand Down
18 changes: 18 additions & 0 deletions lib/commands/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1130,3 +1130,21 @@ export interface GetUiModeOpts {
*/
mode: string;
}

export interface SmsListResultItem {
id: string;
address: string;
person: string|null;
date: string;
read: string;
status: string;
type: string;
subject: string|null;
body: string;
serviceCenter: string|null;
}

export interface SmsListResult {
items: SmsListResultItem[];
total: number;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"dependencies": {
"@appium/support": "^4.2.0",
"@colors/colors": "^1.6.0",
"appium-adb": "^11.1.0",
"appium-adb": "^12.0.0",
"appium-chromedriver": "^5.5.1",
"asyncbox": "^3.0.0",
"axios": "^1.x",
Expand Down

0 comments on commit 8cb6373

Please sign in to comment.