Changes of com.discord v835

This commit is contained in:
DisTok 2019-02-04 21:40:02 +01:00
parent dbe775932a
commit 8f4dc2c0f7
43 changed files with 456 additions and 311 deletions

View file

@ -30,11 +30,11 @@
.field public static final LOCAL_VOICE:Ljava/lang/String; = ""
.field public static final USER_AGENT:Ljava/lang/String; = "Discord-Android/834"
.field public static final USER_AGENT:Ljava/lang/String; = "Discord-Android/835"
.field public static final VERSION_CODE:I = 0x342
.field public static final VERSION_CODE:I = 0x343
.field public static final VERSION_NAME:Ljava/lang/String; = "8.3.4g"
.field public static final VERSION_NAME:Ljava/lang/String; = "8.3.5g"
# direct methods

View file

@ -28,7 +28,7 @@
invoke-direct {p0}, Lcom/discord/stores/Store;-><init>()V
const/16 v0, 0x342
const/16 v0, 0x343
iput v0, p0, Lcom/discord/stores/StoreClientVersion;->clientVersion:I

View file

@ -1,9 +1,9 @@
.class final Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;
.super Lkotlin/jvm/internal/k;
.super Ljava/lang/Object;
.source "StoreRunningGame.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
.implements Lrx/functions/Func2;
# annotations
@ -18,58 +18,63 @@
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/k;",
"Lkotlin/jvm/functions/Function1<",
"Lrx/Subscription;",
"Lkotlin/Unit;",
">;"
"<T1:",
"Ljava/lang/Object;",
"T2:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/Func2<",
"TT1;TT2;TR;>;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
# static fields
.field public static final INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;
# direct methods
.method constructor <init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;
invoke-direct {v0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;-><init>()V
sput-object v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;->INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;
return-void
.end method
.method constructor <init>()V
.locals 0
iput-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/k;-><init>(I)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.method public final call(Ljava/lang/Long;Ljava/lang/Boolean;)Ljava/lang/Boolean;
.locals 0
check-cast p1, Lrx/Subscription;
return-object p2
.end method
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;->invoke(Lrx/Subscription;)V
.method public final bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
sget-object p1, Lkotlin/Unit;->bbC:Lkotlin/Unit;
check-cast p1, Ljava/lang/Long;
check-cast p2, Ljava/lang/Boolean;
invoke-virtual {p0, p1, p2}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;->call(Ljava/lang/Long;Ljava/lang/Boolean;)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.end method
.method public final invoke(Lrx/Subscription;)V
.locals 1
const-string v0, "it"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object v0, v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {v0, p1}, Lcom/discord/stores/StoreRunningGame;->access$setRunningGameHeartbeatSub$p(Lcom/discord/stores/StoreRunningGame;Lrx/Subscription;)V
return-void
.end method

View file

@ -20,7 +20,7 @@
value = {
"Lkotlin/jvm/internal/k;",
"Lkotlin/jvm/functions/Function1<",
"Ljava/lang/Long;",
"Lrx/Subscription;",
"Lkotlin/Unit;",
">;"
}
@ -49,31 +49,27 @@
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Ljava/lang/Long;
check-cast p1, Lrx/Subscription;
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;->invoke(Ljava/lang/Long;)V
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;->invoke(Lrx/Subscription;)V
sget-object p1, Lkotlin/Unit;->bbC:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Ljava/lang/Long;)V
.method public final invoke(Lrx/Subscription;)V
.locals 1
iget-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
const-string v0, "it"
iget-object p1, p1, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object v0, v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {v0}, Lcom/discord/stores/StoreRunningGame;->access$getRunningGame$p(Lcom/discord/stores/StoreRunningGame;)Lcom/discord/stores/StoreRunningGame$RunningGame;
move-result-object v0
invoke-static {p1, v0}, Lcom/discord/stores/StoreRunningGame;->access$updatePresence(Lcom/discord/stores/StoreRunningGame;Lcom/discord/stores/StoreRunningGame$RunningGame;)V
invoke-static {v0, p1}, Lcom/discord/stores/StoreRunningGame;->access$setRunningGameHeartbeatSub$p(Lcom/discord/stores/StoreRunningGame;Lrx/Subscription;)V
return-void
.end method

View file

