apkfuckery/com.discord/smali/com/adjust/sdk/f.smali

270 lines
5.6 KiB
Smali
Raw Normal View History

2019-02-17 02:24:41 +00:00
.class public final Lcom/adjust/sdk/f;
2019-02-04 20:08:30 +00:00
.super Ljava/lang/Object;
2019-02-17 02:24:41 +00:00
.source "AdjustConfig.java"
2019-02-04 20:08:30 +00:00
# instance fields
2019-02-17 02:24:41 +00:00
.field cU:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field cV:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field cW:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field cX:Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field cY:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field public cZ:Lcom/adjust/sdk/af;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field public context:Landroid/content/Context;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field da:Ljava/lang/Boolean;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field db:Ljava/lang/Class;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field dc:Lcom/adjust/sdk/aj;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field dd:Lcom/adjust/sdk/ai;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field de:Lcom/adjust/sdk/al;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field df:Lcom/adjust/sdk/ak;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field dg:Lcom/adjust/sdk/ag;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field dh:Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field di:Ljava/lang/Double;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field public dj:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/adjust/sdk/aa;",
">;"
}
.end annotation
.end field
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field dk:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field public dl:Ljava/lang/Boolean;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field public dm:Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field dn:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field do:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field dp:Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field processName:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
.field public pushToken:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
.locals 5
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-object v0, p0, Lcom/adjust/sdk/f;->ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
sget-object v0, Lcom/adjust/sdk/ad;->eH:Lcom/adjust/sdk/ad;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v1, p0, Lcom/adjust/sdk/f;->ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v2, "production"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v1, v0, v2}, Lcom/adjust/sdk/x;->a(Lcom/adjust/sdk/ad;Z)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {p2}, Ljava/lang/String;->length()I
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v1, 0x1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v2, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/16 v3, 0xc
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eq v0, v3, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v0, p0, Lcom/adjust/sdk/f;->ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v3, "Malformed App Token \'%s\'"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
new-array v4, v1, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
aput-object p2, v4, v2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-02-17 02:24:41 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_0
const/4 v0, 0x1
2019-02-17 02:24:41 +00:00
:goto_0
if-nez v0, :cond_1
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
2019-02-17 02:24:41 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_1
2019-02-17 02:24:41 +00:00
if-nez p3, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v0, p0, Lcom/adjust/sdk/f;->ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v3, "Missing environment"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
new-array v4, v2, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_2
const-string v0, "sandbox"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-17 02:24:41 +00:00
if-eqz v0, :cond_3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v0, p0, Lcom/adjust/sdk/f;->ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v3, "SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don\'t forget to set the environment to `production` before publishing!"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
new-array v4, v2, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->e(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v0, 0x1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_3
const-string v0, "production"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v0, :cond_4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v0, p0, Lcom/adjust/sdk/f;->ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v3, "PRODUCTION: Adjust is running in Production mode. Use this setting only for the build that you want to publish. Set the environment to `sandbox` if you want to test your app!"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
new-array v4, v2, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->e(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v0, 0x1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_4
iget-object v0, p0, Lcom/adjust/sdk/f;->ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v3, "Unknown environment \'%s\'"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
new-array v4, v1, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
aput-object p3, v4, v2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:goto_1
if-nez v0, :cond_5
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_5
if-nez p1, :cond_6
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v0, p0, Lcom/adjust/sdk/f;->ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v3, "Missing context"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
new-array v4, v2, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_6
const-string v0, "android.permission.INTERNET"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p1, v0}, Lcom/adjust/sdk/az;->a(Landroid/content/Context;Ljava/lang/String;)Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-nez v0, :cond_7
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v0, p0, Lcom/adjust/sdk/f;->ce:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v3, "Missing permission: INTERNET"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
new-array v4, v2, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_7
const/4 v0, 0x1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:goto_2
if-nez v0, :cond_8
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_8
:goto_3
if-eqz v1, :cond_9
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-object p1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-object p1, p0, Lcom/adjust/sdk/f;->context:Landroid/content/Context;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-object p2, p0, Lcom/adjust/sdk/f;->cU:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-object p3, p0, Lcom/adjust/sdk/f;->cV:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-boolean v2, p0, Lcom/adjust/sdk/f;->cX:Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-boolean v2, p0, Lcom/adjust/sdk/f;->dh:Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_9
return-void
2019-02-04 20:08:30 +00:00
.end method