197 lines
6.3 KiB
Smali
197 lines
6.3 KiB
Smali
.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
|
|
.field public static final e:Z
|
|
|
|
.field public static final f:Lcom/discord/app/App$a;
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Z
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
new-instance v0, Lcom/discord/app/App$a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/app/App$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/app/App;->f:Lcom/discord/app/App$a;
|
|
|
|
const-string v0, "productionDiscordExternal"
|
|
|
|
const-string v1, "local"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x2
|
|
|
|
invoke-static {v0, v1, v2, v3}, Ly/a0/u;->contains$default(Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZI)Z
|
|
|
|
move-result v0
|
|
|
|
sput-boolean v0, Lcom/discord/app/App;->e:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Landroid/app/Application;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/app/App;->d:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onCreate()V
|
|
.locals 3
|
|
|
|
invoke-super {p0}, Landroid/app/Application;->onCreate()V
|
|
|
|
sget-object v0, Lcom/discord/utilities/app/ApplicationProvider;->INSTANCE:Lcom/discord/utilities/app/ApplicationProvider;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/utilities/app/ApplicationProvider;->init(Landroid/app/Application;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/time/ClockFactory;->INSTANCE:Lcom/discord/utilities/time/ClockFactory;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/utilities/time/ClockFactory;->init(Landroid/app/Application;)V
|
|
|
|
invoke-static {p0}, Lcom/discord/app/AppLog;->a(Landroid/app/Application;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/analytics/AdjustConfig;->INSTANCE:Lcom/discord/utilities/analytics/AdjustConfig;
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/App;->b()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/discord/utilities/analytics/AdjustConfig;->init(Landroid/app/Application;Z)V
|
|
|
|
invoke-static {p0}, Lcom/miguelgaeta/backgrounded/Backgrounded;->init(Landroid/app/Application;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/persister/PersisterConfig;->INSTANCE:Lcom/discord/utilities/persister/PersisterConfig;
|
|
|
|
invoke-static {}, Lcom/discord/utilities/time/ClockFactory;->get()Lcom/discord/utilities/time/Clock;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/discord/utilities/persister/PersisterConfig;->init(Landroid/content/Context;Lcom/discord/utilities/time/Clock;)V
|
|
|
|
invoke-static {}, Lcom/miguelgaeta/backgrounded/Backgrounded;->get()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Backgrounded\n .get()"
|
|
|
|
invoke-static {v0, v1}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationBuffered(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/discord/app/App$b;->d:Lcom/discord/app/App$b;
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->c(Lrx/functions/Action1;)Lrx/Subscription;
|
|
|
|
sget-object v0, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/utilities/rest/RestAPI$Companion;->init(Landroid/content/Context;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/fcm/NotificationClient;->INSTANCE:Lcom/discord/utilities/fcm/NotificationClient;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/utilities/fcm/NotificationClient;->init(Landroid/app/Application;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/images/MGImagesConfig;->INSTANCE:Lcom/discord/utilities/images/MGImagesConfig;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/utilities/images/MGImagesConfig;->init(Landroid/app/Application;)V
|
|
|
|
new-instance v0, Lcom/discord/app/App$c;
|
|
|
|
sget-object v1, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog;
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/app/App$c;-><init>(Lcom/discord/app/AppLog;)V
|
|
|
|
new-instance v1, Le/a/b/a;
|
|
|
|
invoke-direct {v1, v0}, Le/a/b/a;-><init>(Lkotlin/jvm/functions/Function4;)V
|
|
|
|
invoke-static {v1}, Lcom/discord/utilities/error/Error;->init(Lrx/functions/Action4;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/view/text/LinkifiedTextView;->Companion:Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;
|
|
|
|
sget-object v1, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog;
|
|
|
|
sget-object v2, Lcom/discord/app/App$d;->d:Lcom/discord/app/App$d;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lcom/discord/utilities/logging/Logger;Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
|
|
|
|
const-string v0, "https://cdn.discordapp.com"
|
|
|
|
invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/surveys/SurveyUtils;->INSTANCE:Lcom/discord/utilities/surveys/SurveyUtils;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/utilities/surveys/SurveyUtils;->init(Landroid/app/Application;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-static {v0}, Landroidx/appcompat/app/AppCompatDelegate;->setDefaultNightMode(I)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/SharedPreferencesProvider;->INSTANCE:Lcom/discord/utilities/SharedPreferencesProvider;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/utilities/SharedPreferencesProvider;->init(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/App;->a()V
|
|
|
|
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
|