317 lines
6.1 KiB
Smali
317 lines
6.1 KiB
Smali
.class public Le/c/a/v;
|
|
.super Ljava/lang/Object;
|
|
.source "AdjustConfig.java"
|
|
|
|
|
|
# instance fields
|
|
.field public a:Landroid/content/Context;
|
|
|
|
.field public b:Ljava/lang/String;
|
|
|
|
.field public c:Ljava/lang/String;
|
|
|
|
.field public d:Ljava/lang/String;
|
|
|
|
.field public e:Ljava/lang/String;
|
|
|
|
.field public f:Z
|
|
|
|
.field public g:Ljava/lang/String;
|
|
|
|
.field public h:Le/c/a/c1;
|
|
|
|
.field public i:Ljava/lang/Boolean;
|
|
|
|
.field public j:Ljava/lang/Class;
|
|
|
|
.field public k:Le/c/a/g1;
|
|
|
|
.field public l:Le/c/a/f1;
|
|
|
|
.field public m:Le/c/a/i1;
|
|
|
|
.field public n:Le/c/a/h1;
|
|
|
|
.field public o:Le/c/a/d1;
|
|
|
|
.field public p:Z
|
|
|
|
.field public q:Ljava/lang/Double;
|
|
|
|
.field public r:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Le/c/a/x0;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public s:Le/c/a/u0;
|
|
|
|
.field public t:Ljava/lang/String;
|
|
|
|
.field public u:Ljava/lang/String;
|
|
|
|
.field public v:Ljava/lang/Boolean;
|
|
|
|
.field public w:Z
|
|
|
|
.field public x:Ljava/lang/String;
|
|
|
|
.field public y:Ljava/lang/String;
|
|
|
|
.field public z:Z
|
|
|
|
|
|
# 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 {}, Le/c/a/z;->a()Le/c/a/u0;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
sget-object v0, Le/c/a/a1;->f:Le/c/a/a1;
|
|
|
|
invoke-virtual {p0, v0, p3}, Le/c/a/v;->a(Le/c/a/a1;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
iget-object v2, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
check-cast v2, Le/c/a/b1;
|
|
|
|
const-string v4, "Missing App Token"
|
|
|
|
invoke-virtual {v2, v4, v3}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0xc
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
iget-object v2, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
new-array v3, v0, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v3, v1
|
|
|
|
check-cast v2, Le/c/a/b1;
|
|
|
|
const-string v4, "Malformed App Token \'%s\'"
|
|
|
|
invoke-virtual {v2, v4, v3}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:goto_0
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x1
|
|
|
|
:goto_1
|
|
if-nez v2, :cond_2
|
|
|
|
goto/16 :goto_7
|
|
|
|
:cond_2
|
|
if-nez p3, :cond_3
|
|
|
|
iget-object v2, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
check-cast v2, Le/c/a/b1;
|
|
|
|
const-string v4, "Missing environment"
|
|
|
|
invoke-virtual {v2, v4, v3}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const-string v2, "sandbox"
|
|
|
|
invoke-virtual {p3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
iget-object v2, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
check-cast v2, Le/c/a/b1;
|
|
|
|
const-string v4, "SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don\'t forget to set the environment to `production` before publishing!"
|
|
|
|
invoke-virtual {v2, v4, v3}, Le/c/a/b1;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const-string v2, "production"
|
|
|
|
invoke-virtual {p3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
iget-object v2, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
check-cast v2, Le/c/a/b1;
|
|
|
|
const-string v4, "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!"
|
|
|
|
invoke-virtual {v2, v4, v3}, Le/c/a/b1;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:goto_2
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
iget-object v2, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
new-array v3, v0, [Ljava/lang/Object;
|
|
|
|
aput-object p3, v3, v1
|
|
|
|
check-cast v2, Le/c/a/b1;
|
|
|
|
const-string v4, "Unknown environment \'%s\'"
|
|
|
|
invoke-virtual {v2, v4, v3}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:goto_3
|
|
const/4 v2, 0x0
|
|
|
|
:goto_4
|
|
if-nez v2, :cond_6
|
|
|
|
goto :goto_7
|
|
|
|
:cond_6
|
|
if-nez p1, :cond_7
|
|
|
|
iget-object v2, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
check-cast v2, Le/c/a/b1;
|
|
|
|
const-string v4, "Missing context"
|
|
|
|
invoke-virtual {v2, v4, v3}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_7
|
|
const-string v2, "android.permission.INTERNET"
|
|
|
|
invoke-static {p1, v2}, Le/c/a/a2;->a(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_8
|
|
|
|
iget-object v2, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
check-cast v2, Le/c/a/b1;
|
|
|
|
const-string v4, "Missing permission: INTERNET"
|
|
|
|
invoke-virtual {v2, v4, v3}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:goto_5
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_6
|
|
|
|
:cond_8
|
|
const/4 v2, 0x1
|
|
|
|
:goto_6
|
|
if-nez v2, :cond_9
|
|
|
|
:goto_7
|
|
const/4 v0, 0x0
|
|
|
|
:cond_9
|
|
if-nez v0, :cond_a
|
|
|
|
goto :goto_8
|
|
|
|
:cond_a
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Le/c/a/v;->a:Landroid/content/Context;
|
|
|
|
iput-object p2, p0, Le/c/a/v;->b:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Le/c/a/v;->c:Ljava/lang/String;
|
|
|
|
iput-boolean v1, p0, Le/c/a/v;->f:Z
|
|
|
|
iput-boolean v1, p0, Le/c/a/v;->p:Z
|
|
|
|
:goto_8
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Le/c/a/a1;Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Le/c/a/v;->s:Le/c/a/u0;
|
|
|
|
const-string v1, "production"
|
|
|
|
invoke-virtual {v1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
check-cast v0, Le/c/a/b1;
|
|
|
|
iget-boolean v1, v0, Le/c/a/b1;->b:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iput-object p1, v0, Le/c/a/b1;->a:Le/c/a/a1;
|
|
|
|
iput-boolean p2, v0, Le/c/a/b1;->c:Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|