Skip to content

Commit

Permalink
feat: add versionCheck to not install if the greatder version of app …
Browse files Browse the repository at this point in the history
…was already installed
  • Loading branch information
KazuCocoa committed Feb 8, 2024
1 parent 2f0bc94 commit 0eb0b6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/commands/app-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ export async function installApp(appPath, opts) {
*/
export async function mobileInstallApp(opts) {
const {appPath} = requireArgs('appPath', opts);
const {versionCheck} = opts;
if (versionCheck) {
await this.adb.installOrUpgrade(appPath, null, opts);
return;
}

return await this.installApp(appPath, opts);
}

Expand Down
1 change: 1 addition & 0 deletions lib/commands/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export interface RemoveAppOpts extends UninstallOptions {

export interface InstallAppOpts extends InstallOptions {
appPath: string;
versionCheck: boolean;
}

export interface WebviewsMapping {
Expand Down

0 comments on commit 0eb0b6d

Please sign in to comment.