io.appium.settings 4.0.2 → 4.0.5

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
@@ -5,12 +5,10 @@
5
5
 
6
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
7
 
8
-
9
8
  Toggle settings in Android device or emulator.
10
9
 
11
10
  A small and simple Android application that deals with the system settings. Then the application shuts down.
12
11
 
13
-
14
12
  ## Requirements
15
13
 
16
14
  * [Android SDK](http://developer.android.com)
@@ -37,6 +35,8 @@ To install:
37
35
  ```shell
38
36
  $ cd app/build/outputs/apk
39
37
  $ adb install settings_apk-debug.apk
38
+ # You can grant permissions with -g option as below for over api level 23 devices
39
+ # $ adb install -g settings_apk-debug.apk
40
40
  ```
41
41
 
42
42
  To uninstall:
@@ -107,14 +107,15 @@ $ adb shell am broadcast -a io.appium.settings.animation --es setstatus disable
107
107
  Set particular locale:
108
108
 
109
109
  ```shell
110
- $ adb shell am broadcast -a io.appium.settings.locale --es lang ja --es country JP
110
+ $ adb shell am broadcast -a io.appium.settings.locale -n io.appium.settings/.receivers.LocaleSettingReceiver --es lang ja --es country JP
111
111
  $ adb shell getprop persist.sys.locale # ja-JP
112
- $ adb shell am broadcast -a io.appium.settings.locale --es lang zh --es country CN --es script Hans
112
+ $ adb shell am broadcast -a io.appium.settings.locale -n io.appium.settings/.receivers.LocaleSettingReceiver --es lang zh --es country CN --es script Hans
113
113
  $ adb shell getprop persist.sys.locale # zh-Hans-CN for API level 21+
114
114
  ```
115
115
 
116
116
  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.
117
117
 
118
+ `-n io.appium.settings/.receivers.LocaleSettingReceiver` is not necessary in some devices.
118
119
 
119
120
  ## Retrieval of system settings
120
121
 
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 35
10
- versionName "4.0.2"
9
+ versionCode 38
10
+ versionName "4.0.5"
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.2",
3
+ "version": "4.0.5",
4
4
  "description": "App for dealing with Android settings",
5
5
  "main": "index.js",
6
6
  "scripts": {