apkfuckery/com.discord/smali/com/crashlytics/android/a.smali

476 lines
13 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Lcom/crashlytics/android/a;
.super Lio/fabric/sdk/android/i;
2019-02-04 20:29:01 +00:00
.source "Crashlytics.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Lio/fabric/sdk/android/j;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/fabric/sdk/android/i<",
"Ljava/lang/Void;",
">;",
"Lio/fabric/sdk/android/j;"
}
.end annotation
# instance fields
2019-05-03 18:53:54 +00:00
.field public final mU:Lcom/crashlytics/android/answers/Answers;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field public final mV:Lcom/crashlytics/android/beta/a;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field public final mW:Lcom/crashlytics/android/core/l;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field public final mZ:Ljava/util/Collection;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Collection<",
"+",
"Lio/fabric/sdk/android/i;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 3
new-instance v0, Lcom/crashlytics/android/answers/Answers;
invoke-direct {v0}, Lcom/crashlytics/android/answers/Answers;-><init>()V
2019-02-04 20:32:01 +00:00
new-instance v1, Lcom/crashlytics/android/beta/a;
2019-02-04 20:08:30 +00:00
2019-02-04 20:32:01 +00:00
invoke-direct {v1}, Lcom/crashlytics/android/beta/a;-><init>()V
2019-02-04 20:08:30 +00:00
new-instance v2, Lcom/crashlytics/android/core/l;
invoke-direct {v2}, Lcom/crashlytics/android/core/l;-><init>()V
2019-02-04 20:32:01 +00:00
invoke-direct {p0, v0, v1, v2}, Lcom/crashlytics/android/a;-><init>(Lcom/crashlytics/android/answers/Answers;Lcom/crashlytics/android/beta/a;Lcom/crashlytics/android/core/l;)V
2019-02-04 20:08:30 +00:00
return-void
.end method
2019-02-04 20:32:01 +00:00
.method private constructor <init>(Lcom/crashlytics/android/answers/Answers;Lcom/crashlytics/android/beta/a;Lcom/crashlytics/android/core/l;)V
2019-02-04 20:08:30 +00:00
.locals 2
invoke-direct {p0}, Lio/fabric/sdk/android/i;-><init>()V
2019-05-03 18:53:54 +00:00
iput-object p1, p0, Lcom/crashlytics/android/a;->mU:Lcom/crashlytics/android/answers/Answers;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/crashlytics/android/a;->mV:Lcom/crashlytics/android/beta/a;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object p3, p0, Lcom/crashlytics/android/a;->mW:Lcom/crashlytics/android/core/l;
2019-02-04 20:08:30 +00:00
const/4 v0, 0x3
new-array v0, v0, [Lio/fabric/sdk/android/i;
const/4 v1, 0x0
aput-object p1, v0, v1
const/4 p1, 0x1
aput-object p2, v0, p1
const/4 p1, 0x2
aput-object p3, v0, p1
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
invoke-static {p1}, Ljava/util/Collections;->unmodifiableCollection(Ljava/util/Collection;)Ljava/util/Collection;
move-result-object p1
2019-05-03 18:53:54 +00:00
iput-object p1, p0, Lcom/crashlytics/android/a;->mZ:Ljava/util/Collection;
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public static A(Ljava/lang/String;)V
.locals 3
invoke-static {}, Lcom/crashlytics/android/a;->checkInitialized()V
invoke-static {}, Lcom/crashlytics/android/a;->bK()Lcom/crashlytics/android/a;
move-result-object v0
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/a;->mW:Lcom/crashlytics/android/core/l;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-boolean v1, v0, Lcom/crashlytics/android/core/l;->qF:Z
2019-02-04 20:08:30 +00:00
if-nez v1, :cond_0
const-string v1, "prior to setting user data."
invoke-static {v1}, Lcom/crashlytics/android/core/l;->N(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
invoke-static {p0}, Lcom/crashlytics/android/core/l;->O(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
2019-05-03 18:53:54 +00:00
iput-object p0, v0, Lcom/crashlytics/android/core/l;->qD:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object p0, v0, Lcom/crashlytics/android/core/l;->qB:Lcom/crashlytics/android/core/k;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v1, v0, Lcom/crashlytics/android/core/l;->qC:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
iget-object v2, v0, Lcom/crashlytics/android/core/l;->userName:Ljava/lang/String;
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/core/l;->qD:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, v1, v2, v0}, Lcom/crashlytics/android/core/k;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_0
return-void
.end method
.method public static a(Ljava/lang/Throwable;)V
.locals 5
invoke-static {}, Lcom/crashlytics/android/a;->checkInitialized()V
invoke-static {}, Lcom/crashlytics/android/a;->bK()Lcom/crashlytics/android/a;
move-result-object v0
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/a;->mW:Lcom/crashlytics/android/core/l;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-boolean v1, v0, Lcom/crashlytics/android/core/l;->qF:Z
2019-02-04 20:08:30 +00:00
if-nez v1, :cond_1
const-string v1, "prior to logging exceptions."
invoke-static {v1}, Lcom/crashlytics/android/core/l;->N(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_1
if-nez p0, :cond_0
2019-07-10 21:18:28 +00:00
invoke-static {}, Lio/fabric/sdk/android/c;->Cp()Lio/fabric/sdk/android/l;
2019-02-04 20:08:30 +00:00
move-result-object p0
const/4 v0, 0x5
const-string v1, "CrashlyticsCore"
const-string v2, "Crashlytics is ignoring a request to log a null exception."
invoke-interface {p0, v0, v1, v2}, Lio/fabric/sdk/android/l;->d(ILjava/lang/String;Ljava/lang/String;)V
return-void
:cond_0
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/core/l;->qB:Lcom/crashlytics/android/core/k;
2019-02-04 20:08:30 +00:00
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
new-instance v2, Ljava/util/Date;
invoke-direct {v2}, Ljava/util/Date;-><init>()V
2019-05-03 18:53:54 +00:00
iget-object v3, v0, Lcom/crashlytics/android/core/k;->px:Lcom/crashlytics/android/core/j;
2019-02-04 20:08:30 +00:00
new-instance v4, Lcom/crashlytics/android/core/k$25;
invoke-direct {v4, v0, v2, v1, p0}, Lcom/crashlytics/android/core/k$25;-><init>(Lcom/crashlytics/android/core/k;Ljava/util/Date;Ljava/lang/Thread;Ljava/lang/Throwable;)V
invoke-virtual {v3, v4}, Lcom/crashlytics/android/core/j;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
:cond_1
return-void
.end method
.method private static bK()Lcom/crashlytics/android/a;
.locals 1
const-class v0, Lcom/crashlytics/android/a;
2019-05-03 18:53:54 +00:00
invoke-static {v0}, Lio/fabric/sdk/android/c;->P(Ljava/lang/Class;)Lio/fabric/sdk/android/i;
2019-02-04 20:08:30 +00:00
move-result-object v0
check-cast v0, Lcom/crashlytics/android/a;
return-object v0
.end method
.method private static checkInitialized()V
.locals 2
invoke-static {}, Lcom/crashlytics/android/a;->bK()Lcom/crashlytics/android/a;
move-result-object v0
if-eqz v0, :cond_0
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Crashlytics must be initialized by calling Fabric.with(Context) prior to calling Crashlytics.getInstance()"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static log(Ljava/lang/String;)V
.locals 2
invoke-static {}, Lcom/crashlytics/android/a;->checkInitialized()V
invoke-static {}, Lcom/crashlytics/android/a;->bK()Lcom/crashlytics/android/a;
move-result-object v0
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/a;->mW:Lcom/crashlytics/android/core/l;
2019-02-04 20:08:30 +00:00
const-string v1, "CrashlyticsCore"
invoke-virtual {v0, v1, p0}, Lcom/crashlytics/android/core/l;->j(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public static setString(Ljava/lang/String;Ljava/lang/String;)V
.locals 3
invoke-static {}, Lcom/crashlytics/android/a;->checkInitialized()V
invoke-static {}, Lcom/crashlytics/android/a;->bK()Lcom/crashlytics/android/a;
move-result-object v0
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/a;->mW:Lcom/crashlytics/android/core/l;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-boolean v1, v0, Lcom/crashlytics/android/core/l;->qF:Z
2019-02-04 20:08:30 +00:00
if-nez v1, :cond_2
const-string v1, "prior to setting keys."
invoke-static {v1}, Lcom/crashlytics/android/core/l;->N(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_2
invoke-static {p0}, Lcom/crashlytics/android/core/l;->O(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
2019-05-03 18:53:54 +00:00
iget-object v1, v0, Lcom/crashlytics/android/core/l;->qx:Ljava/util/concurrent/ConcurrentHashMap;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentHashMap;->size()I
move-result v1
const/16 v2, 0x40
if-lt v1, v2, :cond_0
2019-05-03 18:53:54 +00:00
iget-object v1, v0, Lcom/crashlytics/android/core/l;->qx:Ljava/util/concurrent/ConcurrentHashMap;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1, p0}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_0
2019-07-10 21:18:28 +00:00
invoke-static {}, Lio/fabric/sdk/android/c;->Cp()Lio/fabric/sdk/android/l;
2019-02-04 20:08:30 +00:00
move-result-object p0
const-string p1, "CrashlyticsCore"
const-string v0, "Exceeded maximum number of custom attributes (64)"
invoke-interface {p0, p1, v0}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
return-void
:cond_0
if-nez p1, :cond_1
const-string p1, ""
goto :goto_0
:cond_1
invoke-static {p1}, Lcom/crashlytics/android/core/l;->O(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
:goto_0
2019-05-03 18:53:54 +00:00
iget-object v1, v0, Lcom/crashlytics/android/core/l;->qx:Ljava/util/concurrent/ConcurrentHashMap;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1, p0, p1}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
2019-05-03 18:53:54 +00:00
iget-object p0, v0, Lcom/crashlytics/android/core/l;->qB:Lcom/crashlytics/android/core/k;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object p1, v0, Lcom/crashlytics/android/core/l;->qx:Ljava/util/concurrent/ConcurrentHashMap;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/crashlytics/android/core/k;->px:Lcom/crashlytics/android/core/j;
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/crashlytics/android/core/k$3;
invoke-direct {v1, p0, p1}, Lcom/crashlytics/android/core/k$3;-><init>(Lcom/crashlytics/android/core/k;Ljava/util/Map;)V
invoke-virtual {v0, v1}, Lcom/crashlytics/android/core/j;->submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
:cond_2
return-void
.end method
.method public static y(Ljava/lang/String;)V
.locals 3
invoke-static {}, Lcom/crashlytics/android/a;->checkInitialized()V
invoke-static {}, Lcom/crashlytics/android/a;->bK()Lcom/crashlytics/android/a;
move-result-object v0
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/a;->mW:Lcom/crashlytics/android/core/l;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-boolean v1, v0, Lcom/crashlytics/android/core/l;->qF:Z
2019-02-04 20:08:30 +00:00
if-nez v1, :cond_0
const-string v1, "prior to setting user data."
invoke-static {v1}, Lcom/crashlytics/android/core/l;->N(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
invoke-static {p0}, Lcom/crashlytics/android/core/l;->O(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
2019-05-03 18:53:54 +00:00
iput-object p0, v0, Lcom/crashlytics/android/core/l;->qC:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object p0, v0, Lcom/crashlytics/android/core/l;->qB:Lcom/crashlytics/android/core/k;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v1, v0, Lcom/crashlytics/android/core/l;->qC:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
iget-object v2, v0, Lcom/crashlytics/android/core/l;->userName:Ljava/lang/String;
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/core/l;->qD:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, v1, v2, v0}, Lcom/crashlytics/android/core/k;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_0
return-void
.end method
.method public static z(Ljava/lang/String;)V
.locals 3
invoke-static {}, Lcom/crashlytics/android/a;->checkInitialized()V
invoke-static {}, Lcom/crashlytics/android/a;->bK()Lcom/crashlytics/android/a;
move-result-object v0
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/a;->mW:Lcom/crashlytics/android/core/l;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-boolean v1, v0, Lcom/crashlytics/android/core/l;->qF:Z
2019-02-04 20:08:30 +00:00
if-nez v1, :cond_0
const-string v1, "prior to setting user data."
invoke-static {v1}, Lcom/crashlytics/android/core/l;->N(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
invoke-static {p0}, Lcom/crashlytics/android/core/l;->O(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
iput-object p0, v0, Lcom/crashlytics/android/core/l;->userName:Ljava/lang/String;
2019-05-03 18:53:54 +00:00
iget-object p0, v0, Lcom/crashlytics/android/core/l;->qB:Lcom/crashlytics/android/core/k;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v1, v0, Lcom/crashlytics/android/core/l;->qC:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
iget-object v2, v0, Lcom/crashlytics/android/core/l;->userName:Ljava/lang/String;
2019-05-03 18:53:54 +00:00
iget-object v0, v0, Lcom/crashlytics/android/core/l;->qD:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, v1, v2, v0}, Lcom/crashlytics/android/core/k;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_0
return-void
.end method
# virtual methods
.method public final bJ()Ljava/util/Collection;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Collection<",
"+",
"Lio/fabric/sdk/android/i;",
">;"
}
.end annotation
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/crashlytics/android/a;->mZ:Ljava/util/Collection;
2019-02-04 20:08:30 +00:00
return-object v0
.end method
.method public final bridge synthetic bL()Ljava/lang/Object;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public final getIdentifier()Ljava/lang/String;
.locals 1
const-string v0, "com.crashlytics.sdk.android:crashlytics"
return-object v0
.end method
.method public final getVersion()Ljava/lang/String;
.locals 1
2019-05-04 02:59:52 +00:00
const-string v0, "2.10.0.33"
2019-02-04 20:08:30 +00:00
return-object v0
.end method