io.appium.settings 3.6.0 → 4.0.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/README.md +10 -2
- package/apks/settings_apk-debug.apk +0 -0
- package/app/build.gradle +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -115,15 +115,23 @@ You can set the [Locale](https://developer.android.com/reference/java/util/Local
|
|
|
115
115
|
You can retrieve the current geo location by executing:
|
|
116
116
|
|
|
117
117
|
```shell
|
|
118
|
-
$ adb shell am broadcast -a io.appium.settings.location -n io.appium.settings/.receivers.LocationInfoReceiver
|
|
118
|
+
$ adb shell am broadcast -a io.appium.settings.location -n io.appium.settings/.receivers.LocationInfoReceiver --ez forceUpdate false
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
The first value in the returned `data` string is the current latitude, the second is the longitude and the last one is the altitude. An empty string is returned if the data cannot be retrieved (more details on the failure cause can be found in the logcat output).
|
|
122
122
|
|
|
123
123
|
Since version 3.6.0 it is also possible to provide `forceUpdate` boolean argument. If it is set to
|
|
124
|
-
`true` then
|
|
124
|
+
`true` then GPS cache refresh request is going to be send asynchronously every time when the
|
|
125
125
|
current location is requested. By default the cached location value is returned instead.
|
|
126
126
|
|
|
127
|
+
_Note_
|
|
128
|
+
|
|
129
|
+
The forced GPS cache refresh feature only works if the device under test has
|
|
130
|
+
Google Play Services installed. In case the vanilla LocationManager is used the device API level must be at
|
|
131
|
+
version 30 (Android R) or higher. If none of the conditions above is satisfied then enabling of the `forceUpdate`
|
|
132
|
+
option would have no effect.
|
|
133
|
+
|
|
134
|
+
|
|
127
135
|
## Setting Mock Locations
|
|
128
136
|
|
|
129
137
|
Start sending scheduled updates (every 2s) for mock location with the specified values by executing:
|
|
Binary file
|
package/app/build.gradle
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "io.appium.settings",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "App for dealing with Android settings",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/appium/io.appium.settings",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"appium
|
|
42
|
+
"@appium/gulp-plugins": "^6.0.0",
|
|
43
43
|
"gulp": "^4.0.0"
|
|
44
44
|
}
|
|
45
45
|
}
|