2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/utilities/rest/RestAPI$Companion$buildAnalyticsInterceptor$$inlined$invoke$1;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Interceptor.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lokhttp3/Interceptor;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/utilities/rest/RestAPI$Companion;->buildAnalyticsInterceptor()Lokhttp3/Interceptor;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
|
2020-09-16 21:45:36 +00:00
|
|
|
.locals 9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/4 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-eqz p1, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-interface {p1}, Lokhttp3/Interceptor$Chain;->p()Lo0/a0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-eqz v1, :cond_3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v2, Ljava/util/LinkedHashMap;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct {v2}, Ljava/util/LinkedHashMap;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
iget-object v4, v1, Lo0/a0;->b:Lo0/w;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
iget-object v5, v1, Lo0/a0;->c:Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
iget-object v7, v1, Lo0/a0;->e:Lokhttp3/RequestBody;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
iget-object v2, v1, Lo0/a0;->f:Ljava/util/Map;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Map;->isEmpty()Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-eqz v2, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v2, Ljava/util/LinkedHashMap;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct {v2}, Ljava/util/LinkedHashMap;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-16 21:45:36 +00:00
|
|
|
iget-object v2, v1, Lo0/a0;->f:Ljava/util/Map;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v2}, Lf/n/a/k/a;->toMutableMap(Ljava/util/Map;)Ljava/util/Map;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-16 21:45:36 +00:00
|
|
|
iget-object v1, v1, Lo0/a0;->d:Lokhttp3/Headers;
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v1}, Lokhttp3/Headers;->j()Lokhttp3/Headers$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
sget-object v3, Lcom/discord/utilities/analytics/AnalyticSuperProperties;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticSuperProperties;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v3}, Lcom/discord/utilities/analytics/AnalyticSuperProperties;->getSuperPropertiesStringBase64()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-eqz v3, :cond_2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v0, "X-Super-Properties"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v1, v0, v3}, Lokhttp3/Headers$a;->a(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-eqz v4, :cond_1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v1}, Lokhttp3/Headers$a;->c()Lokhttp3/Headers;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v6
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v2}, Lo0/g0/b;->F(Ljava/util/Map;)Ljava/util/Map;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v8
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v0, Lo0/a0;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-object v3, v0
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct/range {v3 .. v8}, Lo0/a0;-><init>(Lo0/w;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/RequestBody;Ljava/util/Map;)V
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-interface {p1, v0}, Lokhttp3/Interceptor$Chain;->d(Lo0/a0;)Lokhttp3/Response;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_1
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v0, "url == null"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw p1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string p1, "value"
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "chain"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|