fastlane-plugin-android_reporter 0.1.29 → 0.1.30

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: 60cf725fcbd15aaabfbacbe9e7735b6fbc450530af031305485f98c06d42489b
4
- data.tar.gz: 17c84771c363ea43133a01bdcc83b149ac89a939fd3673e6fddc3f8e3f7b717e
3
+ metadata.gz: d8baf8c74956bf6fdd1cb560893f50d88bec313e5494c44e604c6ec1d18bf138
4
+ data.tar.gz: 6af6fd7fe645d231604fc79336474717946a3b45edef7805388260deb52d8b06
5
5
  SHA512:
6
- metadata.gz: d01fa925d85446fa274c17661117637c6e5a7fa3f1f79158b84b4eb96e5377ab340a2922d2f1106d127432a1ef842db42d01041965634331ca213f708b828093
7
- data.tar.gz: ae659b677a8d02c0c67b77591855d25f9245b7ce4a0317751054ec9f7e4d1d3306792d0981c81f04467eeb8357289c9c64e907cc933abdfaf8bb47be801ae834
6
+ metadata.gz: 025c22f3361784e655e771d6e4e9e375e783d3514811702bf1b26a6993fbcf67f41c8e5164f6adfeedcc302382eee4a89a0dc246112102fe763070107837ec60
7
+ data.tar.gz: 12f0c914c119eeba15302cf890fb79fedeb925afaab7988762b36881e295e7dd41b8b8facf775f38f9ebaccca9a65e1628e5c78d0ca73bda89085c796436ead2
@@ -90,16 +90,18 @@ module Fastlane
90
90
  # 3. Run the Target AVD Name From Params
91
91
  if params[:avd_name].to_s.length > 0
92
92
  Thread.new do
93
- UI.message("Android Reporting Started to Run AVD : (" + avd_name + ")")
94
- sh(android_sdk_path + "/tools/bin/avdmanager", "list", "avd")
95
- sh("cd", android_sdk_path)
96
- sh(android_sdk_path + "/emulator/emulator", "-avd", avd_name)
93
+ UI.message("Android Reporting Started to Run AVD : (" + avd_name + ")")
94
+ sh(android_sdk_path + "/tools/bin/avdmanager", "list", "avd")
95
+ sh("cd", android_sdk_path)
96
+ sh(android_sdk_path + "/emulator/emulator", "-avd", avd_name)
97
97
  end
98
98
  end
99
99
 
100
100
  # 4. Clear the Logcat Server Before Start
101
101
  if params[:generate_adb_file]
102
- sh("adb logcat -c")
102
+ Process.fork do
103
+ sh("adb logcat -c")
104
+ end
103
105
  end
104
106
 
105
107
  # 5. Start Clean Task with Target UI Task
@@ -138,35 +140,38 @@ module Fastlane
138
140
  rescue
139
141
  UI.error("Gradle Task Finished With Error ...")
140
142
  if params[:generate_adb_file]
141
- begin
142
- sh("adb logcat -e > logcat.txt kill-server")
143
- rescue => error
144
- if error
145
- UI.error("Something Error with Logcat Error Report File")
146
- end
147
- puts error.message
148
- puts error.backtrace
143
+ Process.fork do
144
+ begin
145
+ sh("adb logcat -e > logcat.txt kill-server")
146
+ rescue => error
147
+ if error
148
+ UI.error("Something Error with Logcat Error Report File")
149
+ end
150
+ puts error.message
151
+ puts error.backtrace
152
+ end
149
153
  end
150
154
  end
151
155
  end
152
156
 
153
157
  # 7. Generate Gradle Tasks (Failed and Success Files)
154
158
  if params[:generate_gradle_files]
155
- UI.message([
156
- "Android Reporting Started to Generate Gradle Reports Files",
157
- "Gradle Success Debug File : android-logs.txt",
158
- "Gradle Failed Debug File : android-error-logs.txt"
159
- ])
160
-
161
- begin
162
- sh("./gradlew build > android-logs.txt 2> android-error-logs.txt -Dhttp.socketTimeout=60000 -Dhttp.connectionTimeout=60000 -Dorg.gradle.daemon.idletimeout=60000")
163
- sh("./gradlew --stop")
164
- rescue => error
165
- if error
166
- UI.error("Something Error with Generate Gradle Files")
167
- end
168
- puts error.message
169
- puts error.backtrace
159
+ Process.fork do
160
+ UI.message([
161
+ "Android Reporting Started to Generate Gradle Reports Files",
162
+ "Gradle Success Debug File : android-logs.txt",
163
+ "Gradle Failed Debug File : android-error-logs.txt"
164
+ ])
165
+
166
+ begin
167
+ sh("./gradlew build > android-logs.txt 2> android-error-logs.txt")
168
+ rescue => error
169
+ if error
170
+ UI.error("Something Error with Generate Gradle Files")
171
+ end
172
+ puts error.message
173
+ puts error.backtrace
174
+ end
170
175
  end
171
176
  end
172
177
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidReporter
3
- VERSION = "0.1.29"
3
+ VERSION = "0.1.30"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-android_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yazan Tarifi