280 lines
6 KiB
Smali
280 lines
6 KiB
Smali
.class public Lcom/adjust/sdk/AdjustConfig;
|
|
.super Ljava/lang/Object;
|
|
.source "AdjustConfig.java"
|
|
|
|
|
|
# instance fields
|
|
.field cU:Ljava/lang/String;
|
|
|
|
.field public cV:Ljava/lang/String;
|
|
|
|
.field cW:Ljava/lang/String;
|
|
|
|
.field cX:Z
|
|
|
|
.field cY:Ljava/lang/String;
|
|
|
|
.field cZ:Lcom/adjust/sdk/af;
|
|
|
|
.field ce:Lcom/adjust/sdk/x;
|
|
|
|
.field public context:Landroid/content/Context;
|
|
|
|
.field da:Ljava/lang/Boolean;
|
|
|
|
.field db:Ljava/lang/Class;
|
|
|
|
.field dc:Lcom/adjust/sdk/ai;
|
|
|
|
.field dd:Lcom/adjust/sdk/ah;
|
|
|
|
.field de:Lcom/adjust/sdk/ak;
|
|
|
|
.field df:Lcom/adjust/sdk/aj;
|
|
|
|
.field dg:Lcom/adjust/sdk/ag;
|
|
|
|
.field dh:Z
|
|
|
|
.field di:Ljava/lang/Double;
|
|
|
|
.field public dj:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/adjust/sdk/aa;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field dk:Ljava/lang/String;
|
|
|
|
.field public dl:Ljava/lang/Boolean;
|
|
|
|
.field public dm:Z
|
|
|
|
.field dn:Ljava/lang/String;
|
|
|
|
.field do:Ljava/lang/String;
|
|
|
|
.field dp: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;->ce:Lcom/adjust/sdk/x;
|
|
|
|
sget-object v0, Lcom/adjust/sdk/ad;->eI: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;->ce: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;->ce: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;->ce: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;->ce: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;->ce: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;->ce: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;->ce: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;->cU:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lcom/adjust/sdk/AdjustConfig;->cV:Ljava/lang/String;
|
|
|
|
iput-boolean v2, p0, Lcom/adjust/sdk/AdjustConfig;->cX:Z
|
|
|
|
iput-boolean v2, p0, Lcom/adjust/sdk/AdjustConfig;->dh: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;->ce: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
|