SessionReport.java
1.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.crashlytics.android.core;
import io.fabric.sdk.android.Fabric;
import io.fabric.sdk.android.Logger;
import java.io.File;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
class SessionReport
implements Report
{
private final Map<String, String> customHeaders;
private final File file;
private final File[] files;
public SessionReport(File paramFile)
{
this(paramFile, Collections.emptyMap());
}
public SessionReport(File paramFile, Map<String, String> paramMap)
{
this.file = paramFile;
this.files = new File[] { paramFile };
this.customHeaders = new HashMap(paramMap);
if (this.file.length() == 0L) {
this.customHeaders.putAll(ReportUploader.HEADER_INVALID_CLS_FILE);
}
}
public Map<String, String> getCustomHeaders()
{
return Collections.unmodifiableMap(this.customHeaders);
}
public File getFile()
{
return this.file;
}
public String getFileName()
{
return getFile().getName();
}
public File[] getFiles()
{
return this.files;
}
public String getIdentifier()
{
String str = getFileName();
return str.substring(0, str.lastIndexOf('.'));
}
public void remove()
{
Fabric.getLogger().d("CrashlyticsCore", "Removing report at " + this.file.getPath());
this.file.delete();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/crashlytics/android/core/SessionReport.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/