211 lines
4.9 KiB
Smali
211 lines
4.9 KiB
Smali
.class final Lcom/crashlytics/android/core/au;
|
|
.super Ljava/lang/Object;
|
|
.source "SessionReport.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/crashlytics/android/core/aq;
|
|
|
|
|
|
# instance fields
|
|
.field private final file:Ljava/io/File;
|
|
|
|
.field private final ru:[Ljava/io/File;
|
|
|
|
.field private final rv:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/io/File;)V
|
|
.locals 1
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/crashlytics/android/core/au;-><init>(Ljava/io/File;Ljava/util/Map;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/io/File;Ljava/util/Map;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/io/File;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/crashlytics/android/core/au;->file:Ljava/io/File;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [Ljava/io/File;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aput-object p1, v0, v1
|
|
|
|
iput-object v0, p0, Lcom/crashlytics/android/core/au;->ru:[Ljava/io/File;
|
|
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {p1, p2}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
|
|
|
|
iput-object p1, p0, Lcom/crashlytics/android/core/au;->rv:Ljava/util/Map;
|
|
|
|
iget-object p1, p0, Lcom/crashlytics/android/core/au;->file:Ljava/io/File;
|
|
|
|
invoke-virtual {p1}, Ljava/io/File;->length()J
|
|
|
|
move-result-wide p1
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/crashlytics/android/core/au;->rv:Ljava/util/Map;
|
|
|
|
sget-object p2, Lcom/crashlytics/android/core/ar;->rW:Ljava/util/Map;
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final cN()Ljava/io/File;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/au;->file:Ljava/io/File;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final cO()[Ljava/io/File;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/au;->ru:[Ljava/io/File;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final cP()Ljava/util/Map;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/au;->rv:Ljava/util/Map;
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final cQ()I
|
|
.locals 1
|
|
|
|
sget v0, Lcom/crashlytics/android/core/aq$a;->rT:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getFileName()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/au;->file:Ljava/io/File;
|
|
|
|
invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getIdentifier()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/au;->file:Ljava/io/File;
|
|
|
|
invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v1, 0x2e
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->lastIndexOf(I)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final remove()V
|
|
.locals 4
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wx()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "CrashlyticsCore"
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Removing report at "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v3, p0, Lcom/crashlytics/android/core/au;->file:Ljava/io/File;
|
|
|
|
invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v0, v1, v2}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/au;->file:Ljava/io/File;
|
|
|
|
invoke-virtual {v0}, Ljava/io/File;->delete()Z
|
|
|
|
return-void
|
|
.end method
|