appium-android-driver 11.0.3 → 11.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/lib/commands/context/helpers.d.ts +23 -2
- package/build/lib/commands/context/helpers.d.ts.map +1 -1
- package/build/lib/commands/context/helpers.js +1 -1
- package/build/lib/commands/permissions.js +2 -2
- package/lib/commands/context/helpers.js +1 -1
- package/lib/commands/permissions.js +2 -2
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [11.0.4](https://github.com/appium/appium-android-driver/compare/v11.0.3...v11.0.4) (2025-09-15)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* **deps:** bump type-fest from 4.41.0 to 5.0.0 ([#1012](https://github.com/appium/appium-android-driver/issues/1012)) ([d743004](https://github.com/appium/appium-android-driver/commit/d74300462997ad033a9473201e0ff1d121814033))
|
|
6
|
+
|
|
1
7
|
## [11.0.3](https://github.com/appium/appium-android-driver/compare/v11.0.2...v11.0.3) (2025-09-11)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
* @param {string} browser
|
|
4
|
-
* @returns {
|
|
4
|
+
* @returns {CHROME_BROWSER_PACKAGE_ACTIVITY[keyof CHROME_BROWSER_PACKAGE_ACTIVITY]}
|
|
5
5
|
*/
|
|
6
|
-
export function getChromePkg(browser: string):
|
|
6
|
+
export function getChromePkg(browser: string): {
|
|
7
|
+
readonly pkg: "com.android.chrome";
|
|
8
|
+
readonly activity: "com.google.android.apps.chrome.Main";
|
|
9
|
+
} | {
|
|
10
|
+
readonly pkg: "org.chromium.chrome.shell";
|
|
11
|
+
readonly activity: ".ChromeShellActivity";
|
|
12
|
+
} | {
|
|
13
|
+
readonly pkg: "com.chrome.beta";
|
|
14
|
+
readonly activity: "com.google.android.apps.chrome.Main";
|
|
15
|
+
} | {
|
|
16
|
+
readonly pkg: "com.android.browser";
|
|
17
|
+
readonly activity: "com.android.browser.BrowserActivity";
|
|
18
|
+
} | {
|
|
19
|
+
readonly pkg: "org.chromium.chrome";
|
|
20
|
+
readonly activity: "com.google.android.apps.chrome.Main";
|
|
21
|
+
} | {
|
|
22
|
+
readonly pkg: "org.chromium.webview_shell";
|
|
23
|
+
readonly activity: "org.chromium.webview_shell.WebViewBrowserActivity";
|
|
24
|
+
} | {
|
|
25
|
+
readonly pkg: "com.android.chrome";
|
|
26
|
+
readonly activity: "com.google.android.apps.chrome.Main";
|
|
27
|
+
};
|
|
7
28
|
/**
|
|
8
29
|
* Parse webview names for getContexts
|
|
9
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../lib/commands/context/helpers.js"],"names":[],"mappings":"AAoIA;;;;GAIG;AACH,sCAHW,MAAM
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../lib/commands/context/helpers.js"],"names":[],"mappings":"AAoIA;;;;GAIG;AACH,sCAHW,MAAM;;;;;;;;;;;;;;;;;;;;;EAQhB;AA4GD;;;;;;;GAOG;AACH,+FAJW,OAAO,UAAU,EAAE,eAAe,EAAE,iDACpC,OAAO,UAAU,EAAE,eAAe,GAChC,MAAM,EAAE,CA4BpB;AAqID;;;;;;;;;;;;;;;;GAgBG;AACH,0MAHW,OAAO,UAAU,EAAE,eAAe,GAChC,OAAO,CAAC,OAAO,UAAU,EAAE,eAAe,EAAE,CAAC,CAsEzD;AAwLD;;;;;;GAMG;AACH,uFALW,OAAO,cAAc,EAAE,iBAAiB,eACxC,MAAM,YACN,MAAM,GACJ,OAAO,CAAC,YAAY,CAAC,CA4EjC;AAED;;;;;GAKG;AACH,0CAJ4B,CAAC,SAAf,YAAa,4DAChB,CAAC,GACC,OAAO,CAAC,CAAC,CAAC,CAUtB;AAED;;;GAGG;AACH,wFAFa,OAAO,CAQnB;AAED;;;GAGG;AACH,kFAFa,OAAO,CAAC,IAAI,CAAC,CAqBzB;AAryBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BG;AACH,kCAAmC,oBAAoB,CAAC;AACxD,kDAKE;AAIF,yBAA0B,YAAY,CAAC;AACvC,0BAA2B,SAAS,CAAC;AACrC,2BAA4B,UAAU,CAAC;AACvC,sCAA8C;AAC9C,6CAAqF;kBAwwBxE,OAAO,YAAY,EAAE,GAAG;6BAzzBV,qBAAqB"}
|
|
@@ -136,7 +136,7 @@ async function cdpInfo(host, port) {
|
|
|
136
136
|
/**
|
|
137
137
|
*
|
|
138
138
|
* @param {string} browser
|
|
139
|
-
* @returns {
|
|
139
|
+
* @returns {CHROME_BROWSER_PACKAGE_ACTIVITY[keyof CHROME_BROWSER_PACKAGE_ACTIVITY]}
|
|
140
140
|
*/
|
|
141
141
|
function getChromePkg(browser) {
|
|
142
142
|
return (exports.CHROME_BROWSER_PACKAGE_ACTIVITY[browser.toLowerCase()] ||
|
|
@@ -105,7 +105,7 @@ async function mobileGetPermissions(type = PERMISSIONS_TYPE.REQUESTED, appPackag
|
|
|
105
105
|
* @this {AndroidDriver}
|
|
106
106
|
* @param {string|string[]} permissions
|
|
107
107
|
* @param {string} appPackage
|
|
108
|
-
* @param {
|
|
108
|
+
* @param {PM_ACTION[keyof PM_ACTION]} action
|
|
109
109
|
*/
|
|
110
110
|
async function changePermissionsViaPm(permissions, appPackage, action) {
|
|
111
111
|
if (!lodash_1.default.values(PM_ACTION).includes(action)) {
|
|
@@ -139,7 +139,7 @@ async function changePermissionsViaPm(permissions, appPackage, action) {
|
|
|
139
139
|
* @this {AndroidDriver}
|
|
140
140
|
* @param {string|string[]} permissions
|
|
141
141
|
* @param {string} appPackage
|
|
142
|
-
* @param {
|
|
142
|
+
* @param {APPOPS_ACTION[keyof APPOPS_ACTION]} action
|
|
143
143
|
*/
|
|
144
144
|
async function changePermissionsViaAppops(permissions, appPackage, action) {
|
|
145
145
|
if (!lodash_1.default.values(APPOPS_ACTION).includes(action)) {
|
|
@@ -133,7 +133,7 @@ async function cdpInfo(host, port) {
|
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @param {string} browser
|
|
136
|
-
* @returns {
|
|
136
|
+
* @returns {CHROME_BROWSER_PACKAGE_ACTIVITY[keyof CHROME_BROWSER_PACKAGE_ACTIVITY]}
|
|
137
137
|
*/
|
|
138
138
|
export function getChromePkg(browser) {
|
|
139
139
|
return (
|
|
@@ -117,7 +117,7 @@ export async function mobileGetPermissions(type = PERMISSIONS_TYPE.REQUESTED, ap
|
|
|
117
117
|
* @this {AndroidDriver}
|
|
118
118
|
* @param {string|string[]} permissions
|
|
119
119
|
* @param {string} appPackage
|
|
120
|
-
* @param {
|
|
120
|
+
* @param {PM_ACTION[keyof PM_ACTION]} action
|
|
121
121
|
*/
|
|
122
122
|
async function changePermissionsViaPm(permissions, appPackage, action) {
|
|
123
123
|
if (!_.values(PM_ACTION).includes(action)) {
|
|
@@ -153,7 +153,7 @@ async function changePermissionsViaPm(permissions, appPackage, action) {
|
|
|
153
153
|
* @this {AndroidDriver}
|
|
154
154
|
* @param {string|string[]} permissions
|
|
155
155
|
* @param {string} appPackage
|
|
156
|
-
* @param {
|
|
156
|
+
* @param {APPOPS_ACTION[keyof APPOPS_ACTION]} action
|
|
157
157
|
*/
|
|
158
158
|
async function changePermissionsViaAppops(permissions, appPackage, action) {
|
|
159
159
|
if (!_.values(APPOPS_ACTION).includes(action)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-android-driver",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.4",
|
|
4
4
|
"description": "Android UiAutomator and Chrome support for Appium",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"appium",
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
"semver": "^7.0.0",
|
|
65
65
|
"source-map-support": "^0.x",
|
|
66
66
|
"teen_process": "^3.0.0",
|
|
67
|
-
"type-fest": "^4.4.0",
|
|
68
67
|
"ws": "^8.0.0"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|