mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
268 lines
5.9 KiB
Smali
268 lines
5.9 KiB
Smali
.class public final Lio/sentry/SentryEnvelopeHeader$Deserializer;
|
|
.super Ljava/lang/Object;
|
|
.source "SentryEnvelopeHeader.java"
|
|
|
|
# interfaces
|
|
.implements Lio/sentry/JsonDeserializer;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lio/sentry/SentryEnvelopeHeader;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Deserializer"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lio/sentry/JsonDeserializer<",
|
|
"Lio/sentry/SentryEnvelopeHeader;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 117
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public deserialize(Lio/sentry/JsonObjectReader;Lio/sentry/ILogger;)Lio/sentry/SentryEnvelopeHeader;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
.line 121
|
|
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->beginObject()V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, v0
|
|
|
|
move-object v2, v1
|
|
|
|
move-object v3, v2
|
|
|
|
.line 129
|
|
:goto_0
|
|
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->peek()Lio/sentry/vendor/gson/stream/JsonToken;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lio/sentry/vendor/gson/stream/JsonToken;->NAME:Lio/sentry/vendor/gson/stream/JsonToken;
|
|
|
|
if-ne v4, v5, :cond_5
|
|
|
|
.line 130
|
|
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->nextName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
.line 131
|
|
invoke-virtual {v4}, Ljava/lang/String;->hashCode()I
|
|
|
|
invoke-virtual {v4}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, -0x1
|
|
|
|
sparse-switch v5, :sswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_0
|
|
const-string v5, "sent_at"
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v6, 0x3
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v5, "event_id"
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v6, 0x2
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v5, "trace"
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v5, "sdk"
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 v6, 0x0
|
|
|
|
:goto_1
|
|
packed-switch v6, :pswitch_data_0
|
|
|
|
if-nez v3, :cond_4
|
|
|
|
.line 146
|
|
new-instance v3, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v3}, Ljava/util/HashMap;-><init>()V
|
|
|
|
.line 148
|
|
:cond_4
|
|
invoke-virtual {p1, p2, v3, v4}, Lio/sentry/JsonObjectReader;->nextUnknown(Lio/sentry/ILogger;Ljava/util/Map;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 142
|
|
:pswitch_0
|
|
invoke-virtual {p1, p2}, Lio/sentry/JsonObjectReader;->nextDateOrNull(Lio/sentry/ILogger;)Ljava/util/Date;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_0
|
|
|
|
.line 133
|
|
:pswitch_1
|
|
new-instance p0, Lio/sentry/protocol/SentryId$Deserializer;
|
|
|
|
invoke-direct {p0}, Lio/sentry/protocol/SentryId$Deserializer;-><init>()V
|
|
|
|
invoke-virtual {p1, p2, p0}, Lio/sentry/JsonObjectReader;->nextOrNull(Lio/sentry/ILogger;Lio/sentry/JsonDeserializer;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lio/sentry/protocol/SentryId;
|
|
|
|
goto :goto_0
|
|
|
|
.line 139
|
|
:pswitch_2
|
|
new-instance v1, Lio/sentry/TraceContext$Deserializer;
|
|
|
|
invoke-direct {v1}, Lio/sentry/TraceContext$Deserializer;-><init>()V
|
|
|
|
invoke-virtual {p1, p2, v1}, Lio/sentry/JsonObjectReader;->nextOrNull(Lio/sentry/ILogger;Lio/sentry/JsonDeserializer;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lio/sentry/TraceContext;
|
|
|
|
goto :goto_0
|
|
|
|
.line 136
|
|
:pswitch_3
|
|
new-instance v0, Lio/sentry/protocol/SdkVersion$Deserializer;
|
|
|
|
invoke-direct {v0}, Lio/sentry/protocol/SdkVersion$Deserializer;-><init>()V
|
|
|
|
invoke-virtual {p1, p2, v0}, Lio/sentry/JsonObjectReader;->nextOrNull(Lio/sentry/ILogger;Lio/sentry/JsonDeserializer;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lio/sentry/protocol/SdkVersion;
|
|
|
|
goto :goto_0
|
|
|
|
.line 152
|
|
:cond_5
|
|
new-instance p2, Lio/sentry/SentryEnvelopeHeader;
|
|
|
|
invoke-direct {p2, p0, v0, v1}, Lio/sentry/SentryEnvelopeHeader;-><init>(Lio/sentry/protocol/SentryId;Lio/sentry/protocol/SdkVersion;Lio/sentry/TraceContext;)V
|
|
|
|
.line 154
|
|
invoke-virtual {p2, v2}, Lio/sentry/SentryEnvelopeHeader;->setSentAt(Ljava/util/Date;)V
|
|
|
|
.line 155
|
|
invoke-virtual {p2, v3}, Lio/sentry/SentryEnvelopeHeader;->setUnknown(Ljava/util/Map;)V
|
|
|
|
.line 156
|
|
invoke-virtual {p1}, Lio/sentry/JsonObjectReader;->endObject()V
|
|
|
|
return-object p2
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0x1bc3a -> :sswitch_3
|
|
0x697f145 -> :sswitch_2
|
|
0x1093c0e0 -> :sswitch_1
|
|
0x760a5a3a -> :sswitch_0
|
|
.end sparse-switch
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public bridge synthetic deserialize(Lio/sentry/JsonObjectReader;Lio/sentry/ILogger;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
.line 117
|
|
invoke-virtual {p0, p1, p2}, Lio/sentry/SentryEnvelopeHeader$Deserializer;->deserialize(Lio/sentry/JsonObjectReader;Lio/sentry/ILogger;)Lio/sentry/SentryEnvelopeHeader;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|