301 lines
6.5 KiB
Smali
301 lines
6.5 KiB
Smali
.class public Le/c/a/s1;
|
|
.super Ljava/lang/Object;
|
|
.source "SdkClickHandler.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic d:Le/c/a/s;
|
|
|
|
.field public final synthetic e:Le/c/a/p1;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Le/c/a/p1;Le/c/a/s;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Le/c/a/s1;->e:Le/c/a/p1;
|
|
|
|
iput-object p2, p0, Le/c/a/s1;->d:Le/c/a/s;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 15
|
|
|
|
iget-object v0, p0, Le/c/a/s1;->e:Le/c/a/p1;
|
|
|
|
iget-object v1, p0, Le/c/a/s1;->d:Le/c/a/s;
|
|
|
|
iget-object v2, v0, Le/c/a/p1;->f:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Le/c/a/s0;
|
|
|
|
invoke-virtual {v1}, Le/c/a/s;->i()Ljava/util/Map;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "source"
|
|
|
|
invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/String;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
const-string v6, "reftag"
|
|
|
|
invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v6, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {v1}, Le/c/a/s;->i()Ljava/util/Map;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "raw_referrer"
|
|
|
|
invoke-interface {v7, v8}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Ljava/lang/String;
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
new-instance v8, Le/c/a/w1;
|
|
|
|
move-object v9, v2
|
|
|
|
check-cast v9, Le/c/a/g;
|
|
|
|
iget-object v9, v9, Le/c/a/g;->j:Le/c/a/v;
|
|
|
|
iget-object v9, v9, Le/c/a/v;->a:Landroid/content/Context;
|
|
|
|
invoke-direct {v8, v9}, Le/c/a/w1;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {v1}, Le/c/a/s;->c()J
|
|
|
|
move-result-wide v9
|
|
|
|
invoke-virtual {v8, v7, v9, v10}, Le/c/a/w1;->a(Ljava/lang/String;J)Lorg/json/JSONArray;
|
|
|
|
move-result-object v8
|
|
|
|
if-nez v8, :cond_1
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_1
|
|
if-eqz v3, :cond_2
|
|
|
|
const-string v8, "install_referrer"
|
|
|
|
invoke-virtual {v3, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
:cond_2
|
|
const/4 v3, 0x0
|
|
|
|
const-wide/16 v8, -0x1
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
invoke-virtual {v1}, Le/c/a/s;->d()J
|
|
|
|
move-result-wide v8
|
|
|
|
invoke-virtual {v1}, Le/c/a/s;->h()J
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-virtual {v1}, Le/c/a/s;->i()Ljava/util/Map;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v12, "referrer"
|
|
|
|
invoke-interface {v3, v12}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/String;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-wide v10, v8
|
|
|
|
:goto_1
|
|
const-string v12, "https://app.adjust.com"
|
|
|
|
invoke-static {v12}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v1}, Le/c/a/s;->k()Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
:try_start_0
|
|
iget-object v13, v0, Le/c/a/p1;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v13}, Ljava/util/List;->size()I
|
|
|
|
move-result v13
|
|
|
|
sub-int/2addr v13, v5
|
|
|
|
invoke-static {v12, v1, v13}, Lp/a/b/b/g/e;->a(Ljava/lang/String;Le/c/a/s;I)Le/c/a/o1;
|
|
|
|
move-result-object v12
|
|
|
|
check-cast v12, Le/c/a/t1;
|
|
|
|
iget-object v13, v12, Le/c/a/o1;->f:Lorg/json/JSONObject;
|
|
|
|
if-nez v13, :cond_4
|
|
|
|
invoke-virtual {v0, v1}, Le/c/a/p1;->a(Le/c/a/s;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
if-nez v2, :cond_5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
if-eqz v6, :cond_6
|
|
|
|
new-instance v6, Le/c/a/w1;
|
|
|
|
move-object v13, v2
|
|
|
|
check-cast v13, Le/c/a/g;
|
|
|
|
iget-object v13, v13, Le/c/a/g;->j:Le/c/a/v;
|
|
|
|
iget-object v13, v13, Le/c/a/v;->a:Landroid/content/Context;
|
|
|
|
invoke-direct {v6, v13}, Le/c/a/w1;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {v1}, Le/c/a/s;->c()J
|
|
|
|
move-result-wide v13
|
|
|
|
invoke-virtual {v6, v7, v13, v14}, Le/c/a/w1;->c(Ljava/lang/String;J)V
|
|
|
|
:cond_6
|
|
if-eqz v4, :cond_7
|
|
|
|
iput-wide v8, v12, Le/c/a/t1;->i:J
|
|
|
|
iput-wide v10, v12, Le/c/a/t1;->j:J
|
|
|
|
iput-object v3, v12, Le/c/a/t1;->k:Ljava/lang/String;
|
|
|
|
iput-boolean v5, v12, Le/c/a/t1;->h:Z
|
|
: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
|
|
|
|
:cond_7
|
|
check-cast v2, Le/c/a/g;
|
|
|
|
:try_start_1
|
|
invoke-virtual {v2, v12}, Le/c/a/g;->a(Le/c/a/o1;)V
|
|
:try_end_1
|
|
.catch Ljava/io/UnsupportedEncodingException; {:try_start_1 .. :try_end_1} :catch_2
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_0
|
|
move-exception v2
|
|
|
|
const-string v3, "Sdk_click runtime exception"
|
|
|
|
invoke-virtual {v0, v1, v3, v2}, Le/c/a/p1;->a(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception v2
|
|
|
|
const-string v3, "Sdk_click request failed. Will retry later"
|
|
|
|
invoke-virtual {v0, v1, v3, v2}, Le/c/a/p1;->a(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
invoke-virtual {v0, v1}, Le/c/a/p1;->a(Le/c/a/s;)V
|
|
|
|
goto :goto_2
|
|
|
|
:catch_1
|
|
move-exception v2
|
|
|
|
const-string v3, "Sdk_click request timed out. Will retry later"
|
|
|
|
invoke-virtual {v0, v1, v3, v2}, Le/c/a/p1;->a(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
invoke-virtual {v0, v1}, Le/c/a/p1;->a(Le/c/a/s;)V
|
|
|
|
goto :goto_2
|
|
|
|
:catch_2
|
|
move-exception v2
|
|
|
|
const-string v3, "Sdk_click failed to encode parameters"
|
|
|
|
invoke-virtual {v0, v1, v3, v2}, Le/c/a/p1;->a(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:goto_2
|
|
iget-object v0, p0, Le/c/a/s1;->e:Le/c/a/p1;
|
|
|
|
invoke-static {v0}, Le/c/a/p1;->a(Le/c/a/p1;)V
|
|
|
|
return-void
|
|
.end method
|