Skip to content

Commit

Permalink
chore: Update appium-adb imports (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Jan 9, 2025
1 parent 7b23036 commit 8c7b5d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ jobs:
prepare_matrix:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.generate-matrix.outputs.versions }}
versions: ${{ steps.generate-matrix.outputs.active }}
steps:
- name: Select 3 most recent LTS versions of Node.js
- name: Select all active LTS versions of Node.js
id: generate-matrix
run: echo "versions=$(curl -s https://endoflife.date/api/nodejs.json | jq -c '[[.[] | select(.lts != false)][:3] | .[].cycle | tonumber]')" >> "$GITHUB_OUTPUT"

uses: msimerson/node-lts-versions@v1

test:
needs:
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/bidi/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
LOG_ENTRY_ADDED_EVENT,
CONTEXT_UPDATED_EVENT_OBSOLETE,
} from './constants';
import type { LogcatRecord as LogEntry } from 'appium-adb';
import type { LogEntry } from 'appium-adb';
import _ from 'lodash';

function toContextUpdatedEvent(method: string, contextName: string): ContextUpdatedEvent {
Expand Down
1 change: 1 addition & 0 deletions lib/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ class AndroidDriver
this.curContext = this.defaultContextName();
this.opts = opts as AndroidDriverOpts;
this._cachedActivityArgs = {};
// @ts-ignore Remove it after min supported server version is ^2.14.0
this.doesSupportBidi = true;
}

Expand Down
3 changes: 2 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ export function nativeLogEntryToSeleniumEntry (x) {
export function toLogRecord(timestamp, message, level = 'ALL') {
return {
timestamp,
// @ts-ignore It's ok
level,
message,
};
}

/**
* @typedef {import('appium-adb').LogcatRecord} LogEntry
* @typedef {import('appium-adb').LogEntry} LogEntry
*/

0 comments on commit 8c7b5d0

Please sign in to comment.