fastlane-plugin-stream_actions 0.3.14 → 0.3.15
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 816248fe45b2ca615c9110af09631977ba7703ffc4372c115f1db1a79c6c4f21
|
4
|
+
data.tar.gz: 81b2d0f780cc4663ed92e0ebc5ca0270d0cfbec3b08fd83e269a7033a14e9222
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5eed95996e415ecd17001170e5b29ea3987288cfe232f13660d2e48ccd529477c790c518eb4593b3f706c346bba50f535dd04f1c23ffaf119e034eabb183285
|
7
|
+
data.tar.gz: 013c735f56c6d5d7892f970032f417a9f50291f5a95ade7382ca3897589f9fab3a56fe5ddcea58216b8823ae2b0b4258f03890974f737d9065da116570d08f55
|
@@ -3,12 +3,14 @@ module Fastlane
|
|
3
3
|
class WaitAndroidEmuIdleAction < Action
|
4
4
|
def self.run(params)
|
5
5
|
start_time = Time.now
|
6
|
-
UI.important("Start waiting until
|
6
|
+
UI.important("Start waiting until emulator is idle (#{Time.now})")
|
7
7
|
check_emu_uptime = 'adb shell uptime | cut -d , -f 3 | cut -f 2 -d :'
|
8
|
-
|
8
|
+
current_uptime_value = `#{check_emu_uptime}`.strip.to_f
|
9
9
|
|
10
10
|
end_time = start_time + params[:timeout]
|
11
|
-
while
|
11
|
+
while current_uptime_value > params[:load_threshold] && Time.now < end_time
|
12
|
+
UI.important("Current uptime value: #{current_uptime_value} 👀")
|
13
|
+
|
12
14
|
not_responding_package = `adb shell dumpsys window | grep -E "mCurrentFocus.*Application Not Responding" | cut -f 2 -d : | sed -e "s/}//" -e "s/^ *//"`.strip
|
13
15
|
if not_responding_package == 'com.android.systemui'
|
14
16
|
UI.important("Trying to dismiss not responding #{not_responding_package} dialog")
|
@@ -18,11 +20,11 @@ module Fastlane
|
|
18
20
|
end
|
19
21
|
|
20
22
|
sleep(10)
|
21
|
-
|
23
|
+
current_uptime_value = `#{check_emu_uptime}`.strip.to_f
|
22
24
|
end
|
23
25
|
|
24
|
-
UI.important('Reached timeout before
|
25
|
-
UI.important("Waited until
|
26
|
+
UI.important('Reached timeout before emulator is idle 😕') if current_uptime_value > params[:load_threshold]
|
27
|
+
UI.important("Waited until emulator is idle for #{(Time.now - start_time).to_i} seconds ⌛️")
|
26
28
|
end
|
27
29
|
|
28
30
|
#####################################################
|