279 lines
6 KiB
Smali
279 lines
6 KiB
Smali
.class public Lcom/adjust/sdk/AdjustConfig;
|
|
.super Ljava/lang/Object;
|
|
.source "AdjustConfig.java"
|
|
|
|
|
|
# instance fields
|
|
.field cZ:Ljava/lang/String;
|
|
|
|
.field cj:Lcom/adjust/sdk/x;
|
|
|
|
.field public context:Landroid/content/Context;
|
|
|
|
.field public da:Ljava/lang/String;
|
|
|
|
.field db:Ljava/lang/String;
|
|
|
|
.field dc:Z
|
|
|
|
.field dd:Ljava/lang/String;
|
|
|
|
.field de:Lcom/adjust/sdk/af;
|
|
|
|
.field df:Ljava/lang/Boolean;
|
|
|
|
.field dg:Ljava/lang/Class;
|
|
|
|
.field dh:Lcom/adjust/sdk/ai;
|
|
|
|
.field di:Lcom/adjust/sdk/ah;
|
|
|
|
.field dj:Lcom/adjust/sdk/ak;
|
|
|
|
.field dk:Lcom/adjust/sdk/aj;
|
|
|
|
.field dl:Lcom/adjust/sdk/ag;
|
|
|
|
.field dm:Z
|
|
|
|
.field dn:Ljava/lang/Double;
|
|
|
|
.field public do:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/adjust/sdk/aa;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field dp:Ljava/lang/String;
|
|
|
|
.field public dq:Ljava/lang/Boolean;
|
|
|
|
.field public dr:Z
|
|
|
|
.field ds:Ljava/lang/String;
|
|
|
|
.field dt:Ljava/lang/String;
|
|
|
|
.field du:Z
|
|
|
|
.field processName:Ljava/lang/String;
|
|
|
|
.field public pushToken:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 5
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/adjust/sdk/AdjustConfig;->cj:Lcom/adjust/sdk/x;
|
|
|
|
sget-object v0, Lcom/adjust/sdk/ad;->eN:Lcom/adjust/sdk/ad;
|
|
|
|
invoke-virtual {p0, v0, p3}, Lcom/adjust/sdk/AdjustConfig;->a(Lcom/adjust/sdk/ad;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/16 v3, 0xc
|
|
|
|
if-eq v0, v3, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/AdjustConfig;->cj:Lcom/adjust/sdk/x;
|
|
|
|
const-string v3, "Malformed App Token \'%s\'"
|
|
|
|
new-array v4, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v4, v2
|
|
|
|
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
if-nez p3, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/AdjustConfig;->cj:Lcom/adjust/sdk/x;
|
|
|
|
const-string v3, "Missing environment"
|
|
|
|
new-array v4, v2, [Ljava/lang/Object;
|
|
|
|
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v0, "sandbox"
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/AdjustConfig;->cj:Lcom/adjust/sdk/x;
|
|
|
|
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!"
|
|
|
|
new-array v4, v2, [Ljava/lang/Object;
|
|
|
|
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->e(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const-string v0, "production"
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/AdjustConfig;->cj:Lcom/adjust/sdk/x;
|
|
|
|
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!"
|
|
|
|
new-array v4, v2, [Ljava/lang/Object;
|
|
|
|
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->e(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
iget-object v0, p0, Lcom/adjust/sdk/AdjustConfig;->cj:Lcom/adjust/sdk/x;
|
|
|
|
const-string v3, "Unknown environment \'%s\'"
|
|
|
|
new-array v4, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p3, v4, v2
|
|
|
|
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
if-nez v0, :cond_5
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
if-nez p1, :cond_6
|
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/AdjustConfig;->cj:Lcom/adjust/sdk/x;
|
|
|
|
const-string v3, "Missing context"
|
|
|
|
new-array v4, v2, [Ljava/lang/Object;
|
|
|
|
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
const-string v0, "android.permission.INTERNET"
|
|
|
|
invoke-static {p1, v0}, Lcom/adjust/sdk/ay;->a(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/AdjustConfig;->cj:Lcom/adjust/sdk/x;
|
|
|
|
const-string v3, "Missing permission: INTERNET"
|
|
|
|
new-array v4, v2, [Ljava/lang/Object;
|
|
|
|
invoke-interface {v0, v3, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
const/4 v0, 0x1
|
|
|
|
:goto_2
|
|
if-nez v0, :cond_8
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:cond_8
|
|
:goto_3
|
|
if-eqz v1, :cond_9
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/adjust/sdk/AdjustConfig;->context:Landroid/content/Context;
|
|
|
|
iput-object p2, p0, Lcom/adjust/sdk/AdjustConfig;->cZ:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lcom/adjust/sdk/AdjustConfig;->da:Ljava/lang/String;
|
|
|
|
iput-boolean v2, p0, Lcom/adjust/sdk/AdjustConfig;->dc:Z
|
|
|
|
iput-boolean v2, p0, Lcom/adjust/sdk/AdjustConfig;->dm:Z
|
|
|
|
:cond_9
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/adjust/sdk/ad;Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/AdjustConfig;->cj:Lcom/adjust/sdk/x;
|
|
|
|
const-string v1, "production"
|
|
|
|
invoke-virtual {v1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
invoke-interface {v0, p1, p2}, Lcom/adjust/sdk/x;->a(Lcom/adjust/sdk/ad;Z)V
|
|
|
|
return-void
|
|
.end method
|