fix: modify the format of listApps to follow xcuitest's format#1059
fix: modify the format of listApps to follow xcuitest's format#1059
Conversation
lib/commands/app-management.ts
Outdated
| return (await this.adb.listInstalledPackages(opts)).map((pkg) => pkg.appPackage); | ||
| return (await this.adb.listInstalledPackages(opts)).map((pkg) => { | ||
| const packageName = pkg.appPackage; | ||
| const versionCode = pkg.versionCode ? pkg.versionCode : ''; |
There was a problem hiding this comment.
Maybe will take a look later if we have another way to get this info as well via another method and combine the results (as another PR)
There was a problem hiding this comment.
how about
const versionCode = pkg.versionCode && !Number.isNaN(+pkg.versionCode) ? +pkg.versionCode : null
There was a problem hiding this comment.
Sure. I didn't observe weird values as the versionCode output in my tests, so this would work well.
|
This is a breaking change. We must bump a major version of this module in order to avoid further issues in drivers that use this module if |
|
Updated. I'll add |
## [13.0.0](v12.7.0...v13.0.0) (2026-02-20) ### ⚠ BREAKING CHANGES * modify the mobile:listApps style to follow XCUITest driver format ### Bug Fixes * modify the format of listApps to follow xcuitest's format ([#1059](#1059)) ([0a683f9](0a683f9))
|
🎉 This PR is included in version 13.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE: modify the mobile:listApps style to follow XCUITest driver format
I was wrong for the format. listApps in xcuitest is like below, so let me modify the return format to be similar. We can add more info into them later: