mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
1986 lines
54 KiB
Smali
1986 lines
54 KiB
Smali
|
.class public final Lio/sentry/SentryEnvelopeItem;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "SentryEnvelopeItem.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lio/sentry/SentryEnvelopeItem$CachedItem;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static final UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private data:[B
|
||
|
|
||
|
.field private final dataFactory:Ljava/util/concurrent/Callable;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/concurrent/Callable<",
|
||
|
"[B>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private final header:Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "UTF-8"
|
||
|
|
||
|
.line 34
|
||
|
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sput-object v0, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method constructor <init>(Lio/sentry/SentryEnvelopeItemHeader;Ljava/util/concurrent/Callable;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lio/sentry/SentryEnvelopeItemHeader;",
|
||
|
"Ljava/util/concurrent/Callable<",
|
||
|
"[B>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 50
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
const-string v0, "SentryEnvelopeItemHeader is required."
|
||
|
|
||
|
.line 51
|
||
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
iput-object p1, p0, Lio/sentry/SentryEnvelopeItem;->header:Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
const-string p1, "DataFactory is required."
|
||
|
|
||
|
.line 52
|
||
|
invoke-static {p2, p1}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Ljava/util/concurrent/Callable;
|
||
|
|
||
|
iput-object p1, p0, Lio/sentry/SentryEnvelopeItem;->dataFactory:Ljava/util/concurrent/Callable;
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
iput-object p1, p0, Lio/sentry/SentryEnvelopeItem;->data:[B
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method constructor <init>(Lio/sentry/SentryEnvelopeItemHeader;[B)V
|
||
|
.locals 1
|
||
|
|
||
|
.line 42
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
const-string v0, "SentryEnvelopeItemHeader is required."
|
||
|
|
||
|
.line 43
|
||
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
iput-object p1, p0, Lio/sentry/SentryEnvelopeItem;->header:Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
iput-object p2, p0, Lio/sentry/SentryEnvelopeItem;->data:[B
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
iput-object p1, p0, Lio/sentry/SentryEnvelopeItem;->dataFactory:Ljava/util/concurrent/Callable;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private static ensureAttachmentSizeLimit(JJLjava/lang/String;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Lio/sentry/exception/SentryEnvelopeException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
cmp-long v0, p0, p2
|
||
|
|
||
|
if-gtz v0, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 267
|
||
|
:cond_0
|
||
|
new-instance v0, Lio/sentry/exception/SentryEnvelopeException;
|
||
|
|
||
|
.line 273
|
||
|
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
filled-new-array {p4, p0, p1}, [Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-string p1, "Dropping attachment with filename \'%s\', because the size of the passed bytes with %d bytes is bigger than the maximum allowed attachment size of %d bytes."
|
||
|
|
||
|
.line 268
|
||
|
invoke-static {p1, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v0, p0}, Lio/sentry/exception/SentryEnvelopeException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromAttachment(Lio/sentry/ISerializer;Lio/sentry/ILogger;Lio/sentry/Attachment;J)Lio/sentry/SentryEnvelopeItem;
|
||
|
.locals 8
|
||
|
|
||
|
.line 223
|
||
|
new-instance v0, Lio/sentry/SentryEnvelopeItem$CachedItem;
|
||
|
|
||
|
new-instance v7, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda6;
|
||
|
|
||
|
move-object v1, v7
|
||
|
|
||
|
move-object v2, p2
|
||
|
|
||
|
move-wide v3, p3
|
||
|
|
||
|
move-object v5, p0
|
||
|
|
||
|
move-object v6, p1
|
||
|
|
||
|
invoke-direct/range {v1 .. v6}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda6;-><init>(Lio/sentry/Attachment;JLio/sentry/ISerializer;Lio/sentry/ILogger;)V
|
||
|
|
||
|
invoke-direct {v0, v7}, Lio/sentry/SentryEnvelopeItem$CachedItem;-><init>(Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
.line 250
|
||
|
new-instance p0, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
sget-object v2, Lio/sentry/SentryItemType;->Attachment:Lio/sentry/SentryItemType;
|
||
|
|
||
|
new-instance v3, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda7;
|
||
|
|
||
|
invoke-direct {v3, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda7;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
.line 254
|
||
|
invoke-virtual {p2}, Lio/sentry/Attachment;->getContentType()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
.line 255
|
||
|
invoke-virtual {p2}, Lio/sentry/Attachment;->getFilename()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
.line 256
|
||
|
invoke-virtual {p2}, Lio/sentry/Attachment;->getAttachmentType()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
move-object v1, p0
|
||
|
|
||
|
invoke-direct/range {v1 .. v6}, Lio/sentry/SentryEnvelopeItemHeader;-><init>(Lio/sentry/SentryItemType;Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 260
|
||
|
new-instance p1, Lio/sentry/SentryEnvelopeItem;
|
||
|
|
||
|
new-instance p2, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda8;
|
||
|
|
||
|
invoke-direct {p2, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda8;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
invoke-direct {p1, p0, p2}, Lio/sentry/SentryEnvelopeItem;-><init>(Lio/sentry/SentryEnvelopeItemHeader;Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromCheckIn(Lio/sentry/ISerializer;Lio/sentry/CheckIn;)Lio/sentry/SentryEnvelopeItem;
|
||
|
.locals 4
|
||
|
|
||
|
const-string v0, "ISerializer is required."
|
||
|
|
||
|
.line 173
|
||
|
invoke-static {p0, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
const-string v0, "CheckIn is required."
|
||
|
|
||
|
.line 174
|
||
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
.line 176
|
||
|
new-instance v0, Lio/sentry/SentryEnvelopeItem$CachedItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda17;
|
||
|
|
||
|
invoke-direct {v1, p0, p1}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda17;-><init>(Lio/sentry/ISerializer;Lio/sentry/CheckIn;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Lio/sentry/SentryEnvelopeItem$CachedItem;-><init>(Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
.line 186
|
||
|
new-instance p0, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
sget-object p1, Lio/sentry/SentryItemType;->CheckIn:Lio/sentry/SentryItemType;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda18;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda18;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
const-string v2, "application/json"
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
invoke-direct {p0, p1, v1, v2, v3}, Lio/sentry/SentryEnvelopeItemHeader;-><init>(Lio/sentry/SentryItemType;Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 192
|
||
|
new-instance p1, Lio/sentry/SentryEnvelopeItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda19;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda19;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
invoke-direct {p1, p0, v1}, Lio/sentry/SentryEnvelopeItem;-><init>(Lio/sentry/SentryEnvelopeItemHeader;Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromClientReport(Lio/sentry/ISerializer;Lio/sentry/clientreport/ClientReport;)Lio/sentry/SentryEnvelopeItem;
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "ISerializer is required."
|
||
|
|
||
|
.line 332
|
||
|
invoke-static {p0, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
const-string v0, "ClientReport is required."
|
||
|
|
||
|
.line 333
|
||
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
.line 335
|
||
|
new-instance v0, Lio/sentry/SentryEnvelopeItem$CachedItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda9;
|
||
|
|
||
|
invoke-direct {v1, p0, p1}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda9;-><init>(Lio/sentry/ISerializer;Lio/sentry/clientreport/ClientReport;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Lio/sentry/SentryEnvelopeItem$CachedItem;-><init>(Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
.line 345
|
||
|
new-instance p0, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
.line 347
|
||
|
invoke-static {p1}, Lio/sentry/SentryItemType;->resolve(Ljava/lang/Object;)Lio/sentry/SentryItemType;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda10;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda10;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
const-string v2, "application/json"
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
invoke-direct {p0, p1, v1, v2, v3}, Lio/sentry/SentryEnvelopeItemHeader;-><init>(Lio/sentry/SentryItemType;Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 354
|
||
|
new-instance p1, Lio/sentry/SentryEnvelopeItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda12;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda12;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
invoke-direct {p1, p0, v1}, Lio/sentry/SentryEnvelopeItem;-><init>(Lio/sentry/SentryEnvelopeItemHeader;Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromEvent(Lio/sentry/ISerializer;Lio/sentry/SentryBaseEvent;)Lio/sentry/SentryEnvelopeItem;
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "ISerializer is required."
|
||
|
|
||
|
.line 108
|
||
|
invoke-static {p0, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
const-string v0, "SentryEvent is required."
|
||
|
|
||
|
.line 109
|
||
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
.line 111
|
||
|
new-instance v0, Lio/sentry/SentryEnvelopeItem$CachedItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda0;
|
||
|
|
||
|
invoke-direct {v1, p0, p1}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda0;-><init>(Lio/sentry/ISerializer;Lio/sentry/SentryBaseEvent;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Lio/sentry/SentryEnvelopeItem$CachedItem;-><init>(Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
.line 121
|
||
|
new-instance p0, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
.line 123
|
||
|
invoke-static {p1}, Lio/sentry/SentryItemType;->resolve(Ljava/lang/Object;)Lio/sentry/SentryItemType;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda11;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda11;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
const-string v2, "application/json"
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
invoke-direct {p0, p1, v1, v2, v3}, Lio/sentry/SentryEnvelopeItemHeader;-><init>(Lio/sentry/SentryItemType;Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 130
|
||
|
new-instance p1, Lio/sentry/SentryEnvelopeItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda16;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda16;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
invoke-direct {p1, p0, v1}, Lio/sentry/SentryEnvelopeItem;-><init>(Lio/sentry/SentryEnvelopeItemHeader;Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromMetrics(Lio/sentry/metrics/EncodedMetrics;)Lio/sentry/SentryEnvelopeItem;
|
||
|
.locals 5
|
||
|
|
||
|
.line 197
|
||
|
new-instance v0, Lio/sentry/SentryEnvelopeItem$CachedItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda3;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda3;-><init>(Lio/sentry/metrics/EncodedMetrics;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Lio/sentry/SentryEnvelopeItem$CachedItem;-><init>(Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
.line 205
|
||
|
new-instance p0, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
sget-object v1, Lio/sentry/SentryItemType;->Statsd:Lio/sentry/SentryItemType;
|
||
|
|
||
|
new-instance v2, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda4;
|
||
|
|
||
|
invoke-direct {v2, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda4;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
const-string v3, "application/octet-stream"
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
invoke-direct {p0, v1, v2, v3, v4}, Lio/sentry/SentryEnvelopeItemHeader;-><init>(Lio/sentry/SentryItemType;Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 214
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem;
|
||
|
|
||
|
new-instance v2, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda5;
|
||
|
|
||
|
invoke-direct {v2, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda5;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
invoke-direct {v1, p0, v2}, Lio/sentry/SentryEnvelopeItem;-><init>(Lio/sentry/SentryEnvelopeItemHeader;Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
return-object v1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromProfilingTrace(Lio/sentry/ProfilingTraceData;JLio/sentry/ISerializer;)Lio/sentry/SentryEnvelopeItem;
|
||
|
.locals 9
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Lio/sentry/exception/SentryEnvelopeException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 283
|
||
|
invoke-virtual {p0}, Lio/sentry/ProfilingTraceData;->getTraceFile()Ljava/io/File;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
.line 285
|
||
|
new-instance v7, Lio/sentry/SentryEnvelopeItem$CachedItem;
|
||
|
|
||
|
new-instance v8, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda13;
|
||
|
|
||
|
move-object v0, v8
|
||
|
|
||
|
move-object v1, v6
|
||
|
|
||
|
move-wide v2, p1
|
||
|
|
||
|
move-object v4, p0
|
||
|
|
||
|
move-object v5, p3
|
||
|
|
||
|
invoke-direct/range {v0 .. v5}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda13;-><init>(Ljava/io/File;JLio/sentry/ProfilingTraceData;Lio/sentry/ISerializer;)V
|
||
|
|
||
|
invoke-direct {v7, v8}, Lio/sentry/SentryEnvelopeItem$CachedItem;-><init>(Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
.line 317
|
||
|
new-instance p0, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
sget-object p1, Lio/sentry/SentryItemType;->Profile:Lio/sentry/SentryItemType;
|
||
|
|
||
|
new-instance p2, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda14;
|
||
|
|
||
|
invoke-direct {p2, v7}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda14;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
const-string p3, "application-json"
|
||
|
|
||
|
.line 322
|
||
|
invoke-virtual {v6}, Ljava/io/File;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0, p1, p2, p3, v0}, Lio/sentry/SentryEnvelopeItemHeader;-><init>(Lio/sentry/SentryItemType;Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 326
|
||
|
new-instance p1, Lio/sentry/SentryEnvelopeItem;
|
||
|
|
||
|
new-instance p2, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda15;
|
||
|
|
||
|
invoke-direct {p2, v7}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda15;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
invoke-direct {p1, p0, p2}, Lio/sentry/SentryEnvelopeItem;-><init>(Lio/sentry/SentryEnvelopeItemHeader;Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromSession(Lio/sentry/ISerializer;Lio/sentry/Session;)Lio/sentry/SentryEnvelopeItem;
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "ISerializer is required."
|
||
|
|
||
|
.line 73
|
||
|
invoke-static {p0, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
const-string v0, "Session is required."
|
||
|
|
||
|
.line 74
|
||
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
.line 76
|
||
|
new-instance v0, Lio/sentry/SentryEnvelopeItem$CachedItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda23;
|
||
|
|
||
|
invoke-direct {v1, p0, p1}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda23;-><init>(Lio/sentry/ISerializer;Lio/sentry/Session;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Lio/sentry/SentryEnvelopeItem$CachedItem;-><init>(Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
.line 86
|
||
|
new-instance p0, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
sget-object p1, Lio/sentry/SentryItemType;->Session:Lio/sentry/SentryItemType;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda1;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda1;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
const-string v2, "application/json"
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
invoke-direct {p0, p1, v1, v2, v3}, Lio/sentry/SentryEnvelopeItemHeader;-><init>(Lio/sentry/SentryItemType;Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 92
|
||
|
new-instance p1, Lio/sentry/SentryEnvelopeItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda2;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda2;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
invoke-direct {p1, p0, v1}, Lio/sentry/SentryEnvelopeItem;-><init>(Lio/sentry/SentryEnvelopeItemHeader;Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromUserFeedback(Lio/sentry/ISerializer;Lio/sentry/UserFeedback;)Lio/sentry/SentryEnvelopeItem;
|
||
|
.locals 4
|
||
|
|
||
|
const-string v0, "ISerializer is required."
|
||
|
|
||
|
.line 146
|
||
|
invoke-static {p0, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
const-string v0, "UserFeedback is required."
|
||
|
|
||
|
.line 147
|
||
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
.line 149
|
||
|
new-instance v0, Lio/sentry/SentryEnvelopeItem$CachedItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda20;
|
||
|
|
||
|
invoke-direct {v1, p0, p1}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda20;-><init>(Lio/sentry/ISerializer;Lio/sentry/UserFeedback;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Lio/sentry/SentryEnvelopeItem$CachedItem;-><init>(Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
.line 159
|
||
|
new-instance p0, Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
sget-object p1, Lio/sentry/SentryItemType;->UserFeedback:Lio/sentry/SentryItemType;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda21;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda21;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
const-string v2, "application/json"
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
invoke-direct {p0, p1, v1, v2, v3}, Lio/sentry/SentryEnvelopeItemHeader;-><init>(Lio/sentry/SentryItemType;Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 168
|
||
|
new-instance p1, Lio/sentry/SentryEnvelopeItem;
|
||
|
|
||
|
new-instance v1, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda22;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lio/sentry/SentryEnvelopeItem$$ExternalSyntheticLambda22;-><init>(Lio/sentry/SentryEnvelopeItem$CachedItem;)V
|
||
|
|
||
|
invoke-direct {p1, p0, v1}, Lio/sentry/SentryEnvelopeItem;-><init>(Lio/sentry/SentryEnvelopeItemHeader;Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromAttachment$15(Lio/sentry/Attachment;JLio/sentry/ISerializer;Lio/sentry/ILogger;)[B
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 226
|
||
|
invoke-virtual {p0}, Lio/sentry/Attachment;->getBytes()[B
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 227
|
||
|
invoke-virtual {p0}, Lio/sentry/Attachment;->getBytes()[B
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
.line 228
|
||
|
array-length p4, p3
|
||
|
|
||
|
int-to-long v0, p4
|
||
|
|
||
|
invoke-virtual {p0}, Lio/sentry/Attachment;->getFilename()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {v0, v1, p1, p2, p0}, Lio/sentry/SentryEnvelopeItem;->ensureAttachmentSizeLimit(JJLjava/lang/String;)V
|
||
|
|
||
|
return-object p3
|
||
|
|
||
|
.line 230
|
||
|
:cond_0
|
||
|
invoke-virtual {p0}, Lio/sentry/Attachment;->getSerializable()Lio/sentry/JsonSerializable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 231
|
||
|
invoke-virtual {p0}, Lio/sentry/Attachment;->getSerializable()Lio/sentry/JsonSerializable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 233
|
||
|
invoke-static {p3, p4, v0}, Lio/sentry/util/JsonSerializationUtils;->bytesFrom(Lio/sentry/ISerializer;Lio/sentry/ILogger;Lio/sentry/JsonSerializable;)[B
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
if-eqz p3, :cond_2
|
||
|
|
||
|
.line 236
|
||
|
array-length p4, p3
|
||
|
|
||
|
int-to-long v0, p4
|
||
|
|
||
|
.line 237
|
||
|
invoke-virtual {p0}, Lio/sentry/Attachment;->getFilename()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
.line 236
|
||
|
invoke-static {v0, v1, p1, p2, p0}, Lio/sentry/SentryEnvelopeItem;->ensureAttachmentSizeLimit(JJLjava/lang/String;)V
|
||
|
|
||
|
return-object p3
|
||
|
|
||
|
.line 240
|
||
|
:cond_1
|
||
|
invoke-virtual {p0}, Lio/sentry/Attachment;->getPathname()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
if-eqz p3, :cond_2
|
||
|
|
||
|
.line 241
|
||
|
invoke-virtual {p0}, Lio/sentry/Attachment;->getPathname()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0, p1, p2}, Lio/sentry/util/FileUtils;->readBytesFromFile(Ljava/lang/String;J)[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 243
|
||
|
:cond_2
|
||
|
new-instance p1, Lio/sentry/exception/SentryEnvelopeException;
|
||
|
|
||
|
.line 247
|
||
|
invoke-virtual {p0}, Lio/sentry/Attachment;->getFilename()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
filled-new-array {p0}, [Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-string p2, "Couldn\'t attach the attachment %s.\nPlease check that either bytes, serializable or a path is set."
|
||
|
|
||
|
.line 244
|
||
|
invoke-static {p2, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Lio/sentry/exception/SentryEnvelopeException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromAttachment$16(Lio/sentry/SentryEnvelopeItem$CachedItem;)Ljava/lang/Integer;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 253
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
array-length p0, p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromAttachment$17(Lio/sentry/SentryEnvelopeItem$CachedItem;)[B
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 260
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromCheckIn$10(Lio/sentry/SentryEnvelopeItem$CachedItem;)Ljava/lang/Integer;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 188
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
array-length p0, p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromCheckIn$11(Lio/sentry/SentryEnvelopeItem$CachedItem;)[B
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 192
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromCheckIn$9(Lio/sentry/ISerializer;Lio/sentry/CheckIn;)[B
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 179
|
||
|
new-instance v0, Ljava/io/ByteArrayOutputStream;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
||
|
|
||
|
.line 180
|
||
|
:try_start_0
|
||
|
new-instance v1, Ljava/io/BufferedWriter;
|
||
|
|
||
|
new-instance v2, Ljava/io/OutputStreamWriter;
|
||
|
|
||
|
sget-object v3, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
invoke-direct {v2, v0, v3}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
invoke-direct {v1, v2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
||
|
|
||
|
.line 181
|
||
|
:try_start_1
|
||
|
invoke-interface {p0, p1, v1}, Lio/sentry/ISerializer;->serialize(Ljava/lang/Object;Ljava/io/Writer;)V
|
||
|
|
||
|
.line 182
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
.line 183
|
||
|
:try_start_2
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 179
|
||
|
:try_start_3
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
:try_start_4
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||
|
|
||
|
:catchall_2
|
||
|
move-exception p0
|
||
|
|
||
|
:try_start_5
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_3
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromClientReport$21(Lio/sentry/ISerializer;Lio/sentry/clientreport/ClientReport;)[B
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 338
|
||
|
new-instance v0, Ljava/io/ByteArrayOutputStream;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
||
|
|
||
|
.line 339
|
||
|
:try_start_0
|
||
|
new-instance v1, Ljava/io/BufferedWriter;
|
||
|
|
||
|
new-instance v2, Ljava/io/OutputStreamWriter;
|
||
|
|
||
|
sget-object v3, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
invoke-direct {v2, v0, v3}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
invoke-direct {v1, v2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
||
|
|
||
|
.line 340
|
||
|
:try_start_1
|
||
|
invoke-interface {p0, p1, v1}, Lio/sentry/ISerializer;->serialize(Ljava/lang/Object;Ljava/io/Writer;)V
|
||
|
|
||
|
.line 341
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
.line 342
|
||
|
:try_start_2
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 338
|
||
|
:try_start_3
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
:try_start_4
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||
|
|
||
|
:catchall_2
|
||
|
move-exception p0
|
||
|
|
||
|
:try_start_5
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_3
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromClientReport$22(Lio/sentry/SentryEnvelopeItem$CachedItem;)Ljava/lang/Integer;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 348
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
array-length p0, p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromClientReport$23(Lio/sentry/SentryEnvelopeItem$CachedItem;)[B
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 354
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromEvent$3(Lio/sentry/ISerializer;Lio/sentry/SentryBaseEvent;)[B
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 114
|
||
|
new-instance v0, Ljava/io/ByteArrayOutputStream;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
||
|
|
||
|
.line 115
|
||
|
:try_start_0
|
||
|
new-instance v1, Ljava/io/BufferedWriter;
|
||
|
|
||
|
new-instance v2, Ljava/io/OutputStreamWriter;
|
||
|
|
||
|
sget-object v3, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
invoke-direct {v2, v0, v3}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
invoke-direct {v1, v2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
||
|
|
||
|
.line 116
|
||
|
:try_start_1
|
||
|
invoke-interface {p0, p1, v1}, Lio/sentry/ISerializer;->serialize(Ljava/lang/Object;Ljava/io/Writer;)V
|
||
|
|
||
|
.line 117
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
.line 118
|
||
|
:try_start_2
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 114
|
||
|
:try_start_3
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
:try_start_4
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||
|
|
||
|
:catchall_2
|
||
|
move-exception p0
|
||
|
|
||
|
:try_start_5
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_3
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromEvent$4(Lio/sentry/SentryEnvelopeItem$CachedItem;)Ljava/lang/Integer;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 124
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
array-length p0, p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromEvent$5(Lio/sentry/SentryEnvelopeItem$CachedItem;)[B
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 130
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromMetrics$12(Lio/sentry/metrics/EncodedMetrics;)[B
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 202
|
||
|
invoke-virtual {p0}, Lio/sentry/metrics/EncodedMetrics;->encodeToStatsd()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromMetrics$13(Lio/sentry/SentryEnvelopeItem$CachedItem;)Ljava/lang/Integer;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 208
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
array-length p0, p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromMetrics$14(Lio/sentry/SentryEnvelopeItem$CachedItem;)[B
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 214
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromProfilingTrace$18(Ljava/io/File;JLio/sentry/ProfilingTraceData;Lio/sentry/ISerializer;)[B
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 288
|
||
|
invoke-virtual {p0}, Ljava/io/File;->exists()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 296
|
||
|
invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0, p1, p2}, Lio/sentry/util/FileUtils;->readBytesFromFile(Ljava/lang/String;J)[B
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const/4 p2, 0x3
|
||
|
|
||
|
.line 297
|
||
|
invoke-static {p1, p2}, Lio/sentry/vendor/Base64;->encodeToString([BI)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
.line 298
|
||
|
invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
if-nez p2, :cond_0
|
||
|
|
||
|
.line 301
|
||
|
invoke-virtual {p3, p1}, Lio/sentry/ProfilingTraceData;->setSampledProfile(Ljava/lang/String;)V
|
||
|
|
||
|
.line 302
|
||
|
invoke-virtual {p3}, Lio/sentry/ProfilingTraceData;->readDeviceCpuFrequencies()V
|
||
|
|
||
|
.line 304
|
||
|
:try_start_0
|
||
|
new-instance p1, Ljava/io/ByteArrayOutputStream;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
||
|
:try_end_0
|
||
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_4
|
||
|
|
||
|
.line 305
|
||
|
:try_start_1
|
||
|
new-instance p2, Ljava/io/BufferedWriter;
|
||
|
|
||
|
new-instance v0, Ljava/io/OutputStreamWriter;
|
||
|
|
||
|
sget-object v1, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
invoke-direct {v0, p1, v1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
invoke-direct {p2, v0}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_2
|
||
|
|
||
|
.line 306
|
||
|
:try_start_2
|
||
|
invoke-interface {p4, p3, p2}, Lio/sentry/ISerializer;->serialize(Ljava/lang/Object;Ljava/io/Writer;)V
|
||
|
|
||
|
.line 307
|
||
|
invoke-virtual {p1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
||
|
|
||
|
move-result-object p3
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
.line 308
|
||
|
:try_start_3
|
||
|
invoke-virtual {p2}, Ljava/io/Writer;->close()V
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
||
|
|
||
|
:try_start_4
|
||
|
invoke-virtual {p1}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
:try_end_4
|
||
|
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_4
|
||
|
|
||
|
.line 313
|
||
|
invoke-virtual {p0}, Ljava/io/File;->delete()Z
|
||
|
|
||
|
return-object p3
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p3
|
||
|
|
||
|
.line 304
|
||
|
:try_start_5
|
||
|
invoke-virtual {p2}, Ljava/io/Writer;->close()V
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p2
|
||
|
|
||
|
:try_start_6
|
||
|
invoke-virtual {p3, p2}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
throw p3
|
||
|
:try_end_6
|
||
|
.catchall {:try_start_6 .. :try_end_6} :catchall_2
|
||
|
|
||
|
:catchall_2
|
||
|
move-exception p2
|
||
|
|
||
|
:try_start_7
|
||
|
invoke-virtual {p1}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
:try_end_7
|
||
|
.catchall {:try_start_7 .. :try_end_7} :catchall_3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_3
|
||
|
move-exception p1
|
||
|
|
||
|
:try_start_8
|
||
|
invoke-virtual {p2, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_1
|
||
|
throw p2
|
||
|
:try_end_8
|
||
|
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_0
|
||
|
.catchall {:try_start_8 .. :try_end_8} :catchall_4
|
||
|
|
||
|
:catchall_4
|
||
|
move-exception p1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:catch_0
|
||
|
move-exception p1
|
||
|
|
||
|
.line 309
|
||
|
:try_start_9
|
||
|
new-instance p2, Lio/sentry/exception/SentryEnvelopeException;
|
||
|
|
||
|
const-string p3, "Failed to serialize profiling trace data\n%s"
|
||
|
|
||
|
const/4 p4, 0x1
|
||
|
|
||
|
new-array p4, p4, [Ljava/lang/Object;
|
||
|
|
||
|
.line 310
|
||
|
invoke-virtual {p1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
aput-object p1, p4, v0
|
||
|
|
||
|
invoke-static {p3, p4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p2, p1}, Lio/sentry/exception/SentryEnvelopeException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p2
|
||
|
:try_end_9
|
||
|
.catchall {:try_start_9 .. :try_end_9} :catchall_4
|
||
|
|
||
|
.line 313
|
||
|
:goto_2
|
||
|
invoke-virtual {p0}, Ljava/io/File;->delete()Z
|
||
|
|
||
|
.line 314
|
||
|
throw p1
|
||
|
|
||
|
.line 299
|
||
|
:cond_0
|
||
|
new-instance p0, Lio/sentry/exception/SentryEnvelopeException;
|
||
|
|
||
|
const-string p1, "Profiling trace file is empty"
|
||
|
|
||
|
invoke-direct {p0, p1}, Lio/sentry/exception/SentryEnvelopeException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
|
||
|
.line 289
|
||
|
:cond_1
|
||
|
new-instance p1, Lio/sentry/exception/SentryEnvelopeException;
|
||
|
|
||
|
.line 292
|
||
|
invoke-virtual {p0}, Ljava/io/File;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
filled-new-array {p0}, [Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-string p2, "Dropping profiling trace data, because the file \'%s\' doesn\'t exists"
|
||
|
|
||
|
.line 290
|
||
|
invoke-static {p2, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Lio/sentry/exception/SentryEnvelopeException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromProfilingTrace$19(Lio/sentry/SentryEnvelopeItem$CachedItem;)Ljava/lang/Integer;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 320
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
array-length p0, p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromProfilingTrace$20(Lio/sentry/SentryEnvelopeItem$CachedItem;)[B
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 326
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromSession$0(Lio/sentry/ISerializer;Lio/sentry/Session;)[B
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 79
|
||
|
new-instance v0, Ljava/io/ByteArrayOutputStream;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
||
|
|
||
|
.line 80
|
||
|
:try_start_0
|
||
|
new-instance v1, Ljava/io/BufferedWriter;
|
||
|
|
||
|
new-instance v2, Ljava/io/OutputStreamWriter;
|
||
|
|
||
|
sget-object v3, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
invoke-direct {v2, v0, v3}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
invoke-direct {v1, v2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
||
|
|
||
|
.line 81
|
||
|
:try_start_1
|
||
|
invoke-interface {p0, p1, v1}, Lio/sentry/ISerializer;->serialize(Ljava/lang/Object;Ljava/io/Writer;)V
|
||
|
|
||
|
.line 82
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
.line 83
|
||
|
:try_start_2
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 79
|
||
|
:try_start_3
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
:try_start_4
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||
|
|
||
|
:catchall_2
|
||
|
move-exception p0
|
||
|
|
||
|
:try_start_5
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_3
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromSession$1(Lio/sentry/SentryEnvelopeItem$CachedItem;)Ljava/lang/Integer;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 88
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
array-length p0, p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromSession$2(Lio/sentry/SentryEnvelopeItem$CachedItem;)[B
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 92
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromUserFeedback$6(Lio/sentry/ISerializer;Lio/sentry/UserFeedback;)[B
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 152
|
||
|
new-instance v0, Ljava/io/ByteArrayOutputStream;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
||
|
|
||
|
.line 153
|
||
|
:try_start_0
|
||
|
new-instance v1, Ljava/io/BufferedWriter;
|
||
|
|
||
|
new-instance v2, Ljava/io/OutputStreamWriter;
|
||
|
|
||
|
sget-object v3, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
invoke-direct {v2, v0, v3}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
invoke-direct {v1, v2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
||
|
|
||
|
.line 154
|
||
|
:try_start_1
|
||
|
invoke-interface {p0, p1, v1}, Lio/sentry/ISerializer;->serialize(Ljava/lang/Object;Ljava/io/Writer;)V
|
||
|
|
||
|
.line 155
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
.line 156
|
||
|
:try_start_2
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 152
|
||
|
:try_start_3
|
||
|
invoke-virtual {v1}, Ljava/io/Writer;->close()V
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
:try_start_4
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||
|
|
||
|
:catchall_2
|
||
|
move-exception p0
|
||
|
|
||
|
:try_start_5
|
||
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_3
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromUserFeedback$7(Lio/sentry/SentryEnvelopeItem$CachedItem;)Ljava/lang/Integer;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 162
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
array-length p0, p0
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromUserFeedback$8(Lio/sentry/SentryEnvelopeItem$CachedItem;)[B
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 168
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem$CachedItem;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public getClientReport(Lio/sentry/ISerializer;)Lio/sentry/clientreport/ClientReport;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lio/sentry/SentryEnvelopeItem;->header:Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 359
|
||
|
invoke-virtual {v0}, Lio/sentry/SentryEnvelopeItemHeader;->getType()Lio/sentry/SentryItemType;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sget-object v1, Lio/sentry/SentryItemType;->ClientReport:Lio/sentry/SentryItemType;
|
||
|
|
||
|
if-eq v0, v1, :cond_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 362
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/io/BufferedReader;
|
||
|
|
||
|
new-instance v1, Ljava/io/InputStreamReader;
|
||
|
|
||
|
new-instance v2, Ljava/io/ByteArrayInputStream;
|
||
|
|
||
|
.line 363
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem;->getData()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v2, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
|
||
|
|
||
|
sget-object p0, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
invoke-direct {v1, v2, p0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
|
||
|
|
||
|
.line 364
|
||
|
:try_start_0
|
||
|
const-class p0, Lio/sentry/clientreport/ClientReport;
|
||
|
|
||
|
invoke-interface {p1, v0, p0}, Lio/sentry/ISerializer;->deserialize(Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Lio/sentry/clientreport/ClientReport;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 365
|
||
|
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 362
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public getData()[B
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lio/sentry/SentryEnvelopeItem;->data:[B
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Lio/sentry/SentryEnvelopeItem;->dataFactory:Ljava/util/concurrent/Callable;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 62
|
||
|
invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, [B
|
||
|
|
||
|
iput-object v0, p0, Lio/sentry/SentryEnvelopeItem;->data:[B
|
||
|
|
||
|
:cond_0
|
||
|
iget-object p0, p0, Lio/sentry/SentryEnvelopeItem;->data:[B
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public getEvent(Lio/sentry/ISerializer;)Lio/sentry/SentryEvent;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lio/sentry/SentryEnvelopeItem;->header:Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 96
|
||
|
invoke-virtual {v0}, Lio/sentry/SentryEnvelopeItemHeader;->getType()Lio/sentry/SentryItemType;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sget-object v1, Lio/sentry/SentryItemType;->Event:Lio/sentry/SentryItemType;
|
||
|
|
||
|
if-eq v0, v1, :cond_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 99
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/io/BufferedReader;
|
||
|
|
||
|
new-instance v1, Ljava/io/InputStreamReader;
|
||
|
|
||
|
new-instance v2, Ljava/io/ByteArrayInputStream;
|
||
|
|
||
|
.line 100
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem;->getData()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v2, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
|
||
|
|
||
|
sget-object p0, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
invoke-direct {v1, v2, p0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
|
||
|
|
||
|
.line 101
|
||
|
:try_start_0
|
||
|
const-class p0, Lio/sentry/SentryEvent;
|
||
|
|
||
|
invoke-interface {p1, v0, p0}, Lio/sentry/ISerializer;->deserialize(Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Lio/sentry/SentryEvent;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 102
|
||
|
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 99
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public getHeader()Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lio/sentry/SentryEnvelopeItem;->header:Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public getTransaction(Lio/sentry/ISerializer;)Lio/sentry/protocol/SentryTransaction;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lio/sentry/SentryEnvelopeItem;->header:Lio/sentry/SentryEnvelopeItemHeader;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 135
|
||
|
invoke-virtual {v0}, Lio/sentry/SentryEnvelopeItemHeader;->getType()Lio/sentry/SentryItemType;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sget-object v1, Lio/sentry/SentryItemType;->Transaction:Lio/sentry/SentryItemType;
|
||
|
|
||
|
if-eq v0, v1, :cond_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 138
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/io/BufferedReader;
|
||
|
|
||
|
new-instance v1, Ljava/io/InputStreamReader;
|
||
|
|
||
|
new-instance v2, Ljava/io/ByteArrayInputStream;
|
||
|
|
||
|
.line 139
|
||
|
invoke-virtual {p0}, Lio/sentry/SentryEnvelopeItem;->getData()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v2, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
|
||
|
|
||
|
sget-object p0, Lio/sentry/SentryEnvelopeItem;->UTF_8:Ljava/nio/charset/Charset;
|
||
|
|
||
|
invoke-direct {v1, v2, p0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
|
||
|
|
||
|
.line 140
|
||
|
:try_start_0
|
||
|
const-class p0, Lio/sentry/protocol/SentryTransaction;
|
||
|
|
||
|
invoke-interface {p1, v0, p0}, Lio/sentry/ISerializer;->deserialize(Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Lio/sentry/protocol/SentryTransaction;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 141
|
||
|
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 138
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|