Rabbit-R1/android (non root)/smali/smali_classes3/io/sentry/AsyncHttpTransportFactory.smali
2024-05-21 17:08:36 -04:00

49 lines
1.5 KiB
Smali

.class public final Lio/sentry/AsyncHttpTransportFactory;
.super Ljava/lang/Object;
.source "AsyncHttpTransportFactory.java"
# interfaces
.implements Lio/sentry/ITransportFactory;
# direct methods
.method public constructor <init>()V
.locals 0
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public create(Lio/sentry/SentryOptions;Lio/sentry/RequestDetails;)Lio/sentry/transport/ITransport;
.locals 2
const-string p0, "options is required"
.line 17
invoke-static {p1, p0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string p0, "requestDetails is required"
.line 18
invoke-static {p2, p0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 20
new-instance p0, Lio/sentry/transport/AsyncHttpTransport;
new-instance v0, Lio/sentry/transport/RateLimiter;
invoke-direct {v0, p1}, Lio/sentry/transport/RateLimiter;-><init>(Lio/sentry/SentryOptions;)V
.line 21
invoke-virtual {p1}, Lio/sentry/SentryOptions;->getTransportGate()Lio/sentry/transport/ITransportGate;
move-result-object v1
invoke-direct {p0, p1, v0, v1, p2}, Lio/sentry/transport/AsyncHttpTransport;-><init>(Lio/sentry/SentryOptions;Lio/sentry/transport/RateLimiter;Lio/sentry/transport/ITransportGate;Lio/sentry/RequestDetails;)V
return-object p0
.end method