@ -1,9 +1,9 @@
.class final Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;
.super Ljava/lang/Object;
.super Lkotlin/jvm/internal/k;
.source "StoreRunningGame.kt"
# interfaces
.implements Lrx/functions/Func3;
.implements Lkotlin/jvm/functions/Function1;
# annotations
@ -18,130 +18,73 @@
.annotation system Ldalvik/annotation/Signature;
value = {
"<T1:",
"Ljava/lang/Object;",
"T2:",
"Ljava/lang/Object;",
"T3:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/Func3<",
"TT1;TT2;TT3;TR;>;"
"Lkotlin/jvm/internal/k;",
"Lkotlin/jvm/functions/Function1<",
"Ljava/lang/Boolean;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# static fields
.field public static final INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;
# instance fields
.field final synthetic this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;
invoke-direct {v0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;-><init>()V
sput-object v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;->INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;
return-void
.end method
.method constructor <init>()V
.method constructor <init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public final bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Ljava/lang/Boolean;
check-cast p2, Lcom/discord/models/domain/ModelExperiment$Assignments;
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;->invoke(Ljava/lang/Boolean;)V
check-cast p3, Ljava/lang/Boolean;
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;->call(Ljava/lang/Boolean;Lcom/discord/models/domain/ModelExperiment$Assignments;Ljava/lang/Boolean;)Lkotlin/Pair;
move-result-object p1
sget-object p1, Lkotlin/Unit;->bbC:Lkotlin/Unit;
return-object p1
.end method
.method public final call(Ljava/lang/Boolean;Lcom/discord/models/domain/ModelExperiment$Assignments;Ljava/lang/Boolean;)Lkotlin/Pair;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Boolean;",
"Lcom/discord/models/domain/ModelExperiment$Assignments;",
"Ljava/lang/Boolean;",
")",
"Lkotlin/Pair<",
"Ljava/lang/Boolean;",
"Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;",
">;"
}
.end annotation
.method public final invoke(Ljava/lang/Boolean;)V
.locals 1
new-instance v0, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;
const-string v0, "allowGameStatus"
const-string v1, "isAlphaOrStaff"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p3, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
invoke-virtual {p3}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
move-result p3
if-eqz p1, :cond_0
const-string v1, "experiments"
iget-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
invoke-static {p2, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p1, p1, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-virtual {p2}, Lcom/discord/models/domain/ModelExperiment$Assignments;->getAssignments()Lcom/discord/models/domain/ModelExperiment$Experiments;
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
move-result-object p2
iget-object v0, v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
const-string v1, "experiments.assignments"
invoke-static {v0}, Lcom/discord/stores/StoreRunningGame;->access$getRunningGame$p(Lcom/discord/stores/StoreRunningGame;)Lcom/discord/stores/StoreRunningGame$RunningGame;
invoke-static {p2, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
move-result-object v0
invoke-virtual {p2}, Lcom/discord/models/domain/ModelExperiment$Experiments;->getExperiments()Ljava/util/Map;
invoke-static {p1, v0}, Lcom/discord/stores/StoreRunningGame;->access$updatePresence(Lcom/discord/stores/StoreRunningGame;Lcom/discord/stores/StoreRunningGame$RunningGame;)V
move-result-object p2
const-string v1, "2018-11_android_game_detection"
check-cast v1, Ljava/lang/CharSequence;
invoke-static {v1}, Lcom/discord/models/domain/ModelExperiment;->createExperimentHash(Ljava/lang/CharSequence;)J
move-result-wide v1
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
invoke-interface {p2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/discord/models/domain/ModelExperiment;
invoke-direct {v0, p3, p2}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;-><init>(ZLcom/discord/models/domain/ModelExperiment;)V
invoke-static {p1, v0}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
move-result-object p1
return-object p1
:cond_0
return-void
.end method

View file

@ -1,9 +1,9 @@
.class final Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;
.super Lkotlin/jvm/internal/k;
.super Ljava/lang/Object;
.source "StoreRunningGame.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
.implements Lrx/functions/Func3;
# annotations
@ -18,176 +18,130 @@
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/k;",
"Lkotlin/jvm/functions/Function1<",
"Lkotlin/Pair<",
"+",
"Ljava/lang/Boolean;",
"+",
"Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;",
">;",
"Lkotlin/Unit;",
">;"
"<T1:",
"Ljava/lang/Object;",
"T2:",
"Ljava/lang/Object;",
"T3:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/Func3<",
"TT1;TT2;TT3;TR;>;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
# static fields
.field public static final INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;
# direct methods
.method constructor <init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;
invoke-direct {v0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;-><init>()V
sput-object v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;
return-void
.end method
.method constructor <init>()V
.locals 0
iput-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/k;-><init>(I)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.method public final bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Lkotlin/Pair;
check-cast p1, Ljava/lang/Boolean;
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->invoke(Lkotlin/Pair;)V
check-cast p2, Lcom/discord/models/domain/ModelExperiment$Assignments;
sget-object p1, Lkotlin/Unit;->bbC:Lkotlin/Unit;
check-cast p3, Ljava/lang/Boolean;
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->call(Ljava/lang/Boolean;Lcom/discord/models/domain/ModelExperiment$Assignments;Ljava/lang/Boolean;)Lkotlin/Pair;
move-result-object p1
return-object p1
.end method
.method public final invoke(Lkotlin/Pair;)V
.method public final call(Ljava/lang/Boolean;Lcom/discord/models/domain/ModelExperiment$Assignments;Ljava/lang/Boolean;)Lkotlin/Pair;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Boolean;",
"Lcom/discord/models/domain/ModelExperiment$Assignments;",
"Ljava/lang/Boolean;",
")",
"Lkotlin/Pair<",
"Ljava/lang/Boolean;",
"Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;",
">;)V"
">;"
}
.end annotation
iget-object v0, p1, Lkotlin/Pair;->first:Ljava/lang/Object;
new-instance v0, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;
check-cast v0, Ljava/lang/Boolean;
const-string v1, "isAlphaOrStaff"
iget-object p1, p1, Lkotlin/Pair;->second:Ljava/lang/Object;
invoke-static {p3, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;
invoke-virtual {p3}, Ljava/lang/Boolean;->booleanValue()Z
const/4 v1, 0x1
move-result p3
invoke-virtual {p1, v1}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;->isEnabled(I)Z
const-string v1, "experiments"
move-result v2
invoke-static {p2, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
if-eqz v2, :cond_1
invoke-virtual {p2}, Lcom/discord/models/domain/ModelExperiment$Assignments;->getAssignments()Lcom/discord/models/domain/ModelExperiment$Experiments;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result-object p2
move-result p1
const-string v1, "experiments.assignments"
if-nez p1, :cond_0
invoke-static {p2, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
return-void
invoke-virtual {p2}, Lcom/discord/models/domain/ModelExperiment$Experiments;->getExperiments()Ljava/util/Map;
:cond_0
iget-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
move-result-object p2
iget-object p1, p1, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
const-string v1, "2018-11_android_game_detection"
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
check-cast v1, Ljava/lang/CharSequence;
iget-object v0, v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {v1}, Lcom/discord/models/domain/ModelExperiment;->createExperimentHash(Ljava/lang/CharSequence;)J
invoke-static {v0}, Lcom/discord/stores/StoreRunningGame;->access$getRunningGame$p(Lcom/discord/stores/StoreRunningGame;)Lcom/discord/stores/StoreRunningGame$RunningGame;
move-result-wide v1
move-result-object v0
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
invoke-static {p1, v0}, Lcom/discord/stores/StoreRunningGame;->access$updatePresence(Lcom/discord/stores/StoreRunningGame;Lcom/discord/stores/StoreRunningGame$RunningGame;)V
move-result-object v1
return-void
invoke-interface {p2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
:cond_1
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;->getExperiment()Lcom/discord/models/domain/ModelExperiment;
move-result-object p2
move-result-object v0
check-cast p2, Lcom/discord/models/domain/ModelExperiment;
if-eqz v0, :cond_4
invoke-direct {v0, p3, p2}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;-><init>(ZLcom/discord/models/domain/ModelExperiment;)V
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;->getExperiment()Lcom/discord/models/domain/ModelExperiment;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/models/domain/ModelExperiment;->getBucket()I
move-result v0
const/4 v2, -0x1
if-ne v0, v2, :cond_2
goto :goto_0
:cond_2
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;->getExperiment()Lcom/discord/models/domain/ModelExperiment;
invoke-static {p1, v0}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
move-result-object p1
invoke-virtual {p1}, Lcom/discord/models/domain/ModelExperiment;->getBucket()I
move-result p1
if-nez p1, :cond_3
iget-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object p1, p1, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-virtual {p1}, Lcom/discord/stores/StoreRunningGame;->getPrefs()Landroid/content/SharedPreferences;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p1
const-string v0, "CACHE_KEY_GAME_DETECTION_FORCE_STOPPED"
invoke-interface {p1, v0, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
sget-object p1, Lcom/discord/utilities/games/GameDetectionService;->Companion:Lcom/discord/utilities/games/GameDetectionService$Companion;
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object v0, v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$context:Landroid/content/Context;
invoke-virtual {p1, v0}, Lcom/discord/utilities/games/GameDetectionService$Companion;->stop(Landroid/content/Context;)V
:cond_3
return-void
:cond_4
:goto_0
sget-object p1, Lcom/discord/utilities/games/GameDetectionService;->Companion:Lcom/discord/utilities/games/GameDetectionService$Companion;
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object v0, v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$context:Landroid/content/Context;
invoke-virtual {p1, v0}, Lcom/discord/utilities/games/GameDetectionService$Companion;->stop(Landroid/content/Context;)V
return-void
return-object p1
.end method

View file

@ -0,0 +1,193 @@
.class final Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;
.super Lkotlin/jvm/internal/k;
.source "StoreRunningGame.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->call()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/k;",
"Lkotlin/jvm/functions/Function1<",
"Lkotlin/Pair<",
"+",
"Ljava/lang/Boolean;",
"+",
"Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;",
">;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
# direct methods
.method constructor <init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
.locals 0
iput-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Lkotlin/Pair;
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;->invoke(Lkotlin/Pair;)V
sget-object p1, Lkotlin/Unit;->bbC:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Lkotlin/Pair;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/Pair<",
"Ljava/lang/Boolean;",
"Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;",
">;)V"
}
.end annotation
iget-object v0, p1, Lkotlin/Pair;->first:Ljava/lang/Object;
check-cast v0, Ljava/lang/Boolean;
iget-object p1, p1, Lkotlin/Pair;->second:Ljava/lang/Object;
check-cast p1, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;
const/4 v1, 0x1
invoke-virtual {p1, v1}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;->isEnabled(I)Z
move-result v2
if-eqz v2, :cond_1
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
if-nez p1, :cond_0
return-void
:cond_0
iget-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object p1, p1, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object v0, v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {v0}, Lcom/discord/stores/StoreRunningGame;->access$getRunningGame$p(Lcom/discord/stores/StoreRunningGame;)Lcom/discord/stores/StoreRunningGame$RunningGame;
move-result-object v0
invoke-static {p1, v0}, Lcom/discord/stores/StoreRunningGame;->access$updatePresence(Lcom/discord/stores/StoreRunningGame;Lcom/discord/stores/StoreRunningGame$RunningGame;)V
return-void
:cond_1
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;->getExperiment()Lcom/discord/models/domain/ModelExperiment;
move-result-object v0
if-eqz v0, :cond_4
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;->getExperiment()Lcom/discord/models/domain/ModelExperiment;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/models/domain/ModelExperiment;->getBucket()I
move-result v0
const/4 v2, -0x1
if-ne v0, v2, :cond_2
goto :goto_0
:cond_2
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$ExperimentAndStaff;->getExperiment()Lcom/discord/models/domain/ModelExperiment;
move-result-object p1
invoke-virtual {p1}, Lcom/discord/models/domain/ModelExperiment;->getBucket()I
move-result p1
if-nez p1, :cond_3
iget-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object p1, p1, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-virtual {p1}, Lcom/discord/stores/StoreRunningGame;->getPrefs()Landroid/content/SharedPreferences;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p1
const-string v0, "CACHE_KEY_GAME_DETECTION_FORCE_STOPPED"
invoke-interface {p1, v0, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
sget-object p1, Lcom/discord/utilities/games/GameDetectionService;->Companion:Lcom/discord/utilities/games/GameDetectionService$Companion;
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object v0, v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$context:Landroid/content/Context;
invoke-virtual {p1, v0}, Lcom/discord/utilities/games/GameDetectionService$Companion;->stop(Landroid/content/Context;)V
:cond_3
return-void
:cond_4
:goto_0
sget-object p1, Lcom/discord/utilities/games/GameDetectionService;->Companion:Lcom/discord/utilities/games/GameDetectionService$Companion;
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;->this$0:Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
iget-object v0, v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$context:Landroid/content/Context;
invoke-virtual {p1, v0}, Lcom/discord/utilities/games/GameDetectionService$Companion;->stop(Landroid/content/Context;)V
return-void
.end method

View file

@ -127,13 +127,37 @@
move-result-object v1
iget-object v1, v1, Lcom/discord/stores/StoreStream;->userSettings:Lcom/discord/stores/StoreUserSettings;
const-string v2, "stream\n .userSettings"
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Lcom/discord/stores/StoreUserSettings;->getAllowGameStatus()Lrx/Observable;
move-result-object v1
sget-object v2, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;->INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;
check-cast v2, Lrx/functions/Func2;
invoke-static {v0, v1, v2}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
move-result-object v0
iget-object v1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-virtual {v1}, Lcom/discord/stores/StoreRunningGame;->getStream()Lcom/discord/stores/StoreStream;
move-result-object v1
iget-object v1, v1, Lcom/discord/stores/StoreStream;->scheduler:Lrx/Scheduler;
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Scheduler;)Lrx/Observable;
move-result-object v2
const-string v0, "Observable\n .\u2026serveOn(stream.scheduler)"
const-string v0, "Observable.combineLatest\u2026serveOn(stream.scheduler)"
invoke-static {v2, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
@ -145,9 +169,9 @@
const/4 v4, 0x0
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;
invoke-direct {v0, p0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;-><init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
invoke-direct {v0, p0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;-><init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
move-object v5, v0
@ -157,9 +181,9 @@
const/4 v7, 0x0
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;
invoke-direct {v0, p0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;-><init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
invoke-direct {v0, p0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;-><init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
move-object v8, v0
@ -231,7 +255,7 @@
move-result-object v2
sget-object v3, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;->INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;
sget-object v3, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;
check-cast v3, Lrx/functions/Func3;
@ -257,9 +281,9 @@
const/4 v9, 0x0
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;
invoke-direct {v0, p0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;-><init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
invoke-direct {v0, p0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;-><init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
move-object v10, v0

View file

@ -208,26 +208,54 @@
.end method
.method private final isGameDetectionForceStopped()Z
.locals 3
.locals 7
const/4 v0, 0x0
:try_start_0
invoke-virtual {p0}, Lcom/discord/stores/StoreRunningGame;->getPrefs()Landroid/content/SharedPreferences;
move-result-object v0
move-result-object v1
const-string v1, "CACHE_KEY_GAME_DETECTION_FORCE_STOPPED"
const-string v2, "CACHE_KEY_GAME_DETECTION_FORCE_STOPPED"
const/4 v2, 0x0
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
sget-object v1, Lcom/discord/app/AppLog;->tg:Lcom/discord/app/AppLog;
const-string v2, "StoreRunningGame prefs not init"
new-instance v3, Ljava/lang/Exception;
const-string v4, "Get isGameDetectionForceStopped"
invoke-direct {v3, v4}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
check-cast v3, Ljava/lang/Throwable;
const/4 v4, 0x0
const/4 v5, 0x4
const/4 v6, 0x0
invoke-static/range {v1 .. v6}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
:goto_0
return v0
.end method
.method private final setGameDetectionForceStopped(Z)V
.locals 2
.locals 6
:try_start_0
invoke-virtual {p0}, Lcom/discord/stores/StoreRunningGame;->getPrefs()Landroid/content/SharedPreferences;
move-result-object v0
@ -243,6 +271,33 @@
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
sget-object v0, Lcom/discord/app/AppLog;->tg:Lcom/discord/app/AppLog;
const-string v1, "StoreRunningGame prefs not init"
new-instance p1, Ljava/lang/Exception;
const-string v2, "Set isGameDetectionForceStopped"
invoke-direct {p1, v2}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
move-object v2, p1
check-cast v2, Ljava/lang/Throwable;
const/4 v3, 0x0
const/4 v4, 0x4
const/4 v5, 0x0
invoke-static/range {v0 .. v5}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
return-void
.end method

View file

@ -194,7 +194,7 @@
const-string v1, "browser_user_agent"
const-string v2, "Discord-Android/834"
const-string v2, "Discord-Android/835"
invoke-static {v1, v2}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
@ -206,7 +206,7 @@
const-string v1, "client_build_number"
const/16 v2, 0x342
const/16 v2, 0x343
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
@ -222,7 +222,7 @@
const-string v1, "client_version"
const-string v2, "8.3.4g"
const-string v2, "8.3.5g"
invoke-static {v1, v2}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;

View file

@ -167,7 +167,7 @@
.method public final getUserAgent()Ljava/lang/String;
.locals 1
const-string v0, "Discord-Android/834"
const-string v0, "Discord-Android/835"
return-object v0
.end method

View file

@ -512,7 +512,7 @@
new-array v2, v0, [Ljava/lang/Object;
const-string v4, "8.3.4g"
const-string v4, "8.3.5g"
aput-object v4, v2, v3

View file

@ -1282,7 +1282,7 @@
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, " - 8.3.4g (834)"
const-string v0, " - 8.3.5g (835)"
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;