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

286 lines
5.5 KiB
Smali
Raw Normal View History

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