appium-uiautomator2-server 7.4.1 → 7.5.0

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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## [7.5.0](https://github.com/appium/appium-uiautomator2-server/compare/v7.4.1...v7.5.0) (2025-04-23)
2
+
3
+ ### Features
4
+
5
+ * **build:** migrate Gradle build files from Groovy DSL (build.gradle) to Kotlin DSL (build.gradle.kts) ([#698](https://github.com/appium/appium-uiautomator2-server/issues/698)) ([a6e15c3](https://github.com/appium/appium-uiautomator2-server/commit/a6e15c3073ead1d2bb98666ac4139e41be5fb10a))
6
+
1
7
  ## [7.4.1](https://github.com/appium/appium-uiautomator2-server/compare/v7.4.0...v7.4.1) (2025-04-14)
2
8
 
3
9
  ### Miscellaneous Chores
package/README.md CHANGED
@@ -1,44 +1,45 @@
1
1
 
2
- ### appium-uiautomator2-server
2
+ # appium-uiautomator2-server
3
3
 
4
4
  [![NPM version](http://img.shields.io/npm/v/appium-uiautomator2-server.svg)](https://npmjs.org/package/appium-uiautomator2-server)
5
5
  [![Downloads](http://img.shields.io/npm/dm/appium-uiautomator2-server.svg)](https://npmjs.org/package/appium-uiautomator2-server)
6
6
 
7
7
  A netty server that runs on the device listening for commands and executes using UiAutomator V2.
8
8
 
9
- ### building project
9
+ ## building project
10
+
10
11
  build the android project using below commands
11
12
 
12
- `gradle clean assembleServerDebug assembleServerDebugAndroidTest`
13
+ `./gradlew clean assembleServerDebug assembleServerDebugAndroidTest`
14
+
15
+ You can also build with specific version name and version code using this command.
16
+ `./gradlew -PversionName=8.0.0 -PversionCode=300 clean assembleServerDebug assembleServerDebugAndroidTest`
13
17
 
18
+ ## Starting server
14
19
 
15
- ### Starting server
16
20
  push both src and test apks to the device and execute the instrumentation tests.
17
21
 
18
22
  `adb shell am instrument -w io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner`
19
23
 
24
+ ## run unitTest
20
25
 
21
-
22
- ### run unitTest
23
26
  build the unitTest flavor using the below commands
24
27
 
25
- `gradle clean assembleE2ETestDebug assembleE2ETestDebugAndroidTest`
26
-
28
+ `./gradlew clean assembleE2ETestDebug assembleE2ETestDebugAndroidTest`
27
29
 
28
30
  unitTest flavor contains tests for handlers and can be invoked by using following command
29
31
 
30
- `gradle clean connectedE2ETestDebugAndroidTest`
32
+ `./gradlew clean connectedE2ETestDebugAndroidTest`
31
33
 
32
34
  the above command takes care about installing the AUT apk in to the testing device/emulator before running the tests.
33
35
 
34
-
35
36
  you can also invoke the test using below command
36
37
 
37
38
  `adb shell am instrument -w io.appium.uiautomator2.e2etest.test/androidx.test.runner.AndroidJUnitRunner`
38
39
 
39
40
  Note: AUT apk should be installed before executing above command.
40
41
 
42
+ ## Other Sections
41
43
 
42
- ### Other Sections:
43
44
  * [WIKI](https://github.com/appium/appium-uiautomator2-server/wiki)
44
45
  * [Version Release](https://github.com/appium/appium-uiautomator2-server/blob/master/doc/release.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-uiautomator2-server",
3
- "version": "7.4.1",
3
+ "version": "7.5.0",
4
4
  "description": "A netty server with uiautomator2 handlers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "homepage": "https://github.com/appium/appium-uiautomator2-server",
30
30
  "scripts": {
31
- "bump-gradle-version": "node ./scripts/gradle-version-update.js --package-version=${npm_package_version} && git add app/build.gradle",
31
+ "bump-gradle-version": "node ./scripts/gradle-version-update.js --package-version=${npm_package_version} && git add gradle.properties",
32
32
  "build": "./gradlew clean assembleServerDebug assembleServerDebugAndroidTest && npm run move-apks && npm run sign-apk",
33
33
  "sign-apk": "node ./scripts/sign-apk.js",
34
34
  "lint:java": "./gradlew lint",