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