2019-07-24 11:27:29 +00:00
|
|
|
.class public Lcom/discord/app/App;
|
|
|
|
.super Landroid/app/Application;
|
|
|
|
.source "App.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/app/App$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-07-31 00:08:31 +00:00
|
|
|
.field private static final tJ:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field public static final tK:Lcom/discord/app/App$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-07-31 00:08:31 +00:00
|
|
|
.field private final tI:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/app/App$a;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/app/App$a;-><init>(B)V
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
sput-object v0, Lcom/discord/app/App;->tK:Lcom/discord/app/App$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-string v0, "productionDiscordExternal"
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
const-string v2, "local"
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
invoke-static {v0, v2, v1}, Lkotlin/text/l;->a(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
sput-boolean v0, Lcom/discord/app/App;->tJ:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroid/app/Application;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.method public static final synthetic dm()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
sget-boolean v0, Lcom/discord/app/App;->tJ:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method protected attachBaseContext(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "base"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/app/Application;->attachBaseContext(Landroid/content/Context;)V
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-boolean p1, p0, Lcom/discord/app/App;->tI:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
move-object p1, p0
|
|
|
|
|
|
|
|
check-cast p1, Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroidx/multidex/MultiDex;->install(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onCreate()V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroid/app/Application;->onCreate()V
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/app/Application;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/app/AppLog;->init(Landroid/app/Application;)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/analytics/AdjustConfig;->INSTANCE:Lcom/discord/utilities/analytics/AdjustConfig;
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-boolean v2, p0, Lcom/discord/app/App;->tI:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v0, v2}, Lcom/discord/utilities/analytics/AdjustConfig;->init(Landroid/app/Application;Z)V
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/miguelgaeta/backgrounded/Backgrounded;->init(Landroid/app/Application;)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/persister/PersisterConfig;->INSTANCE:Lcom/discord/utilities/persister/PersisterConfig;
|
|
|
|
|
|
|
|
move-object v2, p0
|
|
|
|
|
|
|
|
check-cast v2, Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/utilities/persister/PersisterConfig;->init(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/miguelgaeta/backgrounded/Backgrounded;->get()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const-string v3, "Backgrounded\n .get()"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v1, v3}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationBuffered(Lrx/Observable;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
invoke-virtual {v1}, Lrx/Observable;->Kb()Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
sget-object v3, Lcom/discord/app/App$b;->tL:Lcom/discord/app/App$b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast v3, Lrx/functions/Action1;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Lrx/Observable;->b(Lrx/functions/Action1;)Lrx/Subscription;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/ssl/SecureSocketsLayerUtils;->INSTANCE:Lcom/discord/utilities/ssl/SecureSocketsLayerUtils;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Lcom/discord/utilities/ssl/SecureSocketsLayerUtils;->init(Landroid/app/Application;)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/utilities/rest/RestAPI$Companion;->init(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/fcm/NotificationClient;->INSTANCE:Lcom/discord/utilities/fcm/NotificationClient;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Lcom/discord/utilities/fcm/NotificationClient;->init(Landroid/app/Application;)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/images/MGImagesConfig;->INSTANCE:Lcom/discord/utilities/images/MGImagesConfig;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Lcom/discord/utilities/images/MGImagesConfig;->init(Landroid/app/Application;)V
|
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
new-instance v1, Lcom/discord/app/App$c;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-22 06:13:42 +00:00
|
|
|
sget-object v2, Lcom/discord/app/AppLog;->uB:Lcom/discord/app/AppLog;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
invoke-direct {v1, v2}, Lcom/discord/app/App$c;-><init>(Lcom/discord/app/AppLog;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
check-cast v1, Lkotlin/jvm/functions/Function4;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
new-instance v2, Lcom/discord/app/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
invoke-direct {v2, v1}, Lcom/discord/app/a;-><init>(Lkotlin/jvm/functions/Function4;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
check-cast v2, Lrx/functions/Action4;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
sget-object v1, Lcom/discord/utilities/rest/RestAPIAbortMessages;->INSTANCE:Lcom/discord/utilities/rest/RestAPIAbortMessages;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/rest/RestAPIAbortMessages;->getMESSAGES()Ljava/util/Map;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {v2, v1}, Lcom/discord/utilities/error/Error;->init(Lrx/functions/Action4;Ljava/util/Map;)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/view/text/LinkifiedTextView;->Companion:Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
sget-object v2, Lcom/discord/app/App$d;->tM:Lcom/discord/app/App$d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
check-cast v2, Lkotlin/jvm/functions/Function2;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
const-string v1, "https://cdn.discordapp.com"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
invoke-static {v1}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
sget-object v1, Lcom/discord/utilities/surveys/SurveyUtils;->INSTANCE:Lcom/discord/utilities/surveys/SurveyUtils;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 02:12:09 +00:00
|
|
|
invoke-virtual {v1, v0}, Lcom/discord/utilities/surveys/SurveyUtils;->init(Landroid/app/Application;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-string v0, "Application initialized."
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/app/AppLog;->i(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onTrimMemory(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/app/Application;->onTrimMemory(I)V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/images/MGImagesConfig;->INSTANCE:Lcom/discord/utilities/images/MGImagesConfig;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/utilities/images/MGImagesConfig;->onTrimMemory(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|