apkfuckery/com.discord/smali/f/c/a/w.smali

295 lines
5.8 KiB
Smali
Raw Normal View History

2020-11-12 02:11:44 +00:00
.class public Lf/c/a/w;
.super Ljava/lang/Object;
.source "AdjustConfig.java"
# instance fields
.field public A:Ljava/lang/String;
.field public B:Ljava/lang/String;
.field public C:Ljava/lang/String;
.field public a:Ljava/lang/String;
.field public b:Ljava/lang/String;
.field public c:Ljava/lang/String;
.field public d:Landroid/content/Context;
.field public e:Ljava/lang/String;
.field public f:Ljava/lang/String;
.field public g:Ljava/lang/String;
.field public h:Ljava/lang/String;
.field public i:Z
.field public j:Ljava/lang/String;
.field public k:Lf/c/a/g1;
.field public l:Ljava/lang/Boolean;
.field public m:Ljava/lang/Class;
.field public n:Lf/c/a/k1;
.field public o:Lf/c/a/j1;
.field public p:Lf/c/a/m1;
.field public q:Lf/c/a/l1;
.field public r:Lf/c/a/h1;
.field public s:Z
.field public t:Ljava/lang/Double;
.field public u:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lf/c/a/z0;",
">;"
}
.end annotation
.end field
.field public v:Lf/c/a/w0;
.field public w:Ljava/lang/String;
.field public x:Ljava/lang/String;
.field public y:Ljava/lang/Boolean;
.field public z:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-static {}, Lf/c/a/a0;->a()Lf/c/a/w0;
move-result-object v0
iput-object v0, p0, Lf/c/a/w;->v:Lf/c/a/w0;
sget-object v1, Lf/c/a/e1;->f:Lf/c/a/e1;
const-string v2, "production"
invoke-virtual {v2, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
invoke-interface {v0, v1, v2}, Lf/c/a/w0;->b(Lf/c/a/e1;Z)V
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iput-object p1, p0, Lf/c/a/w;->d:Landroid/content/Context;
iput-object p2, p0, Lf/c/a/w;->e:Ljava/lang/String;
iput-object p3, p0, Lf/c/a/w;->f:Ljava/lang/String;
const/4 p1, 0x0
iput-boolean p1, p0, Lf/c/a/w;->i:Z
iput-boolean p1, p0, Lf/c/a/w;->s:Z
return-void
.end method
# virtual methods
.method public a()Z
.locals 5
iget-object v0, p0, Lf/c/a/w;->e:Ljava/lang/String;
const/4 v1, 0x1
const/4 v2, 0x0
if-nez v0, :cond_0
iget-object v0, p0, Lf/c/a/w;->v:Lf/c/a/w0;
new-array v3, v2, [Ljava/lang/Object;
const-string v4, "Missing App Token"
invoke-interface {v0, v4, v3}, Lf/c/a/w0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
const/4 v0, 0x0
goto :goto_1
:cond_0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v3
const/16 v4, 0xc
if-eq v3, v4, :cond_1
iget-object v3, p0, Lf/c/a/w;->v:Lf/c/a/w0;
new-array v4, v1, [Ljava/lang/Object;
aput-object v0, v4, v2
const-string v0, "Malformed App Token \'%s\'"
invoke-interface {v3, v0, v4}, Lf/c/a/w0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
:cond_1
const/4 v0, 0x1
:goto_1
if-nez v0, :cond_2
return v2
:cond_2
iget-object v0, p0, Lf/c/a/w;->f:Ljava/lang/String;
if-nez v0, :cond_3
iget-object v0, p0, Lf/c/a/w;->v:Lf/c/a/w0;
new-array v3, v2, [Ljava/lang/Object;
const-string v4, "Missing environment"
invoke-interface {v0, v4, v3}, Lf/c/a/w0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_2
const/4 v0, 0x0
goto :goto_4
:cond_3
const-string v3, "sandbox"
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_4
iget-object v0, p0, Lf/c/a/w;->v:Lf/c/a/w0;
new-array v3, v2, [Ljava/lang/Object;
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-interface {v0, v4, v3}, Lf/c/a/w0;->c(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_3
const/4 v0, 0x1
goto :goto_4
:cond_4
const-string v3, "production"
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_5
iget-object v0, p0, Lf/c/a/w;->v:Lf/c/a/w0;
new-array v3, v2, [Ljava/lang/Object;
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-interface {v0, v4, v3}, Lf/c/a/w0;->c(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_3
:cond_5
iget-object v3, p0, Lf/c/a/w;->v:Lf/c/a/w0;
new-array v4, v1, [Ljava/lang/Object;
aput-object v0, v4, v2
const-string v0, "Unknown environment \'%s\'"
invoke-interface {v3, v0, v4}, Lf/c/a/w0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_2
:goto_4
if-nez v0, :cond_6
return v2
:cond_6
iget-object v0, p0, Lf/c/a/w;->d:Landroid/content/Context;
if-nez v0, :cond_7
iget-object v0, p0, Lf/c/a/w;->v:Lf/c/a/w0;
new-array v3, v2, [Ljava/lang/Object;
const-string v4, "Missing context"
invoke-interface {v0, v4, v3}, Lf/c/a/w0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_5
const/4 v0, 0x0
goto :goto_6
:cond_7
const-string v3, "android.permission.INTERNET"
invoke-static {v0, v3}, Lf/c/a/e2;->a(Landroid/content/Context;Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_8
iget-object v0, p0, Lf/c/a/w;->v:Lf/c/a/w0;
new-array v3, v2, [Ljava/lang/Object;
const-string v4, "Missing permission: INTERNET"
invoke-interface {v0, v4, v3}, Lf/c/a/w0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_5
:cond_8
const/4 v0, 0x1
:goto_6
if-nez v0, :cond_9
return v2
:cond_9
return v1
.end method