apkfuckery/com.discord/smali/f/c/a/p1.smali
2020-09-09 19:21:20 +00:00

230 lines
5.2 KiB
Smali

.class public Lf/c/a/p1;
.super Ljava/lang/Object;
.source "RequestHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic d:Lf/c/a/u;
.field public final synthetic e:I
.field public final synthetic f:Lf/c/a/q1;
# direct methods
.method public constructor <init>(Lf/c/a/q1;Lf/c/a/u;I)V
.locals 0
iput-object p1, p0, Lf/c/a/p1;->f:Lf/c/a/q1;
iput-object p2, p0, Lf/c/a/p1;->d:Lf/c/a/u;
iput p3, p0, Lf/c/a/p1;->e:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 7
iget-object v0, p0, Lf/c/a/p1;->f:Lf/c/a/q1;
iget-object v1, p0, Lf/c/a/p1;->d:Lf/c/a/u;
iget v2, p0, Lf/c/a/p1;->e:I
if-eqz v0, :cond_7
iget-object v3, v1, Lf/c/a/u;->activityKind:Lf/c/a/t;
sget-object v4, Lf/c/a/t;->l:Lf/c/a/t;
if-ne v3, v4, :cond_0
const-string v3, "https://gdpr.adjust.com"
iget-object v4, v0, Lf/c/a/q1;->f:Ljava/lang/String;
if-eqz v4, :cond_2
invoke-static {v3}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-object v4, v0, Lf/c/a/q1;->f:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
goto :goto_0
:cond_0
sget-object v4, Lf/c/a/t;->o:Lf/c/a/t;
if-ne v3, v4, :cond_1
const-string v3, "https://subscription.adjust.com"
iget-object v4, v0, Lf/c/a/q1;->g:Ljava/lang/String;
if-eqz v4, :cond_2
invoke-static {v3}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-object v4, v0, Lf/c/a/q1;->g:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
goto :goto_0
:cond_1
const-string v3, "https://app.adjust.com"
iget-object v4, v0, Lf/c/a/q1;->e:Ljava/lang/String;
if-eqz v4, :cond_2
invoke-static {v3}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-object v4, v0, Lf/c/a/q1;->e:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
:cond_2
:goto_0
invoke-static {v3}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-object v4, v1, Lf/c/a/u;->path:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
:try_start_0
invoke-static {v3, v1, v2}, Le0/a/b/b/a;->p(Ljava/lang/String;Lf/c/a/u;I)Lf/c/a/r1;
move-result-object v2
iget-object v3, v0, Lf/c/a/q1;->b:Ljava/lang/ref/WeakReference;
invoke-virtual {v3}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lf/c/a/x0;
if-nez v3, :cond_3
goto :goto_1
:cond_3
iget-object v4, v0, Lf/c/a/q1;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v4}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lf/c/a/u0;
if-nez v4, :cond_4
goto :goto_1
:cond_4
iget-object v5, v2, Lf/c/a/r1;->g:Lf/c/a/a2;
sget-object v6, Lf/c/a/a2;->d:Lf/c/a/a2;
if-ne v5, v6, :cond_5
invoke-interface {v4}, Lf/c/a/u0;->n()V
goto :goto_1
:cond_5
iget-object v4, v2, Lf/c/a/r1;->f:Lorg/json/JSONObject;
if-nez v4, :cond_6
invoke-interface {v3, v2, v1}, Lf/c/a/x0;->i(Lf/c/a/r1;Lf/c/a/u;)V
goto :goto_1
:cond_6
invoke-interface {v3, v2}, Lf/c/a/x0;->f(Lf/c/a/r1;)V
:try_end_0
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_1
:catchall_0
move-exception v2
const-string v3, "Runtime exception"
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/q1;->b(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_1
:catch_0
move-exception v2
const-string v3, "Request failed"
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/q1;->a(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_1
:catch_1
move-exception v2
const-string v3, "Request timed out"
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/q1;->a(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_1
:catch_2
move-exception v2
const-string v3, "Failed to encode parameters"
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/q1;->b(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_1
return-void
:cond_7
const/4 v0, 0x0
throw v0
.end method