appium-espresso-driver 3.3.1 → 3.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,15 @@
1
+ ## [3.5.0](https://github.com/appium/appium-espresso-driver/compare/v3.4.0...v3.5.0) (2024-09-23)
2
+
3
+ ### Features
4
+
5
+ * Document mobile geolocation APIs ([#1029](https://github.com/appium/appium-espresso-driver/issues/1029)) ([a288990](https://github.com/appium/appium-espresso-driver/commit/a288990f5d90720969d2be25c782e883b7a071c7))
6
+
7
+ ## [3.4.0](https://github.com/appium/appium-espresso-driver/compare/v3.3.1...v3.4.0) (2024-09-17)
8
+
9
+ ### Features
10
+
11
+ * Bump android driver ([#1028](https://github.com/appium/appium-espresso-driver/issues/1028)) ([0207af4](https://github.com/appium/appium-espresso-driver/commit/0207af4ce96b948b25969f612c57220ce8f5a5e1))
12
+
1
13
  ## [3.3.1](https://github.com/appium/appium-espresso-driver/compare/v3.3.0...v3.3.1) (2024-07-31)
2
14
 
3
15
  ### Bug Fixes
package/README.md CHANGED
@@ -817,6 +817,37 @@ Name | Type | Required | Description | Example
817
817
  --- | --- | --- | --- | ---
818
818
  timeoutMs | number | no | The maximum number of milliseconds to block until GPS cache is refreshed. If the API call does not receive a confirmation about successful cache refresh within this timeout then an error is thrown. Providing zero or a negative value to it skips waiting completely and does not check for any errors. 20000 ms by default. | 60000
819
819
 
820
+ ### mobile: setGeolocation
821
+
822
+ Sets emulated geolocation coordinates on the device under test.
823
+
824
+ #### Arguments
825
+
826
+ Name | Type | Required | Description | Example
827
+ --- | --- | --- | --- | ---
828
+ latitude | number | yes | [Latitude](https://en.wikipedia.org/wiki/Latitude) value | 32.456
829
+ longitude | number | yes | [longitude](https://en.wikipedia.org/wiki/Longitude) value | 32.456
830
+ altitude | number | no | [Altitude](https://en.wikipedia.org/wiki/Altitude) value. Zero by default | 5.678
831
+
832
+ ### mobile: getGeolocation
833
+
834
+ Retrieves current geolocation coordinates from the device under test. If coordinates are mocked/emulated
835
+ then these coordinates would be returned.
836
+
837
+ #### Returned Result
838
+
839
+ A map with the following entries:
840
+
841
+ Name | Type | Description | Example
842
+ --- | --- | --- | ---
843
+ latitude | number | [Latitude](https://en.wikipedia.org/wiki/Latitude) value | 32.456
844
+ longitude | number | [longitude](https://en.wikipedia.org/wiki/Longitude) value | 32.456
845
+ altitude | number | [Altitude](https://en.wikipedia.org/wiki/Altitude) value | 5.678
846
+
847
+ ### mobile: resetGeolocation
848
+
849
+ Resets mocked geolocation provider to the default/system one. Only works for real devices.
850
+
820
851
  ### mobile: pullFile
821
852
 
822
853
  Pulls a remote file from the device.
@@ -2,6 +2,6 @@ package io.appium.espressoserver.lib.helpers
2
2
 
3
3
  // This value is updated automatically by the NPM versioning script
4
4
  // It should be in sync with the NPM module version from package.json
5
- private const val VERSION = "3.3.1"
5
+ private const val VERSION = "3.5.0"
6
6
 
7
7
  fun getEspressoServerVersion() = VERSION