fastlane-plugin-demo_mode 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 159311c387b83004bcd225497cf16587081f916d
4
- data.tar.gz: fa7089a3445272bb78536106fb54753a01755d62
3
+ metadata.gz: a8927b02272d1875eaf6d8bbd4d915bfb7879bab
4
+ data.tar.gz: 7bca4aff535c0d423fdd297565c1ef78d6fd6731
5
5
  SHA512:
6
- metadata.gz: 34cbf498e5e475c55368ac81c4b1996ab7740cfae744c23835119f891e3fe22c26a55caf80ec45cac9a9c5eba1652485f44fe7a2ef71e783715940ba1106f752
7
- data.tar.gz: 3eac97edd110e1083ed07b9b9834c768746bb63c7d4dfcbfde80c89e8e222277d5af785c622e71b216d26af4b64acd8daeb5d67f31408d40c9c92424f3680754
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
  ![Comparison](img/comparison.png)
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 none -e level #{config[:mobile_level]}")
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)",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module DemoMode
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
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.1
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-09-25 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry