apkfuckery/com.discord/smali/e/c/a/o.smali

453 lines
9.8 KiB
Smali
Raw Normal View History

2020-04-27 20:53:11 +00:00
.class public Le/c/a/o;
.super Ljava/lang/Object;
.source "ActivityHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic d:Le/c/a/w;
.field public final synthetic e:Le/c/a/g;
# direct methods
.method public constructor <init>(Le/c/a/g;Le/c/a/w;)V
.locals 0
iput-object p1, p0, Le/c/a/o;->e:Le/c/a/g;
iput-object p2, p0, Le/c/a/o;->d:Le/c/a/w;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 12
iget-object v0, p0, Le/c/a/o;->e:Le/c/a/g;
iget-object v1, v0, Le/c/a/g;->c:Le/c/a/t;
const/4 v2, 0x0
if-nez v1, :cond_0
iget-object v0, v0, Le/c/a/g;->d:Le/c/a/u0;
new-array v1, v2, [Ljava/lang/Object;
check-cast v0, Le/c/a/b1;
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}, Le/c/a/b1;->e(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Le/c/a/o;->e:Le/c/a/g;
invoke-static {v0}, Le/c/a/g;->a(Le/c/a/g;)V
:cond_0
iget-object v0, p0, Le/c/a/o;->e:Le/c/a/g;
iget-object v1, p0, Le/c/a/o;->d:Le/c/a/w;
iget-object v3, v0, Le/c/a/g;->c:Le/c/a/t;
invoke-virtual {v0, v3}, Le/c/a/g;->a(Le/c/a/t;)Z
move-result v3
if-nez v3, :cond_1
goto/16 :goto_8
:cond_1
invoke-virtual {v0}, Le/c/a/g;->b()Z
move-result v3
if-nez v3, :cond_2
goto/16 :goto_8
:cond_2
const/4 v3, 0x1
if-nez v1, :cond_3
iget-object v4, v0, Le/c/a/g;->d:Le/c/a/u0;
new-array v5, v2, [Ljava/lang/Object;
check-cast v4, Le/c/a/b1;
const-string v6, "Event missing"
invoke-virtual {v4, v6, v5}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_1
:cond_3
iget-object v4, v1, Le/c/a/w;->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, Le/c/a/g;->d:Le/c/a/u0;
new-array v5, v2, [Ljava/lang/Object;
check-cast v4, Le/c/a/b1;
const-string v6, "Event not initialized correctly"
invoke-virtual {v4, v6, v5}, Le/c/a/b1;->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_8
:cond_6
iget-object v4, v1, Le/c/a/w;->f:Ljava/lang/String;
if-eqz v4, :cond_9
invoke-virtual {v4}, Ljava/lang/String;->isEmpty()Z
move-result v5
if-eqz v5, :cond_7
goto :goto_3
:cond_7
iget-object v5, v0, Le/c/a/g;->c:Le/c/a/t;
invoke-virtual {v5, v4}, Le/c/a/t;->b(Ljava/lang/String;)Z
move-result v5
if-eqz v5, :cond_8
iget-object v5, v0, Le/c/a/g;->d:Le/c/a/u0;
new-array v6, v3, [Ljava/lang/Object;
aput-object v4, v6, v2
check-cast v5, Le/c/a/b1;
const-string v4, "Skipping duplicated order ID \'%s\'"
invoke-virtual {v5, v4, v6}, Le/c/a/b1;->c(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 v4, 0x0
goto :goto_4
:cond_8
iget-object v5, v0, Le/c/a/g;->c:Le/c/a/t;
invoke-virtual {v5, v4}, Le/c/a/t;->a(Ljava/lang/String;)V
iget-object v5, v0, Le/c/a/g;->d:Le/c/a/u0;
new-array v6, v3, [Ljava/lang/Object;
aput-object v4, v6, v2
check-cast v5, Le/c/a/b1;
const-string v4, "Added order ID \'%s\'"
invoke-virtual {v5, v4, v6}, Le/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_9
:goto_3
const/4 v4, 0x1
:goto_4
if-nez v4, :cond_a
goto/16 :goto_8
:cond_a
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v10
iget-object v4, v0, Le/c/a/g;->c:Le/c/a/t;
iget v5, v4, Le/c/a/t;->eventCount:I
add-int/2addr v5, v3
iput v5, v4, Le/c/a/t;->eventCount:I
invoke-virtual {v0, v10, v11}, Le/c/a/g;->c(J)Z
new-instance v4, Le/c/a/j1;
iget-object v6, v0, Le/c/a/g;->j:Le/c/a/v;
iget-object v7, v0, Le/c/a/g;->i:Le/c/a/q0;
iget-object v8, v0, Le/c/a/g;->c:Le/c/a/t;
iget-object v9, v0, Le/c/a/g;->n:Le/c/a/u1;
move-object v5, v4
invoke-direct/range {v5 .. v11}, Le/c/a/j1;-><init>(Le/c/a/v;Le/c/a/q0;Le/c/a/t;Le/c/a/u1;J)V
iget-object v5, v0, Le/c/a/g;->h:Le/c/a/g$j;
iget-boolean v5, v5, Le/c/a/g$j;->d:Z
invoke-virtual {v4}, Le/c/a/j1;->a()Ljava/util/Map;
move-result-object v6
iget-object v7, v4, Le/c/a/j1;->c:Le/c/a/j1$a;
iget v7, v7, Le/c/a/j1$a;->b:I
int-to-long v7, v7
const-string v9, "event_count"
invoke-static {v6, v9, v7, v8}, Le/c/a/j1;->d(Ljava/util/Map;Ljava/lang/String;J)V
iget-object v7, v1, Le/c/a/w;->a:Ljava/lang/String;
const-string v8, "event_token"
invoke-static {v6, v8, v7}, Le/c/a/j1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v1, Le/c/a/w;->b:Ljava/lang/Double;
if-nez v7, :cond_b
goto :goto_5
:cond_b
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}, Le/c/a/j1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
:goto_5
iget-object v7, v1, Le/c/a/w;->c:Ljava/lang/String;
const-string v8, "currency"
invoke-static {v6, v8, v7}, Le/c/a/j1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
if-nez v5, :cond_c
iget-object v7, v4, Le/c/a/j1;->d:Le/c/a/u1;
iget-object v7, v7, Le/c/a/u1;->a:Ljava/util/Map;
iget-object v8, v1, Le/c/a/w;->d:Ljava/util/Map;
const-string v9, "Callback"
invoke-static {v7, v8, v9}, Le/c/a/a2;->a(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}, Le/c/a/j1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)V
iget-object v7, v4, Le/c/a/j1;->d:Le/c/a/u1;
iget-object v7, v7, Le/c/a/u1;->b:Ljava/util/Map;
iget-object v8, v1, Le/c/a/w;->e:Ljava/util/Map;
const-string v9, "Partner"
invoke-static {v7, v8, v9}, Le/c/a/a2;->a(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}, Le/c/a/j1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)V
:cond_c
sget-object v7, Le/c/a/r;->f:Le/c/a/r;
invoke-virtual {v4, v7}, Le/c/a/j1;->a(Le/c/a/r;)Le/c/a/s;
move-result-object v4
const-string v7, "/event"
invoke-virtual {v4, v7}, Le/c/a/s;->b(Ljava/lang/String;)V
iget-object v7, v1, Le/c/a/w;->b:Ljava/lang/Double;
if-nez v7, :cond_d
sget-object v7, Ljava/util/Locale;->US:Ljava/util/Locale;
new-array v8, v3, [Ljava/lang/Object;
iget-object v9, v1, Le/c/a/w;->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_6
:cond_d
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, Le/c/a/w;->c:Ljava/lang/String;
aput-object v7, v9, v3
const/4 v7, 0x2
iget-object v10, v1, Le/c/a/w;->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_6
invoke-virtual {v4, v7}, Le/c/a/s;->c(Ljava/lang/String;)V
invoke-virtual {v4, v6}, Le/c/a/s;->b(Ljava/util/Map;)V
if-eqz v5, :cond_e
iget-object v5, v1, Le/c/a/w;->d:Ljava/util/Map;
invoke-virtual {v4, v5}, Le/c/a/s;->a(Ljava/util/Map;)V
iget-object v1, v1, Le/c/a/w;->e:Ljava/util/Map;
invoke-virtual {v4, v1}, Le/c/a/s;->c(Ljava/util/Map;)V
:cond_e
iget-object v1, v0, Le/c/a/g;->b:Le/c/a/v0;
check-cast v1, Le/c/a/k1;
iget-object v5, v1, Le/c/a/k1;->a:Le/c/a/p0;
new-instance v6, Le/c/a/l1;
invoke-direct {v6, v1, v4}, Le/c/a/l1;-><init>(Le/c/a/k1;Le/c/a/s;)V
iget-object v1, v5, Le/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
invoke-virtual {v1, v6}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
iget-object v1, v0, Le/c/a/g;->j:Le/c/a/v;
iget-boolean v1, v1, Le/c/a/v;->f:Z
if-eqz v1, :cond_f
iget-object v1, v0, Le/c/a/g;->d:Le/c/a/u0;
new-array v3, v3, [Ljava/lang/Object;
invoke-virtual {v4}, Le/c/a/s;->m()Ljava/lang/String;
move-result-object v4
aput-object v4, v3, v2
check-cast v1, Le/c/a/b1;
const-string v2, "Buffered event %s"
invoke-virtual {v1, v2, v3}, Le/c/a/b1;->c(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_7
:cond_f
iget-object v1, v0, Le/c/a/g;->b:Le/c/a/v0;
check-cast v1, Le/c/a/k1;
invoke-virtual {v1}, Le/c/a/k1;->c()V
:goto_7
iget-object v1, v0, Le/c/a/g;->j:Le/c/a/v;
iget-boolean v1, v1, Le/c/a/v;->p:Z
if-eqz v1, :cond_10
iget-object v1, v0, Le/c/a/g;->h:Le/c/a/g$j;
iget-boolean v1, v1, Le/c/a/g$j;->c:Z
if-eqz v1, :cond_10
invoke-virtual {v0}, Le/c/a/g;->f()V
:cond_10
invoke-virtual {v0}, Le/c/a/g;->k()V
:goto_8
return-void
.end method