io.appium.settings 4.0.2 → 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 +5 -2
- package/apks/settings_apk-debug.apk +0 -0
- package/app/build.gradle +2 -2
- package/build.gradle +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,6 +37,8 @@ To install:
|
|
|
37
37
|
```shell
|
|
38
38
|
$ cd app/build/outputs/apk
|
|
39
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
|
|
40
42
|
```
|
|
41
43
|
|
|
42
44
|
To uninstall:
|
|
@@ -107,14 +109,15 @@ $ adb shell am broadcast -a io.appium.settings.animation --es setstatus disable
|
|
|
107
109
|
Set particular locale:
|
|
108
110
|
|
|
109
111
|
```shell
|
|
110
|
-
$ 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
|
|
111
113
|
$ 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
|
|
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
|
|
113
115
|
$ adb shell getprop persist.sys.locale # zh-Hans-CN for API level 21+
|
|
114
116
|
```
|
|
115
117
|
|
|
116
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.
|
|
117
119
|
|
|
120
|
+
`-n io.appium.settings/.receivers.LocaleSettingReceiver` is not necessary in some devices.
|
|
118
121
|
|
|
119
122
|
## Retrieval of system settings
|
|
120
123
|
|
|
Binary file
|
package/app/build.gradle
CHANGED
package/build.gradle
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
buildscript {
|
|
3
3
|
repositories {
|
|
4
4
|
google()
|
|
5
|
-
|
|
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
|
-
|
|
15
|
+
mavenCentral()
|
|
16
16
|
}
|
|
17
17
|
}
|