apkfuckery/com.discord/smali/f/a/b/j.smali
2020-11-21 22:11:07 +00:00

128 lines
2.9 KiB
Smali

.class public final Lf/a/b/j;
.super Ly/m/c/k;
.source "AppLog.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ly/m/c/k;",
"Lkotlin/jvm/functions/Function1<",
"Lcom/discord/utilities/SystemLogUtils$Tombstone;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# static fields
.field public static final d:Lf/a/b/j;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lf/a/b/j;
invoke-direct {v0}, Lf/a/b/j;-><init>()V
sput-object v0, Lf/a/b/j;->d:Lf/a/b/j;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Ly/m/c/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 10
check-cast p1, Lcom/discord/utilities/SystemLogUtils$Tombstone;
const-string v0, "crash"
invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1}, Lcom/discord/utilities/SystemLogUtils$Tombstone;->getText()Ljava/lang/String;
move-result-object v0
const-string v1, "\n"
filled-new-array {v1}, [Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
const/4 v3, 0x6
invoke-static {v0, v1, v2, v2, v3}, Ly/s/p;->split$default(Ljava/lang/CharSequence;[Ljava/lang/String;ZII)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
sget-object v2, Lcom/discord/app/AppLog;->e:Lcom/discord/app/AppLog;
const-string v3, "Tombstone"
invoke-virtual {v2, v1, v3}, Lcom/discord/app/AppLog;->recordBreadcrumb(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
:cond_0
sget-object v4, Lcom/discord/app/AppLog;->e:Lcom/discord/app/AppLog;
invoke-virtual {p1}, Lcom/discord/utilities/SystemLogUtils$Tombstone;->getHash()Ljava/lang/String;
move-result-object p1
const-string v0, "Tombstone-Hash"
invoke-virtual {v4, p1, v0}, Lcom/discord/app/AppLog;->recordBreadcrumb(Ljava/lang/String;Ljava/lang/String;)V
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x6
const/4 v9, 0x0
const-string v5, "Tombstone"
invoke-static/range {v4 .. v9}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
.end method