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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8baf8c74956bf6fdd1cb560893f50d88bec313e5494c44e604c6ec1d18bf138
|
4
|
+
data.tar.gz: 6af6fd7fe645d231604fc79336474717946a3b45edef7805388260deb52d8b06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
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
|
-
|
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
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
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
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
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
|
|