169 lines
3.8 KiB
Smali
169 lines
3.8 KiB
Smali
.class final Lcom/crashlytics/android/core/ab;
|
|
.super Ljava/lang/Object;
|
|
.source "InvalidSessionReport.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/crashlytics/android/core/aq;
|
|
|
|
|
|
# instance fields
|
|
.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
|
|
|
|
.field private final rw:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;[Ljava/io/File;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p2, p0, Lcom/crashlytics/android/core/ab;->ru:[Ljava/io/File;
|
|
|
|
new-instance p2, Ljava/util/HashMap;
|
|
|
|
sget-object v0, Lcom/crashlytics/android/core/ar;->rW:Ljava/util/Map;
|
|
|
|
invoke-direct {p2, v0}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
|
|
|
|
iput-object p2, p0, Lcom/crashlytics/android/core/ab;->rv:Ljava/util/Map;
|
|
|
|
iput-object p1, p0, Lcom/crashlytics/android/core/ab;->rw:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final cN()Ljava/io/File;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/ab;->ru:[Ljava/io/File;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final cO()[Ljava/io/File;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/ab;->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/ab;->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 2
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/ab;->ru:[Ljava/io/File;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
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 1
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/ab;->rw:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final remove()V
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/ab;->ru:[Ljava/io/File;
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_0
|
|
|
|
aget-object v3, v0, v2
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wx()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "CrashlyticsCore"
|
|
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
|
|
|
const-string v7, "Removing invalid report file at "
|
|
|
|
invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-interface {v4, v5, v6}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3}, Ljava/io/File;->delete()Z
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|