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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Settings
2
2
 
3
+ [![NPM version](http://img.shields.io/npm/v/io.appium.settings.svg)](https://npmjs.org/package/io.appium.settings)
4
+ [![Downloads](http://img.shields.io/npm/dm/io.appium.settings.svg)](https://npmjs.org/package/io.appium.settings)
5
+
6
+ [![Release](https://github.com/appium/io.appium.settings/actions/workflows/publish.js.yml/badge.svg)](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 location update request is going to be send asynchronously every time when the
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
@@ -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 35
10
+ versionName "4.0.2"
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.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-gulp-plugins": "^5.0.0",
43
- "gulp": "^4.0.0"
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
  }