io.appium.settings 4.0.0 → 4.0.3

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.
@@ -31,6 +37,8 @@ To install:
31
37
  ```shell
32
38
  $ cd app/build/outputs/apk
33
39
  $ adb install settings_apk-debug.apk
40
+ # You can grant permissions with -g option as below for over api level 23 devices
41
+ # $ adb install -g settings_apk-debug.apk
34
42
  ```
35
43
 
36
44
  To uninstall:
@@ -101,14 +109,15 @@ $ adb shell am broadcast -a io.appium.settings.animation --es setstatus disable
101
109
  Set particular locale:
102
110
 
103
111
  ```shell
104
- $ adb shell am broadcast -a io.appium.settings.locale --es lang ja --es country JP
112
+ $ adb shell am broadcast -a io.appium.settings.locale -n io.appium.settings/.receivers.LocaleSettingReceiver --es lang ja --es country JP
105
113
  $ adb shell getprop persist.sys.locale # ja-JP
106
- $ adb shell am broadcast -a io.appium.settings.locale --es lang zh --es country CN --es script Hans
114
+ $ adb shell am broadcast -a io.appium.settings.locale -n io.appium.settings/.receivers.LocaleSettingReceiver --es lang zh --es country CN --es script Hans
107
115
  $ adb shell getprop persist.sys.locale # zh-Hans-CN for API level 21+
108
116
  ```
109
117
 
110
118
  You can set the [Locale](https://developer.android.com/reference/java/util/Locale.html) format, especially this feature support [Locale(String language, String country)](https://developer.android.com/reference/java/util/Locale.html#Locale(java.lang.String,%20java.lang.String)) so far.
111
119
 
120
+ `-n io.appium.settings/.receivers.LocaleSettingReceiver` is not necessary in some devices.
112
121
 
113
122
  ## Retrieval of system settings
114
123
 
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 33
10
- versionName "4.0.0"
9
+ versionCode 36
10
+ versionName "4.0.3"
11
11
  applicationId "io.appium.settings"
12
12
  }
13
13
 
package/build.gradle CHANGED
@@ -2,7 +2,7 @@
2
2
  buildscript {
3
3
  repositories {
4
4
  google()
5
- jcenter()
5
+ mavenCentral()
6
6
  }
7
7
  dependencies {
8
8
  classpath 'com.android.tools.build:gradle:7.0.3'
@@ -12,6 +12,6 @@ buildscript {
12
12
  allprojects {
13
13
  repositories {
14
14
  google()
15
- jcenter()
15
+ mavenCentral()
16
16
  }
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io.appium.settings",
3
- "version": "4.0.0",
3
+ "version": "4.0.3",
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",
@@ -40,6 +41,8 @@
40
41
  "homepage": "https://github.com/appium/io.appium.settings",
41
42
  "devDependencies": {
42
43
  "@appium/gulp-plugins": "^6.0.0",
43
- "gulp": "^4.0.0"
44
+ "@semantic-release/git": "^10.0.1",
45
+ "gulp": "^4.0.0",
46
+ "semantic-release": "^19.0.2"
44
47
  }
45
48
  }