io.appium.settings 3.6.0 → 4.0.2
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 +16 -2
- package/apks/settings_apk-debug.apk +0 -0
- package/app/build.gradle +2 -2
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Settings
|
|
2
2
|
|
|
3
|
+
[](https://npmjs.org/package/io.appium.settings)
|
|
4
|
+
[](https://npmjs.org/package/io.appium.settings)
|
|
5
|
+
|
|
6
|
+
[](https://github.com/appium/io.appium.settings/actions/workflows/publish.js.yml)
|
|
7
|
+
|
|
8
|
+
|
|
3
9
|
Toggle settings in Android device or emulator.
|
|
4
10
|
|
|
5
11
|
A small and simple Android application that deals with the system settings. Then the application shuts down.
|
|
@@ -115,15 +121,23 @@ You can set the [Locale](https://developer.android.com/reference/java/util/Local
|
|
|
115
121
|
You can retrieve the current geo location by executing:
|
|
116
122
|
|
|
117
123
|
```shell
|
|
118
|
-
$ adb shell am broadcast -a io.appium.settings.location -n io.appium.settings/.receivers.LocationInfoReceiver
|
|
124
|
+
$ adb shell am broadcast -a io.appium.settings.location -n io.appium.settings/.receivers.LocationInfoReceiver --ez forceUpdate false
|
|
119
125
|
```
|
|
120
126
|
|
|
121
127
|
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
128
|
|
|
123
129
|
Since version 3.6.0 it is also possible to provide `forceUpdate` boolean argument. If it is set to
|
|
124
|
-
`true` then
|
|
130
|
+
`true` then GPS cache refresh request is going to be send asynchronously every time when the
|
|
125
131
|
current location is requested. By default the cached location value is returned instead.
|
|
126
132
|
|
|
133
|
+
_Note_
|
|
134
|
+
|
|
135
|
+
The forced GPS cache refresh feature only works if the device under test has
|
|
136
|
+
Google Play Services installed. In case the vanilla LocationManager is used the device API level must be at
|
|
137
|
+
version 30 (Android R) or higher. If none of the conditions above is satisfied then enabling of the `forceUpdate`
|
|
138
|
+
option would have no effect.
|
|
139
|
+
|
|
140
|
+
|
|
127
141
|
## Setting Mock Locations
|
|
128
142
|
|
|
129
143
|
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.2",
|
|
4
4
|
"description": "App for dealing with Android settings",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"app/build.gradle",
|
|
31
31
|
"app/src/",
|
|
32
32
|
"gradle/",
|
|
33
|
-
"!.DS_Store"
|
|
33
|
+
"!.DS_Store",
|
|
34
|
+
"NOTICE.txt"
|
|
34
35
|
],
|
|
35
36
|
"author": "https://github.com/appium",
|
|
36
37
|
"license": "Apache-2.0",
|
|
@@ -39,7 +40,9 @@
|
|
|
39
40
|
},
|
|
40
41
|
"homepage": "https://github.com/appium/io.appium.settings",
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"appium
|
|
43
|
-
"
|
|
43
|
+
"@appium/gulp-plugins": "^6.0.0",
|
|
44
|
+
"@semantic-release/git": "^10.0.1",
|
|
45
|
+
"gulp": "^4.0.0",
|
|
46
|
+
"semantic-release": "^19.0.2"
|
|
44
47
|
}
|
|
45
48
|
}
|