Skip to content

Commit edfc7d0

Browse files
authored
chore: set APPIUM_HOME and remove patch (#2608)
1 parent 96b48cb commit edfc7d0

File tree

5 files changed

+35
-91
lines changed

5 files changed

+35
-91
lines changed

.yarn/patches/appium-npm-3.0.2-7d0e99d983.patch

Lines changed: 0 additions & 25 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ logFilters:
1414
nodeLinker: node-modules
1515
npmRegistryServer: "https://registry.npmjs.org"
1616
packageExtensions:
17+
appium@3:
18+
dependencies:
19+
"@colors/colors": ^1.6.0
1720
react-native-windows@*:
1821
peerDependenciesMeta:
1922
"@types/react":

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"@rnx-kit/polyfills": "^0.2.0",
3939
"@rnx-kit/tsconfig": "^2.0.0",
4040
"@types/react": "~19.0.0",
41-
"appium": "patch:appium@npm%3A3.1.1#~/.yarn/patches/appium-npm-3.0.2-7d0e99d983.patch",
42-
"appium-uiautomator2-driver": "^5.0.0",
41+
"appium": "^3.1.1",
42+
"appium-uiautomator2-driver": "^6.0.0",
4343
"appium-xcuitest-driver": "^10.0.0",
4444
"react-native-test-app": "workspace:*",
4545
"webdriverio": "^9.0.0"

scripts/testing/test-matrix.mts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
import { spawn, spawnSync } from "node:child_process";
66
import * as fs from "node:fs";
7+
import * as path from "node:path";
78
import { URL, fileURLToPath } from "node:url";
89
import * as util from "node:util";
910
import { readTextFile, toVersionNumber, v } from "../helpers.js";
@@ -135,6 +136,10 @@ function showBanner(message: string) {
135136
* Starts Appium server.
136137
*/
137138
function startAppiumServer(logPath = "appium.log") {
139+
if (!process.env["APPIUM_HOME"]) {
140+
const appium = fileURLToPath(import.meta.resolve("../../package.json"));
141+
process.env["APPIUM_HOME"] = path.dirname(appium);
142+
}
138143
log(`Appium log path: ${logPath}`);
139144
return run("appium", logPath);
140145
}

yarn.lock

Lines changed: 25 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -5026,18 +5026,18 @@ __metadata:
50265026
languageName: node
50275027
linkType: hard
50285028

5029-
"appium-android-driver@npm:^11.0.9":
5030-
version: 11.0.12
5031-
resolution: "appium-android-driver@npm:11.0.12"
5029+
"appium-android-driver@npm:^12.3.0":
5030+
version: 12.3.0
5031+
resolution: "appium-android-driver@npm:12.3.0"
50325032
dependencies:
50335033
"@appium/support": "npm:^7.0.0-rc.1"
50345034
"@colors/colors": "npm:^1.6.0"
50355035
appium-adb: "npm:^14.0.0"
5036-
appium-chromedriver: "npm:^8.0.16"
5036+
appium-chromedriver: "npm:^8.0.18"
50375037
asyncbox: "npm:^3.0.0"
50385038
axios: "npm:^1.x"
50395039
bluebird: "npm:^3.4.7"
5040-
io.appium.settings: "npm:^6.0.0"
5040+
io.appium.settings: "npm:^7.0.4"
50415041
lodash: "npm:^4.17.4"
50425042
lru-cache: "npm:^11.1.0"
50435043
moment: "npm:^2.24.0"
@@ -5049,11 +5049,11 @@ __metadata:
50495049
ws: "npm:^8.0.0"
50505050
peerDependencies:
50515051
appium: ^3.0.0-rc.2
5052-
checksum: 10c0/c890e857b8b0804cd3805c73b835e9c6f8f015c092e84870d706c40195137b1ffd53093a5bb3ea06c178b1e02372f668ad4b2f9db55f9f86dd19280a5d2c1461
5052+
checksum: 10c0/a20d13030688265326a6d34e36be2ea8ca06b5a0435b7d25fb87991cd006e3817c2db512462216ab1ffc77f7e655404b2d1590d7dad03eb6fb8e7d2d7407db11
50535053
languageName: node
50545054
linkType: hard
50555055

5056-
"appium-chromedriver@npm:^8.0.16":
5056+
"appium-chromedriver@npm:^8.0.18":
50575057
version: 8.0.22
50585058
resolution: "appium-chromedriver@npm:8.0.22"
50595059
dependencies:
@@ -5169,32 +5169,32 @@ __metadata:
51695169
languageName: node
51705170
linkType: hard
51715171

5172-
"appium-uiautomator2-driver@npm:^5.0.0":
5173-
version: 5.0.7
5174-
resolution: "appium-uiautomator2-driver@npm:5.0.7"
5172+
"appium-uiautomator2-driver@npm:^6.0.0":
5173+
version: 6.3.0
5174+
resolution: "appium-uiautomator2-driver@npm:6.3.0"
51755175
dependencies:
51765176
appium-adb: "npm:^14.0.0"
5177-
appium-android-driver: "npm:^11.0.9"
5178-
appium-uiautomator2-server: "npm:^8.1.1"
5177+
appium-android-driver: "npm:^12.3.0"
5178+
appium-uiautomator2-server: "npm:^9.0.0"
51795179
asyncbox: "npm:^3.0.0"
51805180
axios: "npm:^1.12.2"
51815181
bluebird: "npm:^3.5.1"
51825182
css-selector-parser: "npm:^3.0.0"
5183-
io.appium.settings: "npm:^6.0.8"
5183+
io.appium.settings: "npm:^7.0.1"
51845184
lodash: "npm:^4.17.4"
51855185
portscanner: "npm:^2.2.0"
51865186
source-map-support: "npm:^0.x"
51875187
teen_process: "npm:^3.0.0"
51885188
peerDependencies:
51895189
appium: ^3.0.0-rc.2
5190-
checksum: 10c0/ca0a7175af95311fce03e9716af0983eee9bd9f0842e1bd2d849c85db9f6d185173d12728c77d89f747b2e3bac12359d800c625ef995e0bc9a22a41c6b153ac8
5190+
checksum: 10c0/ef15df62ce3159056175d71848b5b100628ecfa929364368b59aef407878809685e7d224395230f76e0bb5d3563d6fb0c9135134e7fb6109095bc64c396b8318
51915191
languageName: node
51925192
linkType: hard
51935193

5194-
"appium-uiautomator2-server@npm:^8.1.1":
5195-
version: 8.1.2
5196-
resolution: "appium-uiautomator2-server@npm:8.1.2"
5197-
checksum: 10c0/a636d424283851a0fb1384280f89a607abfe0f33cab6051f903f6cdea1da68e8a74a1436bf261e61bb172c9465303d95a3f25be1b3cf01accd5b75cf225dc220
5194+
"appium-uiautomator2-server@npm:^9.0.0":
5195+
version: 9.1.4
5196+
resolution: "appium-uiautomator2-server@npm:9.1.4"
5197+
checksum: 10c0/7574c4e5da890c502c318e566377db658ff4e1449b8b7a381bc68a43eebb13325e8b866014bcbd39fddbb9eb2651f0ab0051a55c7ef7e22020feda335de5242f
51985198
languageName: node
51995199
linkType: hard
52005200

@@ -5274,7 +5274,7 @@ __metadata:
52745274
languageName: node
52755275
linkType: hard
52765276

5277-
"appium@npm:3.1.1":
5277+
"appium@npm:^3.1.1":
52785278
version: 3.1.1
52795279
resolution: "appium@npm:3.1.1"
52805280
dependencies:
@@ -5313,45 +5313,6 @@ __metadata:
53135313
languageName: node
53145314
linkType: hard
53155315

5316-
"appium@patch:appium@npm%3A3.1.1#~/.yarn/patches/appium-npm-3.0.2-7d0e99d983.patch":
5317-
version: 3.1.1
5318-
resolution: "appium@patch:appium@npm%3A3.1.1#~/.yarn/patches/appium-npm-3.0.2-7d0e99d983.patch::version=3.1.1&hash=8747c0"
5319-
dependencies:
5320-
"@appium/base-driver": "npm:^10.1.1"
5321-
"@appium/base-plugin": "npm:^3.0.4"
5322-
"@appium/docutils": "npm:^2.1.2"
5323-
"@appium/logger": "npm:^2.0.2"
5324-
"@appium/schema": "npm:^1.0.0"
5325-
"@appium/support": "npm:^7.0.3"
5326-
"@appium/types": "npm:^1.1.1"
5327-
"@sidvind/better-ajv-errors": "npm:4.0.0"
5328-
ajv: "npm:8.17.1"
5329-
ajv-formats: "npm:3.0.1"
5330-
argparse: "npm:2.0.1"
5331-
async-lock: "npm:1.4.1"
5332-
asyncbox: "npm:3.0.0"
5333-
axios: "npm:1.13.2"
5334-
bluebird: "npm:3.7.2"
5335-
lilconfig: "npm:3.1.3"
5336-
lodash: "npm:4.17.21"
5337-
lru-cache: "npm:11.2.2"
5338-
ora: "npm:5.4.1"
5339-
package-changed: "npm:3.0.0"
5340-
resolve-from: "npm:5.0.0"
5341-
semver: "npm:7.7.3"
5342-
source-map-support: "npm:0.5.21"
5343-
teen_process: "npm:3.0.2"
5344-
type-fest: "npm:5.2.0"
5345-
winston: "npm:3.18.3"
5346-
wrap-ansi: "npm:7.0.0"
5347-
ws: "npm:8.18.3"
5348-
yaml: "npm:2.8.1"
5349-
bin:
5350-
appium: index.js
5351-
checksum: 10c0/5d6facbd4a953b38bc18658152868a8b972c4bc352545dcebde49c75c52a766fbb748ea5f1de8300cc1c5a5282123361810b178df214c98e376118d3c1b310c3
5352-
languageName: node
5353-
linkType: hard
5354-
53555316
"archiver-utils@npm:^5.0.0, archiver-utils@npm:^5.0.2":
53565317
version: 5.0.2
53575318
resolution: "archiver-utils@npm:5.0.2"
@@ -7854,8 +7815,8 @@ __metadata:
78547815
"@rnx-kit/polyfills": "npm:^0.2.0"
78557816
"@rnx-kit/tsconfig": "npm:^2.0.0"
78567817
"@types/react": "npm:~19.0.0"
7857-
appium: "patch:appium@npm%3A3.1.1#~/.yarn/patches/appium-npm-3.0.2-7d0e99d983.patch"
7858-
appium-uiautomator2-driver: "npm:^5.0.0"
7818+
appium: "npm:^3.1.1"
7819+
appium-uiautomator2-driver: "npm:^6.0.0"
78597820
appium-xcuitest-driver: "npm:^10.0.0"
78607821
react: "npm:19.0.0"
78617822
react-native: "npm:^0.79.0"
@@ -9122,9 +9083,9 @@ __metadata:
91229083
languageName: node
91239084
linkType: hard
91249085

9125-
"io.appium.settings@npm:^6.0.0, io.appium.settings@npm:^6.0.8":
9126-
version: 6.0.8
9127-
resolution: "io.appium.settings@npm:6.0.8"
9086+
"io.appium.settings@npm:^7.0.1, io.appium.settings@npm:^7.0.4":
9087+
version: 7.0.4
9088+
resolution: "io.appium.settings@npm:7.0.4"
91289089
dependencies:
91299090
"@appium/logger": "npm:^2.0.0-rc.1"
91309091
asyncbox: "npm:^3.0.0"
@@ -9133,7 +9094,7 @@ __metadata:
91339094
semver: "npm:^7.5.4"
91349095
source-map-support: "npm:^0.x"
91359096
teen_process: "npm:^3.0.0"
9136-
checksum: 10c0/54d33cc1ee64f39e830c0a99e3bc93d7d486de1a8e05409ac0feb885e010943fdb02566435de05d0ef223486b5b25f015233167401a2f2ae6f1fe2b21e6a0e4e
9097+
checksum: 10c0/3fef36d660f3eda378991721bed2d0979b9646cd68883406476717e6759a4d85f34d1c0732c0abe615215d3cd4b03151f43247c856fe7cebef6210edc6130e45
91379098
languageName: node
91389099
linkType: hard
91399100

0 commit comments

Comments
 (0)