fastlane-plugin-stream_actions 0.3.14 → 0.3.16

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
  SHA256:
3
- metadata.gz: e590801a23665170ef777a8f2edc02fdd1a906e389c746cf2d38e38a83fdd549
4
- data.tar.gz: 423cd6c7cdd6d1332abf73db5742958a0e8ed96b567ac876ec82e0a5817c44e0
3
+ metadata.gz: '070439a9ff217b83a8386baf050f740bff058d01a1c74212d639fc1d7e80f8bb'
4
+ data.tar.gz: a4c05c4cecc3935de2184dd4ff255be73dbc3f7cd97377c4ea0bf5b6f76ca1ca
5
5
  SHA512:
6
- metadata.gz: 7cadaaea43caa84ffade2b7588e853ab97972c61f0ed33f2ee21707ef34585f008db02b09c0954e5928f7a2bc2b9a8c3af9a31df84e77a60aebada42aef78f5c
7
- data.tar.gz: f35416b73c287ae215a8f3f3e34738aa5ddcb299abc1a776b1a8c92a1a78c8119a49ca7860cc992749880330d159f19b64dbfe0c09f8cdd615e6b8d19ba0f92c
6
+ metadata.gz: 74e7b2abb13e04905c257367eb0dd615fdecfb93ef9811532adc3bc0bec3666e9214593461d7a4f136bef5a5a32694f35ac42dbf32031d5f395aec23fdbc5bdc
7
+ data.tar.gz: 436188a8d2c29ae7fc8d50f5857e3d036aaab44a186b7c168d2b95ead192041626bd389152803a42fe410829665149b3381df11d9036f3fd9815464b2dfca670
@@ -3,26 +3,30 @@ 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("Uptime value: #{current_uptime_value} > #{params[:load_threshold]}")
12
13
  not_responding_package = `adb shell dumpsys window | grep -E "mCurrentFocus.*Application Not Responding" | cut -f 2 -d : | sed -e "s/}//" -e "s/^ *//"`.strip
13
- if not_responding_package == 'com.android.systemui'
14
- UI.important("Trying to dismiss not responding #{not_responding_package} dialog")
15
- `adb shell input keyevent KEYCODE_ENTER`
16
- `adb shell input keyevent KEYCODE_DPAD_DOWN`
14
+ unless not_responding_package.empty?
15
+ UI.important("Closing not responding `#{not_responding_package}`")
17
16
  `adb shell input keyevent KEYCODE_ENTER`
17
+
18
+ if not_responding_package == 'com.android.systemui'
19
+ `adb shell input keyevent KEYCODE_DPAD_DOWN`
20
+ `adb shell input keyevent KEYCODE_ENTER`
21
+ end
18
22
  end
19
23
 
20
24
  sleep(10)
21
- current_load_value = `#{check_emu_uptime}`.strip.to_f
25
+ current_uptime_value = `#{check_emu_uptime}`.strip.to_f
22
26
  end
23
27
 
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 ⌛️")
28
+ UI.important('Reached timeout before emulator is idle 😕') if current_uptime_value > params[:load_threshold]
29
+ UI.important("Waited until emulator is idle for #{(Time.now - start_time).to_i} seconds ⌛️")
26
30
  end
27
31
 
28
32
  #####################################################
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.14'
3
+ VERSION = '0.3.16'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-13 00:00:00.000000000 Z
11
+ date: 2023-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list