InstabugIssueUploaderService.java
1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.instabug.library;
import com.instabug.library.e.c.a;
import com.instabug.library.internal.d.a.h;
import com.instabug.library.util.InstabugSDKLogger;
import java.io.FileNotFoundException;
import java.util.Iterator;
import java.util.List;
import org.json.JSONException;
public class InstabugIssueUploaderService
extends n
{
private void a(final com.instabug.library.model.d paramd)
throws JSONException, FileNotFoundException
{
InstabugSDKLogger.d(this, "Found " + paramd.b().size() + " attachments related to issue: " + paramd.g());
com.instabug.library.e.a.d.a().b(this, paramd, new c.a() {});
}
protected void b()
throws Exception
{
InstabugSDKLogger.d(this, "Found " + h.e().size() + " issues in cache");
Iterator localIterator = h.e().iterator();
while (localIterator.hasNext())
{
final com.instabug.library.model.d locald = (com.instabug.library.model.d)localIterator.next();
if (locald.e().equals("offline_issue_occurrence_id"))
{
InstabugSDKLogger.d(this, "Uploading issue: " + locald);
com.instabug.library.e.a.d.a().a(this, locald, new c.a() {});
}
else if (!locald.e().equals("in_progress_issue_occurrence_id"))
{
InstabugSDKLogger.d(this, "Issue: " + locald + " already uploaded but has unsent attachments, uploading now");
a(locald);
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/InstabugIssueUploaderService.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/