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: e590801a23665170ef777a8f2edc02fdd1a906e389c746cf2d38e38a83fdd549
4
- data.tar.gz: 423cd6c7cdd6d1332abf73db5742958a0e8ed96b567ac876ec82e0a5817c44e0
3
+ metadata.gz: 816248fe45b2ca615c9110af09631977ba7703ffc4372c115f1db1a79c6c4f21
4
+ data.tar.gz: 81b2d0f780cc4663ed92e0ebc5ca0270d0cfbec3b08fd83e269a7033a14e9222
5
5
  SHA512:
6
- metadata.gz: 7cadaaea43caa84ffade2b7588e853ab97972c61f0ed33f2ee21707ef34585f008db02b09c0954e5928f7a2bc2b9a8c3af9a31df84e77a60aebada42aef78f5c
7
- data.tar.gz: f35416b73c287ae215a8f3f3e34738aa5ddcb299abc1a776b1a8c92a1a78c8119a49ca7860cc992749880330d159f19b64dbfe0c09f8cdd615e6b8d19ba0f92c
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 device is idle (#{Time.now})")
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
- current_load_value = `#{check_emu_uptime}`.strip.to_f
8
+ current_uptime_value = `#{check_emu_uptime}`.strip.to_f
9
9
 
10
10
  end_time = start_time + params[:timeout]
11
- while current_load_value > params[:load_threshold] && Time.now < end_time
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
- current_load_value = `#{check_emu_uptime}`.strip.to_f
23
+ current_uptime_value = `#{check_emu_uptime}`.strip.to_f
22
24
  end
23
25
 
24
- UI.important('Reached timeout before device is idle 😕') if current_load_value > params[:load_threshold]
25
- UI.important("Waited until device is idle for #{(Time.now - start_time).to_i} seconds ⌛️")
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
  #####################################################
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.14'
3
+ VERSION = '0.3.15'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.14
4
+ version: 0.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream