.class public Lf/c/a/n1; .super Ljava/lang/Object; .source "SdkClickHandler.java" # interfaces .implements Ljava/lang/Runnable; # instance fields .field public final synthetic d:Lf/c/a/p; .field public final synthetic e:Lf/c/a/k1; # direct methods .method public constructor (Lf/c/a/k1;Lf/c/a/p;)V .locals 0 iput-object p1, p0, Lf/c/a/n1;->e:Lf/c/a/k1; iput-object p2, p0, Lf/c/a/n1;->d:Lf/c/a/p; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public run()V .locals 15 iget-object v0, p0, Lf/c/a/n1;->e:Lf/c/a/k1; iget-object v1, p0, Lf/c/a/n1;->d:Lf/c/a/p; iget-object v2, v0, Lf/c/a/k1;->f:Ljava/lang/ref/WeakReference; invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object; move-result-object v2 check-cast v2, Lf/c/a/o0; iget-object v3, v1, Lf/c/a/p;->parameters:Ljava/util/Map; 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 iget-object v7, v1, Lf/c/a/p;->parameters:Ljava/util/Map; 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, Lf/c/a/r1; invoke-interface {v2}, Lf/c/a/o0;->getContext()Landroid/content/Context; move-result-object v9 invoke-direct {v8, v9}, Lf/c/a/r1;->(Landroid/content/Context;)V iget-wide v9, v1, Lf/c/a/p;->clickTimeInMilliseconds:J invoke-virtual {v8, v7, v9, v10}, Lf/c/a/r1;->b(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 iget-wide v8, v1, Lf/c/a/p;->clickTimeInSeconds:J iget-wide v10, v1, Lf/c/a/p;->installBeginTimeInSeconds:J iget-object v3, v1, Lf/c/a/p;->parameters:Ljava/util/Map; 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}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v12 iget-object v13, v1, Lf/c/a/p;->path:Ljava/lang/String; 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, Lf/c/a/k1;->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}, Ld0/a/b/b/a;->u(Ljava/lang/String;Lf/c/a/p;I)Lf/c/a/j1; move-result-object v12 check-cast v12, Lf/c/a/o1; iget-object v13, v12, Lf/c/a/j1;->f:Lorg/json/JSONObject; if-nez v13, :cond_4 invoke-virtual {v0, v1}, Lf/c/a/k1;->b(Lf/c/a/p;)V goto :goto_2 :cond_4 if-nez v2, :cond_5 goto :goto_2 :cond_5 if-eqz v6, :cond_6 new-instance v6, Lf/c/a/r1; invoke-interface {v2}, Lf/c/a/o0;->getContext()Landroid/content/Context; move-result-object v13 invoke-direct {v6, v13}, Lf/c/a/r1;->(Landroid/content/Context;)V iget-wide v13, v1, Lf/c/a/p;->clickTimeInMilliseconds:J invoke-virtual {v6, v7, v13, v14}, Lf/c/a/r1;->g(Ljava/lang/String;J)V :cond_6 if-eqz v4, :cond_7 iput-wide v8, v12, Lf/c/a/o1;->i:J iput-wide v10, v12, Lf/c/a/o1;->j:J iput-object v3, v12, Lf/c/a/o1;->k:Ljava/lang/String; iput-boolean v5, v12, Lf/c/a/o1;->h:Z :cond_7 invoke-interface {v2, v12}, Lf/c/a/o0;->b(Lf/c/a/j1;)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_2 :catchall_0 move-exception v2 const-string v3, "Sdk_click runtime exception" invoke-virtual {v0, v1, v3, v2}, Lf/c/a/k1;->a(Lf/c/a/p;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}, Lf/c/a/k1;->a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V invoke-virtual {v0, v1}, Lf/c/a/k1;->b(Lf/c/a/p;)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}, Lf/c/a/k1;->a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V invoke-virtual {v0, v1}, Lf/c/a/k1;->b(Lf/c/a/p;)V goto :goto_2 :catch_2 move-exception v2 const-string v3, "Sdk_click failed to encode parameters" invoke-virtual {v0, v1, v3, v2}, Lf/c/a/k1;->a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V :goto_2 iget-object v0, p0, Lf/c/a/n1;->e:Lf/c/a/k1; iget-object v1, v0, Lf/c/a/k1;->e:Lf/c/a/l0; new-instance v2, Lf/c/a/m1; invoke-direct {v2, v0}, Lf/c/a/m1;->(Lf/c/a/k1;)V iget-object v0, v1, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor; invoke-virtual {v0, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future; return-void .end method