apkfuckery/com.discord/smali/f/c/a/a$j.smali
2020-07-08 16:44:49 +00:00

487 lines
10 KiB
Smali

.class public Lf/c/a/a$j;
.super Ljava/lang/Object;
.source "ActivityHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/c/a/a;->l(Lf/c/a/s;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic d:Lf/c/a/s;
.field public final synthetic e:Lf/c/a/a;
# direct methods
.method public constructor <init>(Lf/c/a/a;Lf/c/a/s;)V
.locals 0
iput-object p1, p0, Lf/c/a/a$j;->e:Lf/c/a/a;
iput-object p2, p0, Lf/c/a/a$j;->d:Lf/c/a/s;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 12
iget-object v0, p0, Lf/c/a/a$j;->e:Lf/c/a/a;
iget-object v1, v0, Lf/c/a/a;->c:Lf/c/a/q;
const/4 v2, 0x0
if-nez v1, :cond_0
iget-object v0, v0, Lf/c/a/a;->d:Lf/c/a/q0;
new-array v1, v2, [Ljava/lang/Object;
check-cast v0, Lf/c/a/x0;
const-string v3, "Event tracked before first activity resumed.\nIf it was triggered in the Application class, it might timestamp or even send an install long before the user opens the app.\nPlease check https://github.com/adjust/android_sdk#can-i-trigger-an-event-at-application-launch for more information."
invoke-virtual {v0, v3, v1}, Lf/c/a/x0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lf/c/a/a$j;->e:Lf/c/a/a;
invoke-static {v0}, Lf/c/a/a;->m(Lf/c/a/a;)V
:cond_0
iget-object v0, p0, Lf/c/a/a$j;->e:Lf/c/a/a;
iget-object v1, p0, Lf/c/a/a$j;->d:Lf/c/a/s;
iget-object v3, v0, Lf/c/a/a;->c:Lf/c/a/q;
invoke-virtual {v0, v3}, Lf/c/a/a;->n(Lf/c/a/q;)Z
move-result v3
if-nez v3, :cond_1
goto/16 :goto_9
:cond_1
invoke-virtual {v0}, Lf/c/a/a;->o()Z
move-result v3
if-nez v3, :cond_2
goto/16 :goto_9
:cond_2
const/4 v3, 0x1
if-nez v1, :cond_3
iget-object v4, v0, Lf/c/a/a;->d:Lf/c/a/q0;
new-array v5, v2, [Ljava/lang/Object;
check-cast v4, Lf/c/a/x0;
const-string v6, "Event missing"
invoke-virtual {v4, v6, v5}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_1
:cond_3
iget-object v4, v1, Lf/c/a/s;->a:Ljava/lang/String;
if-eqz v4, :cond_4
const/4 v4, 0x1
goto :goto_0
:cond_4
const/4 v4, 0x0
:goto_0
if-nez v4, :cond_5
iget-object v4, v0, Lf/c/a/a;->d:Lf/c/a/q0;
new-array v5, v2, [Ljava/lang/Object;
check-cast v4, Lf/c/a/x0;
const-string v6, "Event not initialized correctly"
invoke-virtual {v4, v6, v5}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_1
const/4 v4, 0x0
goto :goto_2
:cond_5
const/4 v4, 0x1
:goto_2
if-nez v4, :cond_6
goto/16 :goto_9
:cond_6
iget-object v4, v1, Lf/c/a/s;->f:Ljava/lang/String;
if-eqz v4, :cond_c
invoke-virtual {v4}, Ljava/lang/String;->isEmpty()Z
move-result v5
if-eqz v5, :cond_7
goto :goto_4
:cond_7
iget-object v5, v0, Lf/c/a/a;->c:Lf/c/a/q;
iget-object v5, v5, Lf/c/a/q;->orderIds:Ljava/util/LinkedList;
if-nez v5, :cond_8
const/4 v5, 0x0
goto :goto_3
:cond_8
invoke-virtual {v5, v4}, Ljava/util/LinkedList;->contains(Ljava/lang/Object;)Z
move-result v5
:goto_3
if-eqz v5, :cond_9
iget-object v5, v0, Lf/c/a/a;->d:Lf/c/a/q0;
new-array v6, v3, [Ljava/lang/Object;
aput-object v4, v6, v2
check-cast v5, Lf/c/a/x0;
const-string v4, "Skipping duplicated order ID \'%s\'"
invoke-virtual {v5, v4, v6}, Lf/c/a/x0;->c(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 v4, 0x0
goto :goto_5
:cond_9
iget-object v5, v0, Lf/c/a/a;->c:Lf/c/a/q;
iget-object v6, v5, Lf/c/a/q;->orderIds:Ljava/util/LinkedList;
if-nez v6, :cond_a
new-instance v6, Ljava/util/LinkedList;
invoke-direct {v6}, Ljava/util/LinkedList;-><init>()V
iput-object v6, v5, Lf/c/a/q;->orderIds:Ljava/util/LinkedList;
:cond_a
iget-object v6, v5, Lf/c/a/q;->orderIds:Ljava/util/LinkedList;
invoke-virtual {v6}, Ljava/util/LinkedList;->size()I
move-result v6
const/16 v7, 0xa
if-lt v6, v7, :cond_b
iget-object v6, v5, Lf/c/a/q;->orderIds:Ljava/util/LinkedList;
invoke-virtual {v6}, Ljava/util/LinkedList;->removeLast()Ljava/lang/Object;
:cond_b
iget-object v5, v5, Lf/c/a/q;->orderIds:Ljava/util/LinkedList;
invoke-virtual {v5, v4}, Ljava/util/LinkedList;->addFirst(Ljava/lang/Object;)V
iget-object v5, v0, Lf/c/a/a;->d:Lf/c/a/q0;
new-array v6, v3, [Ljava/lang/Object;
aput-object v4, v6, v2
check-cast v5, Lf/c/a/x0;
const-string v4, "Added order ID \'%s\'"
invoke-virtual {v5, v4, v6}, Lf/c/a/x0;->d(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_c
:goto_4
const/4 v4, 0x1
:goto_5
if-nez v4, :cond_d
goto/16 :goto_9
:cond_d
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v10
iget-object v4, v0, Lf/c/a/a;->c:Lf/c/a/q;
iget v5, v4, Lf/c/a/q;->eventCount:I
add-int/2addr v5, v3
iput v5, v4, Lf/c/a/q;->eventCount:I
invoke-virtual {v0, v10, v11}, Lf/c/a/a;->A(J)Z
new-instance v4, Lf/c/a/f1;
iget-object v6, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-object v7, v0, Lf/c/a/a;->i:Lf/c/a/m0;
iget-object v8, v0, Lf/c/a/a;->c:Lf/c/a/q;
iget-object v9, v0, Lf/c/a/a;->n:Lf/c/a/p1;
move-object v5, v4
invoke-direct/range {v5 .. v11}, Lf/c/a/f1;-><init>(Lf/c/a/r;Lf/c/a/m0;Lf/c/a/q;Lf/c/a/p1;J)V
iget-object v5, v0, Lf/c/a/a;->h:Lf/c/a/a$m;
iget-boolean v5, v5, Lf/c/a/a$m;->d:Z
invoke-virtual {v4}, Lf/c/a/f1;->l()Ljava/util/Map;
move-result-object v6
iget-object v7, v4, Lf/c/a/f1;->c:Lf/c/a/f1$a;
iget v7, v7, Lf/c/a/f1$a;->b:I
int-to-long v7, v7
const-string v9, "event_count"
invoke-static {v6, v9, v7, v8}, Lf/c/a/f1;->e(Ljava/util/Map;Ljava/lang/String;J)V
iget-object v7, v1, Lf/c/a/s;->a:Ljava/lang/String;
const-string v8, "event_token"
invoke-static {v6, v8, v7}, Lf/c/a/f1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v1, Lf/c/a/s;->b:Ljava/lang/Double;
if-nez v7, :cond_e
goto :goto_6
:cond_e
sget-object v8, Ljava/util/Locale;->US:Ljava/util/Locale;
new-array v9, v3, [Ljava/lang/Object;
aput-object v7, v9, v2
const-string v7, "%.5f"
invoke-static {v8, v7, v9}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v7
const-string v8, "revenue"
invoke-static {v6, v8, v7}, Lf/c/a/f1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
:goto_6
iget-object v7, v1, Lf/c/a/s;->c:Ljava/lang/String;
const-string v8, "currency"
invoke-static {v6, v8, v7}, Lf/c/a/f1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
if-nez v5, :cond_f
iget-object v7, v4, Lf/c/a/f1;->d:Lf/c/a/p1;
iget-object v7, v7, Lf/c/a/p1;->a:Ljava/util/Map;
iget-object v8, v1, Lf/c/a/s;->d:Ljava/util/Map;
const-string v9, "Callback"
invoke-static {v7, v8, v9}, Lf/c/a/v1;->v(Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;)Ljava/util/Map;
move-result-object v7
const-string v8, "callback_params"
invoke-static {v6, v8, v7}, Lf/c/a/f1;->f(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)V
iget-object v7, v4, Lf/c/a/f1;->d:Lf/c/a/p1;
iget-object v7, v7, Lf/c/a/p1;->b:Ljava/util/Map;
iget-object v8, v1, Lf/c/a/s;->e:Ljava/util/Map;
const-string v9, "Partner"
invoke-static {v7, v8, v9}, Lf/c/a/v1;->v(Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;)Ljava/util/Map;
move-result-object v7
const-string v8, "partner_params"
invoke-static {v6, v8, v7}, Lf/c/a/f1;->f(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)V
:cond_f
sget-object v7, Lf/c/a/o;->f:Lf/c/a/o;
invoke-virtual {v4, v7}, Lf/c/a/f1;->k(Lf/c/a/o;)Lf/c/a/p;
move-result-object v4
const-string v7, "/event"
iput-object v7, v4, Lf/c/a/p;->path:Ljava/lang/String;
iget-object v7, v1, Lf/c/a/s;->b:Ljava/lang/Double;
if-nez v7, :cond_10
sget-object v7, Ljava/util/Locale;->US:Ljava/util/Locale;
new-array v8, v3, [Ljava/lang/Object;
iget-object v9, v1, Lf/c/a/s;->a:Ljava/lang/String;
aput-object v9, v8, v2
const-string v9, "\'%s\'"
invoke-static {v7, v9, v8}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v7
goto :goto_7
:cond_10
sget-object v8, Ljava/util/Locale;->US:Ljava/util/Locale;
const/4 v9, 0x3
new-array v9, v9, [Ljava/lang/Object;
aput-object v7, v9, v2
iget-object v7, v1, Lf/c/a/s;->c:Ljava/lang/String;
aput-object v7, v9, v3
const/4 v7, 0x2
iget-object v10, v1, Lf/c/a/s;->a:Ljava/lang/String;
aput-object v10, v9, v7
const-string v7, "(%.5f %s, \'%s\')"
invoke-static {v8, v7, v9}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v7
:goto_7
iput-object v7, v4, Lf/c/a/p;->suffix:Ljava/lang/String;
iput-object v6, v4, Lf/c/a/p;->parameters:Ljava/util/Map;
if-eqz v5, :cond_11
iget-object v5, v1, Lf/c/a/s;->d:Ljava/util/Map;
iput-object v5, v4, Lf/c/a/p;->callbackParameters:Ljava/util/Map;
iget-object v1, v1, Lf/c/a/s;->e:Ljava/util/Map;
iput-object v1, v4, Lf/c/a/p;->partnerParameters:Ljava/util/Map;
:cond_11
iget-object v1, v0, Lf/c/a/a;->b:Lf/c/a/r0;
invoke-interface {v1, v4}, Lf/c/a/r0;->d(Lf/c/a/p;)V
iget-object v1, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-boolean v1, v1, Lf/c/a/r;->f:Z
if-eqz v1, :cond_12
iget-object v1, v0, Lf/c/a/a;->d:Lf/c/a/q0;
new-array v3, v3, [Ljava/lang/Object;
iget-object v4, v4, Lf/c/a/p;->suffix:Ljava/lang/String;
aput-object v4, v3, v2
check-cast v1, Lf/c/a/x0;
const-string v2, "Buffered event %s"
invoke-virtual {v1, v2, v3}, Lf/c/a/x0;->c(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_8
:cond_12
iget-object v1, v0, Lf/c/a/a;->b:Lf/c/a/r0;
invoke-interface {v1}, Lf/c/a/r0;->b()V
:goto_8
iget-object v1, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-boolean v1, v1, Lf/c/a/r;->p:Z
if-eqz v1, :cond_13
iget-object v1, v0, Lf/c/a/a;->h:Lf/c/a/a$m;
iget-boolean v1, v1, Lf/c/a/a$m;->c:Z
if-eqz v1, :cond_13
invoke-virtual {v0}, Lf/c/a/a;->u()V
:cond_13
invoke-virtual {v0}, Lf/c/a/a;->G()V
:goto_9
return-void
.end method