2019-02-04 20:08:30 +00:00
|
|
|
.class final Lcom/crashlytics/android/answers/ab;
|
|
|
|
.super Lio/fabric/sdk/android/a/b/a;
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lio/fabric/sdk/android/a/d/f;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private final oF:Ljava/lang/String;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lio/fabric/sdk/android/i;Ljava/lang/String;Ljava/lang/String;Lio/fabric/sdk/android/a/e/e;Ljava/lang/String;)V
|
|
|
|
.locals 6
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
sget v5, Lio/fabric/sdk/android/a/e/c;->bNl:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
move-object v2, p2
|
|
|
|
|
|
|
|
move-object v3, p3
|
|
|
|
|
|
|
|
move-object v4, p4
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v5}, Lio/fabric/sdk/android/a/b/a;-><init>(Lio/fabric/sdk/android/i;Ljava/lang/String;Ljava/lang/String;Lio/fabric/sdk/android/a/e/e;I)V
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/crashlytics/android/answers/ab;->oF:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final h(Ljava/util/List;)Z
|
|
|
|
.locals 9
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Ljava/io/File;",
|
|
|
|
">;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/crashlytics/android/answers/ab;->DS()Lio/fabric/sdk/android/a/e/d;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "X-CRASHLYTICS-API-CLIENT-TYPE"
|
|
|
|
|
|
|
|
const-string v2, "android"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Lio/fabric/sdk/android/a/e/d;->Z(Ljava/lang/String;Ljava/lang/String;)Lio/fabric/sdk/android/a/e/d;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "X-CRASHLYTICS-API-CLIENT-VERSION"
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/crashlytics/android/answers/ab;->nF:Lio/fabric/sdk/android/i;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lio/fabric/sdk/android/i;->getVersion()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Lio/fabric/sdk/android/a/e/d;->Z(Ljava/lang/String;Ljava/lang/String;)Lio/fabric/sdk/android/a/e/d;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "X-CRASHLYTICS-API-KEY"
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/crashlytics/android/answers/ab;->oF:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Lio/fabric/sdk/android/a/e/d;->Z(Ljava/lang/String;Ljava/lang/String;)Lio/fabric/sdk/android/a/e/d;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
check-cast v4, Ljava/io/File;
|
|
|
|
|
|
|
|
const-string v6, "session_analytics_file_"
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
const-string v8, "application/vnd.crashlytics.android.events"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v7, v8, v4}, Lio/fabric/sdk/android/a/e/d;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Lio/fabric/sdk/android/a/e/d;
|
|
|
|
|
|
|
|
add-int/2addr v3, v5
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->DG()Lio/fabric/sdk/android/l;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v3, "Answers"
|
|
|
|
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v6, "Sending "
|
|
|
|
|
|
|
|
invoke-direct {v4, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, " analytics files to "
|
|
|
|
|
|
|
|
invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object p1, p0, Lio/fabric/sdk/android/a/b/a;->url:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {v1, v3, p1}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lio/fabric/sdk/android/a/e/d;->EF()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->DG()Lio/fabric/sdk/android/l;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Answers"
|
|
|
|
|
|
|
|
const-string v3, "Response code for analytics file send is "
|
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-interface {v0, v1, v3}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {p1}, Lio/fabric/sdk/android/a/b/s;->eT(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
|
|
|
return v5
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v2
|
|
|
|
.end method
|