fastlane-plugin-demo_mode 1.0.1 → 1.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8927b02272d1875eaf6d8bbd4d915bfb7879bab
|
4
|
+
data.tar.gz: 7bca4aff535c0d423fdd297565c1ef78d6fd6731
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d66e8ba4bb205d1b1fe4164a1230115233e8e148320e08474d4f56383a586af065a4854641400ec5a1e64987ce350847888b6b56f538110d7a00d2bddab81664
|
7
|
+
data.tar.gz: 14e1b19fc6653ade73644392dbbfbbbbc556b6afd1229ffc4963e46f40504890bef2bd9826a9867f70f663139e7e16990bca272d0a2207966009fd1326b8050f
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ fastlane add_plugin demo_mode
|
|
12
12
|
|
13
13
|
## About demo_mode
|
14
14
|
|
15
|
-
This fastlane plugin sets your connected android devices to demo mode.
|
15
|
+
This fastlane plugin sets your connected android devices to demo mode. It allows you to manipulate the status bar to make nice and clear screenshots.
|
16
16
|
|
17
17
|

|
18
18
|
|
@@ -30,6 +30,7 @@ lane :test do
|
|
30
30
|
wifi: true,
|
31
31
|
wifi_level: 4,
|
32
32
|
mobile: true,
|
33
|
+
mobile_datatype: "lte",
|
33
34
|
mobile_level: 4,
|
34
35
|
plugged: false,
|
35
36
|
battery: 100,
|
@@ -42,6 +43,18 @@ lane :test do
|
|
42
43
|
end
|
43
44
|
```
|
44
45
|
|
46
|
+
## Parameter Values
|
47
|
+
**clock:** ["0000"-"2359"]
|
48
|
+
**wifi:** true | false
|
49
|
+
**wifi_level:** [0-4]
|
50
|
+
**mobile:** true | false
|
51
|
+
**mobile_datatype:** "1x" | "3g" | "4g" | "4g+" | "e" | "g" | "h" | "lte" | "lte+" | "roam"
|
52
|
+
**mobile_level:** [0-4]
|
53
|
+
**plugged:** true | false
|
54
|
+
**battery:** [0-100]
|
55
|
+
**notifications:** true | false
|
56
|
+
**deactivate:** true | false
|
57
|
+
|
45
58
|
## Run tests for this plugin
|
46
59
|
|
47
60
|
To run both the tests, and code style validation, run
|
@@ -25,7 +25,7 @@ module Fastlane
|
|
25
25
|
Actions.sh(command + "battery -e level #{config[:battery]}")
|
26
26
|
Actions.sh(command + "battery -e plugged #{config[:plugged]}")
|
27
27
|
Actions.sh(command + "network -e wifi #{showWifi} -e level #{config[:wifi_level]}")
|
28
|
-
Actions.sh(command + "network -e mobile #{showMobile} -e datatype
|
28
|
+
Actions.sh(command + "network -e mobile #{showMobile} -e datatype #{config[:mobile_datatype]} -e level #{config[:mobile_level]}")
|
29
29
|
Actions.sh(command + "notifications -e visible #{config[:notifications]}")
|
30
30
|
end
|
31
31
|
end
|
@@ -81,6 +81,13 @@ module Fastlane
|
|
81
81
|
is_string: false,
|
82
82
|
default_value: false
|
83
83
|
),
|
84
|
+
FastlaneCore::ConfigItem.new(
|
85
|
+
key: :mobile_datatype,
|
86
|
+
description: "Set mobile datatype (default: none)",
|
87
|
+
optional: true,
|
88
|
+
default_value: "none",
|
89
|
+
type: String
|
90
|
+
),
|
84
91
|
FastlaneCore::ConfigItem.new(
|
85
92
|
key: :mobile_level,
|
86
93
|
description: "Set mobile level (default: 4)",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-demo_mode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Rauscha
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|