apkfuckery/com.discord/smali/e/h/a/a.smali
2019-12-06 04:29:40 +01:00

310 lines
6.3 KiB
Smali

.class public Le/h/a/a;
.super Lq/a/a/a/l;
.source "Crashlytics.java"
# interfaces
.implements Lq/a/a/a/m;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lq/a/a/a/l<",
"Ljava/lang/Void;",
">;",
"Lq/a/a/a/m;"
}
.end annotation
# instance fields
.field public final j:Le/h/a/e/d0;
.field public final k:Ljava/util/Collection;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Collection<",
"+",
"Lq/a/a/a/l;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 5
new-instance v0, Lcom/crashlytics/android/answers/Answers;
invoke-direct {v0}, Lcom/crashlytics/android/answers/Answers;-><init>()V
new-instance v1, Le/h/a/d/a;
invoke-direct {v1}, Le/h/a/d/a;-><init>()V
new-instance v2, Le/h/a/e/d0;
invoke-direct {v2}, Le/h/a/e/d0;-><init>()V
invoke-direct {p0}, Lq/a/a/a/l;-><init>()V
iput-object v2, p0, Le/h/a/a;->j:Le/h/a/e/d0;
const/4 v3, 0x3
new-array v3, v3, [Lq/a/a/a/l;
const/4 v4, 0x0
aput-object v0, v3, v4
const/4 v0, 0x1
aput-object v1, v3, v0
const/4 v0, 0x2
aput-object v2, v3, v0
invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
invoke-static {v0}, Ljava/util/Collections;->unmodifiableCollection(Ljava/util/Collection;)Ljava/util/Collection;
move-result-object v0
iput-object v0, p0, Le/h/a/a;->k:Ljava/util/Collection;
return-void
.end method
.method public static a(Ljava/lang/String;)V
.locals 1
invoke-static {}, Le/h/a/a;->m()V
invoke-static {}, Le/h/a/a;->r()Le/h/a/a;
move-result-object v0
iget-object v0, v0, Le/h/a/a;->j:Le/h/a/e/d0;
invoke-virtual {v0, p0}, Le/h/a/e/d0;->a(Ljava/lang/String;)V
return-void
.end method
.method public static a(Ljava/lang/String;Ljava/lang/String;)V
.locals 5
invoke-static {}, Le/h/a/a;->m()V
invoke-static {}, Le/h/a/a;->r()Le/h/a/a;
move-result-object v0
iget-object v0, v0, Le/h/a/a;->j:Le/h/a/e/d0;
iget-boolean v1, v0, Le/h/a/e/d0;->t:Z
if-eqz v1, :cond_0
goto/16 :goto_2
:cond_0
const-string v1, "prior to setting keys."
invoke-static {v1}, Le/h/a/e/d0;->b(Ljava/lang/String;)Z
move-result v1
if-nez v1, :cond_1
goto :goto_2
:cond_1
const/4 v1, 0x0
const-string v2, "CrashlyticsCore"
if-nez p0, :cond_4
iget-object p0, v0, Lq/a/a/a/l;->f:Landroid/content/Context;
if-eqz p0, :cond_3
invoke-static {p0}, Lq/a/a/a/p/b/j;->f(Landroid/content/Context;)Z
move-result p0
if-nez p0, :cond_2
goto :goto_0
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Custom attribute key must not be null."
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
:cond_3
:goto_0
invoke-static {}, Lq/a/a/a/f;->a()Lq/a/a/a/c;
move-result-object p0
const/4 p1, 0x6
invoke-virtual {p0, v2, p1}, Lq/a/a/a/c;->a(Ljava/lang/String;I)Z
move-result p0
if-eqz p0, :cond_7
const-string p0, "Attempting to set custom attribute with null key, ignoring."
invoke-static {v2, p0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_2
:cond_4
invoke-static {p0}, Le/h/a/e/d0;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
iget-object v3, v0, Le/h/a/e/d0;->k:Ljava/util/concurrent/ConcurrentHashMap;
invoke-virtual {v3}, Ljava/util/concurrent/ConcurrentHashMap;->size()I
move-result v3
const/16 v4, 0x40
if-lt v3, v4, :cond_5
iget-object v3, v0, Le/h/a/e/d0;->k:Ljava/util/concurrent/ConcurrentHashMap;
invoke-virtual {v3, p0}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_5
invoke-static {}, Lq/a/a/a/f;->a()Lq/a/a/a/c;
move-result-object p0
const/4 p1, 0x3
invoke-virtual {p0, v2, p1}, Lq/a/a/a/c;->a(Ljava/lang/String;I)Z
move-result p0
if-eqz p0, :cond_7
const-string p0, "Exceeded maximum number of custom attributes (64)"
invoke-static {v2, p0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_2
:cond_5
if-nez p1, :cond_6
const-string p1, ""
goto :goto_1
:cond_6
invoke-static {p1}, Le/h/a/e/d0;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
:goto_1
iget-object v1, v0, Le/h/a/e/d0;->k:Ljava/util/concurrent/ConcurrentHashMap;
invoke-virtual {v1, p0, p1}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object p0, v0, Le/h/a/e/d0;->o:Le/h/a/e/n;
iget-object p1, v0, Le/h/a/e/d0;->k:Ljava/util/concurrent/ConcurrentHashMap;
iget-object v0, p0, Le/h/a/e/n;->c:Le/h/a/e/m;
new-instance v1, Le/h/a/e/o;
invoke-direct {v1, p0, p1}, Le/h/a/e/o;-><init>(Le/h/a/e/n;Ljava/util/Map;)V
invoke-virtual {v0, v1}, Le/h/a/e/m;->a(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
:cond_7
:goto_2
return-void
.end method
.method public static m()V
.locals 2
invoke-static {}, Le/h/a/a;->r()Le/h/a/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 r()Le/h/a/a;
.locals 1
const-class v0, Le/h/a/a;
invoke-static {v0}, Lq/a/a/a/f;->a(Ljava/lang/Class;)Lq/a/a/a/l;
move-result-object v0
check-cast v0, Le/h/a/a;
return-object v0
.end method
# virtual methods
.method public a()Ljava/lang/Object;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public e()Ljava/lang/String;
.locals 1
const-string v0, "com.crashlytics.sdk.android:crashlytics"
return-object v0
.end method
.method public g()Ljava/lang/String;
.locals 1
const-string v0, "2.10.0.33"
return-object v0
.end method