fastlane-plugin-android_reporter 0.1.19 → 0.1.24
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: 0451006bf47a58d94b7976f47cb1c070e4db889891ed7f77c83d11721b1aafc3
|
4
|
+
data.tar.gz: b9a9c6e5084253702d25309e7fdc51a42caa98d7282e908d6bb3cfbc103a21ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 309deeb73d55bb8930f2e9fae51d4c97d3ad6b73b805bbf64906be4feed8a5bbbf51db80bd9c9e1a8ae147825feab71f6b7c7c82bd1fc071726f9a2e272e40c7
|
7
|
+
data.tar.gz: 6fb8db30ddd6537be8845d7b4597211f4555cacc5274c8f20482efaaaa6e148f4552fe52ea4796ad0ec653dd4568eade39b3f1eba3db47d4768f9648c847c461
|
@@ -26,28 +26,30 @@ module Fastlane
|
|
26
26
|
isGradleErrorFileUploaded = false
|
27
27
|
|
28
28
|
# 1. Delete Previus Generated Files
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
if params[:is_delete_prev_files_enabled]
|
30
|
+
begin
|
31
|
+
File.open('logcat.txt', 'r') do |f|
|
32
|
+
File.delete(f)
|
33
|
+
end
|
34
|
+
rescue Errno::ENOENT
|
35
|
+
UI.message("Something Wrong When Delete Previus File [logcat.txt]")
|
36
|
+
end
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
38
|
+
begin
|
39
|
+
File.open('android-logs.txt', 'r') do |f|
|
40
|
+
File.delete(f)
|
41
|
+
end
|
42
|
+
rescue Errno::ENOENT
|
43
|
+
UI.message("Something Wrong When Delete Previus File [android-logs.txt]")
|
44
|
+
end
|
44
45
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
46
|
+
begin
|
47
|
+
File.open('android-error-logs.txt', 'r') do |f|
|
48
|
+
File.delete(f)
|
49
|
+
end
|
50
|
+
rescue Errno::ENOENT
|
51
|
+
UI.message("Something Wrong When Delete Previus File [android-error-logs.txt]")
|
52
|
+
end
|
51
53
|
end
|
52
54
|
|
53
55
|
# 0. Checkout git to Current Branch to Run Tests on the Current Branch
|
@@ -110,33 +112,30 @@ module Fastlane
|
|
110
112
|
"Gradle Tasks : [Clean , Build , " + gradle_task_testing_name + "]"
|
111
113
|
])
|
112
114
|
if params[:gradle_task_testing_name].to_s.length > 0
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
115
|
+
sh("./gradlew clean")
|
116
|
+
gradle_task_result = sh("./gradlew " + gradle_task_testing_name)
|
117
|
+
if gradle_task_result
|
118
|
+
UI.message("Gradle Task Finished Successfully ...")
|
119
|
+
if params[:generate_adb_file]
|
120
|
+
Process.fork do
|
121
|
+
UI.message([
|
122
|
+
"Android Reporter Started to Save Logcat Logs From ADB Connection Server",
|
123
|
+
"ADB Reporting File : [logcat.txt]"
|
124
|
+
])
|
125
|
+
|
126
|
+
begin
|
127
|
+
sh("adb logcat -d > logcat.txt kill-server")
|
128
|
+
sh("adb kill-server")
|
129
|
+
rescue => error
|
130
|
+
if error
|
131
|
+
UI.error("Something Error with Logcat Debug Report File")
|
132
|
+
end
|
133
|
+
puts error.message
|
134
|
+
puts error.backtrace
|
135
|
+
end
|
134
136
|
end
|
135
|
-
|
137
|
+
end
|
136
138
|
end
|
137
|
-
}
|
138
|
-
|
139
|
-
gradleGeneratedFileThread.join
|
140
139
|
end
|
141
140
|
rescue
|
142
141
|
UI.error("Gradle Task Finished With Error ...")
|
@@ -165,7 +164,8 @@ module Fastlane
|
|
165
164
|
])
|
166
165
|
|
167
166
|
begin
|
168
|
-
sh("./gradlew build > android-logs.txt 2> android-error-logs.txt")
|
167
|
+
sh("./gradlew build > android-logs.txt 2> android-error-logs.txt -Dhttp.socketTimeout=60000 -Dhttp.connectionTimeout=60000 -Dorg.gradle.daemon.idletimeout=60000")
|
168
|
+
sh("./gradlew --stop")
|
169
169
|
rescue => error
|
170
170
|
if error
|
171
171
|
UI.error("Something Error with Generate Gradle Files")
|
@@ -183,6 +183,7 @@ module Fastlane
|
|
183
183
|
UI.message("Slack Configuration Status : Disabled ...")
|
184
184
|
end
|
185
185
|
|
186
|
+
sleep(60000)
|
186
187
|
# 9. Upload Files to Slack
|
187
188
|
if is_slack_enabled
|
188
189
|
begin
|
@@ -347,6 +348,13 @@ module Fastlane
|
|
347
348
|
optional: true,
|
348
349
|
type: Boolean
|
349
350
|
),
|
351
|
+
FastlaneCore::ConfigItem.new(
|
352
|
+
key: :is_delete_prev_files_enabled,
|
353
|
+
env_name: "ANDROID_GENERATED_PREV_FILES_ENABLED",
|
354
|
+
description: "",
|
355
|
+
optional: true,
|
356
|
+
type: Boolean
|
357
|
+
),
|
350
358
|
FastlaneCore::ConfigItem.new(
|
351
359
|
key: :slack_api_key,
|
352
360
|
env_name: "SLACK_API_TOKEN",
|