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 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 location update request is going to be send asynchronously every time when the
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
@@ -6,8 +6,8 @@ android {
6
6
  defaultConfig {
7
7
  minSdkVersion 18
8
8
  targetSdkVersion 30
9
- versionCode 32
10
- versionName "3.6.0"
9
+ versionCode 33
10
+ versionName "4.0.0"
11
11
  applicationId "io.appium.settings"
12
12
  }
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io.appium.settings",
3
- "version": "3.6.0",
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-gulp-plugins": "^5.0.0",
42
+ "@appium/gulp-plugins": "^6.0.0",
43
43
  "gulp": "^4.0.0"
44
44
  }
45
45
  }