198 lines
6 KiB
Smali
198 lines
6 KiB
Smali
.class public final Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;
|
|
.super Lc0/n/c/k;
|
|
.source "SystemLogUtils.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/SystemLogUtils;->fetchLastTombstone$app_productionDiscordExternalRelease(Ljava/util/Collection;)Lcom/discord/utilities/SystemLogUtils$Tombstone;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lc0/n/c/k;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $actualLibdiscordVersion:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
.field public final synthetic $crashes:Ljava/util/Collection;
|
|
|
|
.field public final synthetic $lastLibdiscordVersion:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/Collection;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;->$crashes:Ljava/util/Collection;
|
|
|
|
iput-object p2, p0, Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;->$lastLibdiscordVersion:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
iput-object p3, p0, Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;->$actualLibdiscordVersion:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-direct {p0, p1}, Lc0/n/c/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;->invoke()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final invoke()Ljava/lang/String;
|
|
.locals 9
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;->$crashes:Ljava/util/Collection;
|
|
|
|
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
const-string v3, "append(value)"
|
|
|
|
const-string v4, "append(\'\\n\')"
|
|
|
|
const/16 v5, 0xa
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
const-string v6, "libdiscord_version"
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x2
|
|
|
|
invoke-static {v2, v6, v7, v8}, Lc0/t/p;->contains$default(Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZI)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
iget-object v3, p0, Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;->$lastLibdiscordVersion:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
iput-object v2, v3, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v6, "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***"
|
|
|
|
invoke-static {v2, v6, v7, v8}, Lc0/t/p;->contains$default(Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZI)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
iget-object v6, p0, Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;->$actualLibdiscordVersion:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
iget-object v8, p0, Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;->$lastLibdiscordVersion:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
iget-object v8, v8, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v8, Ljava/lang/String;
|
|
|
|
iput-object v8, v6, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
const-string v6, "$this$clear"
|
|
|
|
invoke-static {v0, v6}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->setLength(I)V
|
|
|
|
:cond_1
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v0, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v0, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-static {v0}, Lc0/t/k;->isBlank(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
xor-int/lit8 v1, v1, 0x1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v0, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "Tombstone\'s libdiscord_version: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/SystemLogUtils$fetchLastTombstone$text$1;->$actualLibdiscordVersion:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const-string v1, "Unknown libdiscord_version"
|
|
|
|
:goto_1
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v0, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v0, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_4
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|