682 lines
20 KiB
Smali
682 lines
20 KiB
Smali
.class public Lcom/crashlytics/android/answers/Answers;
|
|
.super Lio/fabric/sdk/android/i;
|
|
.source "Answers.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lio/fabric/sdk/android/i<",
|
|
"Ljava/lang/Boolean;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field nr:Z
|
|
|
|
.field public nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lio/fabric/sdk/android/i;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/crashlytics/android/answers/Answers;->nr:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static B(Ljava/lang/String;)V
|
|
.locals 4
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Answers"
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Method "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, " is not supported when using Crashlytics through Firebase."
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {v0, v1, p0}, Lio/fabric/sdk/android/l;->w(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static bN()Lcom/crashlytics/android/answers/Answers;
|
|
.locals 1
|
|
|
|
const-class v0, Lcom/crashlytics/android/answers/Answers;
|
|
|
|
invoke-static {v0}, Lio/fabric/sdk/android/c;->M(Ljava/lang/Class;)Lio/fabric/sdk/android/i;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/crashlytics/android/answers/Answers;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private bP()Ljava/lang/Boolean;
|
|
.locals 5
|
|
|
|
new-instance v0, Lio/fabric/sdk/android/a/b/q;
|
|
|
|
invoke-direct {v0}, Lio/fabric/sdk/android/a/b/q;-><init>()V
|
|
|
|
iget-object v0, p0, Lio/fabric/sdk/android/i;->context:Landroid/content/Context;
|
|
|
|
invoke-static {v0}, Lio/fabric/sdk/android/a/b/q;->aQ(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Fabric"
|
|
|
|
const-string v2, "Analytics collection disabled, because data collection is disabled by Firebase."
|
|
|
|
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/answers/Answers;->nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
invoke-virtual {v0}, Lcom/crashlytics/android/answers/ac;->disable()V
|
|
|
|
sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-static {}, Lio/fabric/sdk/android/a/g/q$a;->xP()Lio/fabric/sdk/android/a/g/q;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lio/fabric/sdk/android/a/g/q;->xM()Lio/fabric/sdk/android/a/g/t;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Answers"
|
|
|
|
const-string v2, "Failed to retrieve settings"
|
|
|
|
invoke-interface {v0, v1, v2}, Lio/fabric/sdk/android/l;->e(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
iget-object v1, v0, Lio/fabric/sdk/android/a/g/t;->bbz:Lio/fabric/sdk/android/a/g/m;
|
|
|
|
iget-boolean v1, v1, Lio/fabric/sdk/android/a/g/m;->bba:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "Answers"
|
|
|
|
const-string v3, "Analytics collection enabled"
|
|
|
|
invoke-interface {v1, v2, v3}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Lcom/crashlytics/android/answers/Answers;->nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
iget-object v0, v0, Lio/fabric/sdk/android/a/g/t;->oz:Lio/fabric/sdk/android/a/g/b;
|
|
|
|
iget-object v2, p0, Lio/fabric/sdk/android/i;->context:Landroid/content/Context;
|
|
|
|
const-string v3, "com.crashlytics.ApiEndpoint"
|
|
|
|
invoke-static {v2, v3}, Lio/fabric/sdk/android/a/b/i;->w(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/ac;->nN:Lcom/crashlytics/android/answers/k;
|
|
|
|
iget-boolean v4, v0, Lio/fabric/sdk/android/a/g/b;->nU:Z
|
|
|
|
iput-boolean v4, v3, Lcom/crashlytics/android/answers/k;->nU:Z
|
|
|
|
iget-object v1, v1, Lcom/crashlytics/android/answers/ac;->oC:Lcom/crashlytics/android/answers/e;
|
|
|
|
new-instance v3, Lcom/crashlytics/android/answers/e$1;
|
|
|
|
invoke-direct {v3, v1, v0, v2}, Lcom/crashlytics/android/answers/e$1;-><init>(Lcom/crashlytics/android/answers/e;Lio/fabric/sdk/android/a/g/b;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, v3}, Lcom/crashlytics/android/answers/e;->c(Ljava/lang/Runnable;)V
|
|
|
|
sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Answers"
|
|
|
|
const-string v2, "Analytics collection disabled"
|
|
|
|
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/answers/Answers;->nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
invoke-virtual {v0}, Lcom/crashlytics/android/answers/ac;->disable()V
|
|
|
|
sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "Answers"
|
|
|
|
const-string v3, "Error dealing with settings"
|
|
|
|
invoke-interface {v1, v2, v3, v0}, Lio/fabric/sdk/android/l;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/crashlytics/android/answers/ai;)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/crashlytics/android/answers/Answers;->nr:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p1, "logShare"
|
|
|
|
invoke-static {p1}, Lcom/crashlytics/android/answers/Answers;->B(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/crashlytics/android/answers/Answers;->nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/crashlytics/android/answers/ac;->a(Lcom/crashlytics/android/answers/w;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lcom/crashlytics/android/answers/aj;)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/crashlytics/android/answers/Answers;->nr:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p1, "logSignUp"
|
|
|
|
invoke-static {p1}, Lcom/crashlytics/android/answers/Answers;->B(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/crashlytics/android/answers/Answers;->nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/crashlytics/android/answers/ac;->a(Lcom/crashlytics/android/answers/w;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lcom/crashlytics/android/answers/l;)V
|
|
.locals 5
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-boolean v0, p0, Lcom/crashlytics/android/answers/Answers;->nr:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p1, "logCustom"
|
|
|
|
invoke-static {p1}, Lcom/crashlytics/android/answers/Answers;->B(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/crashlytics/android/answers/Answers;->nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "Answers"
|
|
|
|
const-string v3, "Logged custom event: "
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)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 {v1, v2, v3}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
iget-object v0, v0, Lcom/crashlytics/android/answers/ac;->oC:Lcom/crashlytics/android/answers/e;
|
|
|
|
new-instance v1, Lcom/crashlytics/android/answers/ae$a;
|
|
|
|
sget-object v2, Lcom/crashlytics/android/answers/ae$b;->oT:Lcom/crashlytics/android/answers/ae$b;
|
|
|
|
invoke-direct {v1, v2}, Lcom/crashlytics/android/answers/ae$a;-><init>(Lcom/crashlytics/android/answers/ae$b;)V
|
|
|
|
iget-object v2, p1, Lcom/crashlytics/android/answers/l;->nY:Ljava/lang/String;
|
|
|
|
iput-object v2, v1, Lcom/crashlytics/android/answers/ae$a;->oI:Ljava/lang/String;
|
|
|
|
iget-object p1, p1, Lcom/crashlytics/android/answers/c;->nw:Lcom/crashlytics/android/answers/b;
|
|
|
|
iget-object p1, p1, Lcom/crashlytics/android/answers/b;->nv:Ljava/util/Map;
|
|
|
|
iput-object p1, v1, Lcom/crashlytics/android/answers/ae$a;->oJ:Ljava/util/Map;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {v0, v1, p1, p1}, Lcom/crashlytics/android/answers/e;->a(Lcom/crashlytics/android/answers/ae$a;ZZ)V
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string v0, "event must not be null"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a(Lcom/crashlytics/android/answers/v;)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/crashlytics/android/answers/Answers;->nr:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p1, "logLogin"
|
|
|
|
invoke-static {p1}, Lcom/crashlytics/android/answers/Answers;->B(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/crashlytics/android/answers/Answers;->nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/crashlytics/android/answers/ac;->a(Lcom/crashlytics/android/answers/w;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final synthetic bL()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/crashlytics/android/answers/Answers;->bP()Ljava/lang/Boolean;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final bO()Z
|
|
.locals 18
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"NewApi"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v9, p0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
:try_start_0
|
|
iget-object v0, v9, Lio/fabric/sdk/android/i;->context:Landroid/content/Context;
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2, v10}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
|
|
|
|
move-result-object v3
|
|
|
|
iget v4, v3, Landroid/content/pm/PackageInfo;->versionCode:I
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v5, v3, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
const-string v5, "0.0"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v5, v3, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
|
|
|
|
:goto_0
|
|
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v7, 0x9
|
|
|
|
if-lt v6, v7, :cond_1
|
|
|
|
iget-wide v1, v3, Landroid/content/pm/PackageInfo;->firstInstallTime:J
|
|
|
|
move-wide/from16 v16, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v1, v2, v10}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Ljava/io/File;
|
|
|
|
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->sourceDir:Ljava/lang/String;
|
|
|
|
invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2}, Ljava/io/File;->lastModified()J
|
|
|
|
move-result-wide v1
|
|
|
|
move-wide/from16 v16, v1
|
|
|
|
:goto_1
|
|
iget-object v1, v9, Lio/fabric/sdk/android/i;->pf:Lio/fabric/sdk/android/a/b/r;
|
|
|
|
new-instance v6, Lcom/crashlytics/android/answers/ah;
|
|
|
|
invoke-direct {v6, v0, v1, v4, v5}, Lcom/crashlytics/android/answers/ah;-><init>(Landroid/content/Context;Lio/fabric/sdk/android/a/b/r;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
new-instance v4, Lcom/crashlytics/android/answers/f;
|
|
|
|
new-instance v1, Lio/fabric/sdk/android/a/f/b;
|
|
|
|
invoke-direct {v1, v9}, Lio/fabric/sdk/android/a/f/b;-><init>(Lio/fabric/sdk/android/i;)V
|
|
|
|
invoke-direct {v4, v0, v1}, Lcom/crashlytics/android/answers/f;-><init>(Landroid/content/Context;Lio/fabric/sdk/android/a/f/a;)V
|
|
|
|
new-instance v7, Lio/fabric/sdk/android/a/e/b;
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v7, v1}, Lio/fabric/sdk/android/a/e/b;-><init>(Lio/fabric/sdk/android/l;)V
|
|
|
|
new-instance v13, Lio/fabric/sdk/android/a;
|
|
|
|
invoke-direct {v13, v0}, Lio/fabric/sdk/android/a;-><init>(Landroid/content/Context;)V
|
|
|
|
const-string v1, "Answers Events Handler"
|
|
|
|
invoke-static {v1}, Lio/fabric/sdk/android/a/b/n;->df(Ljava/lang/String;)Ljava/util/concurrent/ThreadFactory;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v1, v8}, Lio/fabric/sdk/android/a/b/n;->a(Ljava/lang/String;Ljava/util/concurrent/ExecutorService;)V
|
|
|
|
new-instance v14, Lcom/crashlytics/android/answers/k;
|
|
|
|
invoke-direct {v14, v8}, Lcom/crashlytics/android/answers/k;-><init>(Ljava/util/concurrent/ScheduledExecutorService;)V
|
|
|
|
new-instance v11, Lcom/crashlytics/android/answers/q;
|
|
|
|
invoke-direct {v11, v0}, Lcom/crashlytics/android/answers/q;-><init>(Landroid/content/Context;)V
|
|
|
|
new-instance v12, Lcom/crashlytics/android/answers/e;
|
|
|
|
move-object v1, v12
|
|
|
|
move-object/from16 v2, p0
|
|
|
|
move-object v3, v0
|
|
|
|
move-object v5, v6
|
|
|
|
move-object v6, v7
|
|
|
|
move-object v7, v8
|
|
|
|
move-object v8, v11
|
|
|
|
invoke-direct/range {v1 .. v8}, Lcom/crashlytics/android/answers/e;-><init>(Lio/fabric/sdk/android/i;Landroid/content/Context;Lcom/crashlytics/android/answers/f;Lcom/crashlytics/android/answers/ah;Lio/fabric/sdk/android/a/e/e;Ljava/util/concurrent/ScheduledExecutorService;Lcom/crashlytics/android/answers/q;)V
|
|
|
|
new-instance v1, Lio/fabric/sdk/android/a/f/d;
|
|
|
|
const-string v2, "settings"
|
|
|
|
invoke-direct {v1, v0, v2}, Lio/fabric/sdk/android/a/f/d;-><init>(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
new-instance v15, Lcom/crashlytics/android/answers/h;
|
|
|
|
invoke-direct {v15, v1}, Lcom/crashlytics/android/answers/h;-><init>(Lio/fabric/sdk/android/a/f/c;)V
|
|
|
|
new-instance v1, Lcom/crashlytics/android/answers/ac;
|
|
|
|
move-object v11, v1
|
|
|
|
invoke-direct/range {v11 .. v17}, Lcom/crashlytics/android/answers/ac;-><init>(Lcom/crashlytics/android/answers/e;Lio/fabric/sdk/android/a;Lcom/crashlytics/android/answers/k;Lcom/crashlytics/android/answers/h;J)V
|
|
|
|
iput-object v1, v9, Lcom/crashlytics/android/answers/Answers;->nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
iget-object v1, v9, Lcom/crashlytics/android/answers/Answers;->nt:Lcom/crashlytics/android/answers/ac;
|
|
|
|
iget-object v2, v1, Lcom/crashlytics/android/answers/ac;->oC:Lcom/crashlytics/android/answers/e;
|
|
|
|
new-instance v3, Lcom/crashlytics/android/answers/e$4;
|
|
|
|
invoke-direct {v3, v2}, Lcom/crashlytics/android/answers/e$4;-><init>(Lcom/crashlytics/android/answers/e;)V
|
|
|
|
invoke-virtual {v2, v3}, Lcom/crashlytics/android/answers/e;->c(Ljava/lang/Runnable;)V
|
|
|
|
iget-object v2, v1, Lcom/crashlytics/android/answers/ac;->oD:Lio/fabric/sdk/android/a;
|
|
|
|
new-instance v3, Lcom/crashlytics/android/answers/g;
|
|
|
|
iget-object v4, v1, Lcom/crashlytics/android/answers/ac;->nN:Lcom/crashlytics/android/answers/k;
|
|
|
|
invoke-direct {v3, v1, v4}, Lcom/crashlytics/android/answers/g;-><init>(Lcom/crashlytics/android/answers/ac;Lcom/crashlytics/android/answers/k;)V
|
|
|
|
invoke-virtual {v2, v3}, Lio/fabric/sdk/android/a;->a(Lio/fabric/sdk/android/a$b;)Z
|
|
|
|
iget-object v2, v1, Lcom/crashlytics/android/answers/ac;->nN:Lcom/crashlytics/android/answers/k;
|
|
|
|
iget-object v2, v2, Lcom/crashlytics/android/answers/k;->listeners:Ljava/util/List;
|
|
|
|
invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-object v2, v1, Lcom/crashlytics/android/answers/ac;->oE:Lcom/crashlytics/android/answers/h;
|
|
|
|
iget-object v2, v2, Lcom/crashlytics/android/answers/h;->nO:Lio/fabric/sdk/android/a/f/c;
|
|
|
|
invoke-interface {v2}, Lio/fabric/sdk/android/a/f/c;->xI()Landroid/content/SharedPreferences;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "analytics_launched"
|
|
|
|
invoke-interface {v2, v3, v10}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
xor-int/2addr v2, v3
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget-wide v4, v1, Lcom/crashlytics/android/answers/ac;->oB:J
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v6, "Answers"
|
|
|
|
const-string v7, "Logged install"
|
|
|
|
invoke-interface {v2, v6, v7}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
iget-object v2, v1, Lcom/crashlytics/android/answers/ac;->oC:Lcom/crashlytics/android/answers/e;
|
|
|
|
new-instance v6, Lcom/crashlytics/android/answers/ae$a;
|
|
|
|
sget-object v7, Lcom/crashlytics/android/answers/ae$b;->oS:Lcom/crashlytics/android/answers/ae$b;
|
|
|
|
invoke-direct {v6, v7}, Lcom/crashlytics/android/answers/ae$a;-><init>(Lcom/crashlytics/android/answers/ae$b;)V
|
|
|
|
const-string v7, "installedAt"
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v7, v4}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
|
|
|
|
move-result-object v4
|
|
|
|
iput-object v4, v6, Lcom/crashlytics/android/answers/ae$a;->oH:Ljava/util/Map;
|
|
|
|
invoke-virtual {v2, v6, v10, v3}, Lcom/crashlytics/android/answers/e;->a(Lcom/crashlytics/android/answers/ae$a;ZZ)V
|
|
|
|
iget-object v1, v1, Lcom/crashlytics/android/answers/ac;->oE:Lcom/crashlytics/android/answers/h;
|
|
|
|
iget-object v2, v1, Lcom/crashlytics/android/answers/h;->nO:Lio/fabric/sdk/android/a/f/c;
|
|
|
|
iget-object v1, v1, Lcom/crashlytics/android/answers/h;->nO:Lio/fabric/sdk/android/a/f/c;
|
|
|
|
invoke-interface {v1}, Lio/fabric/sdk/android/a/f/c;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v4, "analytics_launched"
|
|
|
|
invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v2, v1}, Lio/fabric/sdk/android/a/f/c;->a(Landroid/content/SharedPreferences$Editor;)Z
|
|
|
|
:cond_2
|
|
new-instance v1, Lio/fabric/sdk/android/a/b/q;
|
|
|
|
invoke-direct {v1}, Lio/fabric/sdk/android/a/b/q;-><init>()V
|
|
|
|
invoke-static {v0}, Lio/fabric/sdk/android/a/b/q;->aN(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
iput-boolean v0, v9, Lcom/crashlytics/android/answers/Answers;->nr:Z
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v3
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wz()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "Answers"
|
|
|
|
const-string v3, "Error retrieving app properties"
|
|
|
|
invoke-interface {v1, v2, v3, v0}, Lio/fabric/sdk/android/l;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
return v10
|
|
.end method
|
|
|
|
.method public final getIdentifier()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "com.crashlytics.sdk.android:answers"
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getVersion()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "1.4.6.30"
|
|
|
|
return-object v0
|
|
.end method
|