apkfuckery/com.discord/smali/e/h/a/a.smali

311 lines
6.3 KiB
Smali
Raw Normal View History

2020-04-27 20:53:11 +00:00
.class public Le/h/a/a;
.super Lv/a/a/a/l;
2019-12-06 03:29:40 +00:00
.source "Crashlytics.java"
# interfaces
2020-04-27 20:53:11 +00:00
.implements Lv/a/a/a/m;
2019-12-06 03:29:40 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
2020-04-27 20:53:11 +00:00
"Lv/a/a/a/l<",
2019-12-06 03:29:40 +00:00
"Ljava/lang/Void;",
">;",
2020-04-27 20:53:11 +00:00
"Lv/a/a/a/m;"
2019-12-06 03:29:40 +00:00
}
.end annotation
# instance fields
2020-04-27 20:53:11 +00:00
.field public final j:Le/h/a/e/d0;
2019-12-06 03:29:40 +00:00
.field public final k:Ljava/util/Collection;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Collection<",
"+",
2020-04-27 20:53:11 +00:00
"Lv/a/a/a/l;",
2019-12-06 03:29:40 +00:00
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 5
2020-04-27 20:53:11 +00:00
new-instance v0, Le/h/a/c/b;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {v0}, Le/h/a/c/b;-><init>()V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
new-instance v1, Le/h/a/d/a;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {v1}, Le/h/a/d/a;-><init>()V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
new-instance v2, Le/h/a/e/d0;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {v2}, Le/h/a/e/d0;-><init>()V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {p0}, Lv/a/a/a/l;-><init>()V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iput-object v2, p0, Le/h/a/a;->j:Le/h/a/e/d0;
2019-12-06 03:29:40 +00:00
const/4 v3, 0x3
2020-04-27 20:53:11 +00:00
new-array v3, v3, [Lv/a/a/a/l;
2019-12-06 03:29:40 +00:00
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
2020-04-27 20:53:11 +00:00
iput-object v0, p0, Le/h/a/a;->k:Ljava/util/Collection;
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public static a(Ljava/lang/String;)V
.locals 1
2020-04-27 20:53:11 +00:00
invoke-static {}, Le/h/a/a;->j()V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-static {}, Le/h/a/a;->k()Le/h/a/a;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-04-27 20:53:11 +00:00
iget-object v0, v0, Le/h/a/a;->j:Le/h/a/e/d0;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v0, p0}, Le/h/a/e/d0;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public static a(Ljava/lang/String;Ljava/lang/String;)V
.locals 5
2020-04-27 20:53:11 +00:00
invoke-static {}, Le/h/a/a;->j()V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-static {}, Le/h/a/a;->k()Le/h/a/a;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-04-27 20:53:11 +00:00
iget-object v0, v0, Le/h/a/a;->j:Le/h/a/e/d0;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-boolean v1, v0, Le/h/a/e/d0;->t:Z
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
goto/16 :goto_2
:cond_0
const-string v1, "prior to setting keys."
2020-04-27 20:53:11 +00:00
invoke-static {v1}, Le/h/a/e/d0;->b(Ljava/lang/String;)Z
2019-12-06 03:29:40 +00:00
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
2020-04-27 20:53:11 +00:00
iget-object p0, v0, Lv/a/a/a/l;->f:Landroid/content/Context;
2019-12-06 03:29:40 +00:00
if-eqz p0, :cond_3
2020-04-27 20:53:11 +00:00
invoke-static {p0}, Lv/a/a/a/p/b/j;->f(Landroid/content/Context;)Z
2019-12-06 03:29:40 +00:00
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
2020-04-27 20:53:11 +00:00
invoke-static {}, Lv/a/a/a/f;->a()Lv/a/a/a/c;
2019-12-06 03:29:40 +00:00
move-result-object p0
const/4 p1, 0x6
2020-04-27 20:53:11 +00:00
invoke-virtual {p0, v2, p1}, Lv/a/a/a/c;->a(Ljava/lang/String;I)Z
2019-12-06 03:29:40 +00:00
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
2020-04-27 20:53:11 +00:00
invoke-static {p0}, Le/h/a/e/d0;->c(Ljava/lang/String;)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object p0
2020-04-27 20:53:11 +00:00
iget-object v3, v0, Le/h/a/e/d0;->k:Ljava/util/concurrent/ConcurrentHashMap;
2019-12-06 03:29:40 +00:00
invoke-virtual {v3}, Ljava/util/concurrent/ConcurrentHashMap;->size()I
move-result v3
const/16 v4, 0x40
if-lt v3, v4, :cond_5
2020-04-27 20:53:11 +00:00
iget-object v3, v0, Le/h/a/e/d0;->k:Ljava/util/concurrent/ConcurrentHashMap;
2019-12-06 03:29:40 +00:00
invoke-virtual {v3, p0}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_5
2020-04-27 20:53:11 +00:00
invoke-static {}, Lv/a/a/a/f;->a()Lv/a/a/a/c;
2019-12-06 03:29:40 +00:00
move-result-object p0
const/4 p1, 0x3
2020-04-27 20:53:11 +00:00
invoke-virtual {p0, v2, p1}, Lv/a/a/a/c;->a(Ljava/lang/String;I)Z
2019-12-06 03:29:40 +00:00
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
2020-04-27 20:53:11 +00:00
invoke-static {p1}, Le/h/a/e/d0;->c(Ljava/lang/String;)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object p1
:goto_1
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le/h/a/e/d0;->k:Ljava/util/concurrent/ConcurrentHashMap;
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, p0, p1}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
2020-04-27 20:53:11 +00:00
iget-object p0, v0, Le/h/a/e/d0;->o:Le/h/a/e/n;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object p1, v0, Le/h/a/e/d0;->k:Ljava/util/concurrent/ConcurrentHashMap;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, p0, Le/h/a/e/n;->c:Le/h/a/e/m;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
new-instance v1, Le/h/a/e/o;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {v1, p0, p1}, Le/h/a/e/o;-><init>(Le/h/a/e/n;Ljava/util/Map;)V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v0, v1}, Le/h/a/e/m;->a(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
2019-12-06 03:29:40 +00:00
:cond_7
:goto_2
return-void
.end method
2020-02-20 19:33:18 +00:00
.method public static j()V
2019-12-06 03:29:40 +00:00
.locals 2
2020-04-27 20:53:11 +00:00
invoke-static {}, Le/h/a/a;->k()Le/h/a/a;
2019-12-06 03:29:40 +00:00
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
2020-04-27 20:53:11 +00:00
.method public static k()Le/h/a/a;
2019-12-06 03:29:40 +00:00
.locals 1
2020-04-27 20:53:11 +00:00
const-class v0, Le/h/a/a;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-static {v0}, Lv/a/a/a/f;->a(Ljava/lang/Class;)Lv/a/a/a/l;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-04-27 20:53:11 +00:00
check-cast v0, Le/h/a/a;
2019-12-06 03:29:40 +00:00
return-object v0
.end method
# virtual methods
.method public a()Ljava/lang/Object;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
2020-02-20 19:33:18 +00:00
.method public b()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
.locals 1
const-string v0, "com.crashlytics.sdk.android:crashlytics"
return-object v0
.end method
2020-02-20 19:33:18 +00:00
.method public d()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
.locals 1
const-string v0, "2.10.0.33"
return-object v0
.end method