From ddc7477b6c62b93469364ed433b88cbdbb91e4b7 Mon Sep 17 00:00:00 2001 From: "Hiroaki Matsushige a.k.a. Luo Boming" <14920359+fur0ut0@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:43:31 +0900 Subject: [PATCH] fix: Make package parameter of deep link command optional (#847) --- README.md | 2 +- lib/commands/types.ts | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eef242a81..645b5642a 100644 --- a/README.md +++ b/README.md @@ -431,7 +431,7 @@ Start URI that may take users directly to the specific content in the app. Read Name | Type | Required | Description | Example --- | --- | --- | --- | --- url | string | yes | The URL to start | theapp://login/ -package | string | yes | The name of the package to start the URI with | 'com.mycompany' +package | string | no | The name of the package to start the URI with. This argument was required previously but became optional since version 3.9.3 | 'com.mycompany' waitForLaunch | boolean | no | If `false` then ADB won't wait for the started activity to return the control. `true` by default | false ### mobile: startLogsBroadcast diff --git a/lib/commands/types.ts b/lib/commands/types.ts index aa2125375..c5bad4910 100644 --- a/lib/commands/types.ts +++ b/lib/commands/types.ts @@ -93,7 +93,7 @@ export interface DeepLinkOpts { /** * The name of the package to start the URI with. */ - package: string; + package?: string; /** * If `false` then adb won't wait for the started activity to return the control. * @defaultValue true diff --git a/package.json b/package.json index 375374219..1d44805c4 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "singleQuote": true }, "dependencies": { - "appium-adb": "^12.7.0", + "appium-adb": "^12.7.3", "appium-android-driver": "^9.14.2", "appium-uiautomator2-server": "^7.0.24", "asyncbox": "^3.0.0",