Changes of com.discord v1254

This commit is contained in:
root 2020-09-09 01:19:33 +00:00
parent a8e33df4fc
commit f9a1079ca0
71 changed files with 1305 additions and 511 deletions

View file

@ -42,11 +42,11 @@
.field public static final SAMSUNGxDISCORD_CLIENT_ID:Ljava/lang/String; = "97t47j218f"
.field public static final USER_AGENT:Ljava/lang/String; = "Discord-Android/1253"
.field public static final USER_AGENT:Ljava/lang/String; = "Discord-Android/1254"
.field public static final VERSION_CODE:I = 0x4e5
.field public static final VERSION_CODE:I = 0x4e6
.field public static final VERSION_NAME:Ljava/lang/String; = "38.2"
.field public static final VERSION_NAME:Ljava/lang/String; = "38.3"
# direct methods

View file

@ -209,7 +209,7 @@
goto :goto_1
:sswitch_3
const-string v1, "webhooks"
const-string/jumbo v1, "webhooks"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
@ -291,6 +291,8 @@
:goto_2
return-void
nop
:sswitch_data_0
.sparse-switch
-0x2a562724 -> :sswitch_3

View file

@ -1801,7 +1801,7 @@
goto/16 :goto_1
:sswitch_2
const-string v1, "welcome_screen"
const-string/jumbo v1, "welcome_screen"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
@ -2673,6 +2673,8 @@
:goto_2
return-void
nop
:sswitch_data_0
.sparse-switch
-0x748e1453 -> :sswitch_23

View file

@ -87,7 +87,7 @@
goto :goto_0
:cond_1
const-string v0, "welcome_channels"
const-string/jumbo v0, "welcome_channels"
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

View file

@ -1607,7 +1607,7 @@
goto/16 :goto_1
:sswitch_4
const-string v1, "webhook_id"
const-string/jumbo v1, "webhook_id"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
@ -2218,8 +2218,6 @@
:goto_2
return-void
nop
:sswitch_data_0
.sparse-switch
-0x7f5b87d8 -> :sswitch_19

View file

@ -76,7 +76,7 @@
throw v0
:cond_1
const-string p1, "webStatus"
const-string/jumbo p1, "webStatus"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
@ -172,7 +172,7 @@
throw v0
:cond_1
const-string p1, "webStatus"
const-string/jumbo p1, "webStatus"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V

View file

@ -300,7 +300,7 @@
goto :goto_0
:cond_0
const-string p0, "webp"
const-string/jumbo p0, "webp"
:goto_0
const/4 p1, 0x1

View file

@ -0,0 +1,303 @@
.class public final Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
.super Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;
.source "SlowTtiExperimentManager.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "UserInExperiment"
.end annotation
# instance fields
.field public final bucket:I
.field public final delayMs:J
.field public final population:I
.field public final revision:I
# direct methods
.method public constructor <init>(JIII)V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, v0}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
iput-wide p1, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->delayMs:J
iput p3, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->bucket:I
iput p4, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->population:I
iput p5, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->revision:I
return-void
.end method
.method public static synthetic copy$default(Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;JIIIILjava/lang/Object;)Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
.locals 6
and-int/lit8 p7, p6, 0x1
if-eqz p7, :cond_0
iget-wide p1, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->delayMs:J
:cond_0
move-wide v1, p1
and-int/lit8 p1, p6, 0x2
if-eqz p1, :cond_1
iget p3, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->bucket:I
:cond_1
move v3, p3
and-int/lit8 p1, p6, 0x4
if-eqz p1, :cond_2
iget p4, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->population:I
:cond_2
move v4, p4
and-int/lit8 p1, p6, 0x8
if-eqz p1, :cond_3
iget p5, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->revision:I
:cond_3
move v5, p5
move-object v0, p0
invoke-virtual/range {v0 .. v5}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->copy(JIII)Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final component1()J
.locals 2
iget-wide v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->delayMs:J
return-wide v0
.end method
.method public final component2()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->bucket:I
return v0
.end method
.method public final component3()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->population:I
return v0
.end method
.method public final component4()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->revision:I
return v0
.end method
.method public final copy(JIII)Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
.locals 7
new-instance v6, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
move-object v0, v6
move-wide v1, p1
move v3, p3
move v4, p4
move v5, p5
invoke-direct/range {v0 .. v5}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;-><init>(JIII)V
return-object v6
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 5
if-eq p0, p1, :cond_1
instance-of v0, p1, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
if-eqz v0, :cond_0
check-cast p1, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
iget-wide v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->delayMs:J
iget-wide v2, p1, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->delayMs:J
cmp-long v4, v0, v2
if-nez v4, :cond_0
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->bucket:I
iget v1, p1, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->bucket:I
if-ne v0, v1, :cond_0
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->population:I
iget v1, p1, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->population:I
if-ne v0, v1, :cond_0
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->revision:I
iget p1, p1, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->revision:I
if-ne v0, p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
return p1
:cond_1
:goto_0
const/4 p1, 0x1
return p1
.end method
.method public final getBucket()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->bucket:I
return v0
.end method
.method public final getDelayMs()J
.locals 2
iget-wide v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->delayMs:J
return-wide v0
.end method
.method public final getPopulation()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->population:I
return v0
.end method
.method public final getRevision()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->revision:I
return v0
.end method
.method public hashCode()I
.locals 2
iget-wide v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->delayMs:J
invoke-static {v0, v1}, Ld;->a(J)I
move-result v0
mul-int/lit8 v0, v0, 0x1f
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->bucket:I
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->population:I
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->revision:I
add-int/2addr v0, v1
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 3
const-string v0, "UserInExperiment(delayMs="
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->delayMs:J
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v1, ", bucket="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->bucket:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", population="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->population:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", revision="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->revision:I
const-string v2, ")"
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->s(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View file

@ -0,0 +1,42 @@
.class public final Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;
.super Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;
.source "SlowTtiExperimentManager.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "UserNotInExperiment"
.end annotation
# static fields
.field public static final INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;
invoke-direct {v0}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;-><init>()V
sput-object v0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;->INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, v0}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method

View file

@ -0,0 +1,39 @@
.class public abstract Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;
.super Ljava/lang/Object;
.source "SlowTtiExperimentManager.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/stores/SlowTtiExperimentManager;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x409
name = "ExperimentStatus"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;,
Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;-><init>()V
return-void
.end method

View file

@ -0,0 +1,228 @@
.class public final Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
.super Ljava/lang/Object;
.source "SlowTtiExperimentManager.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/stores/SlowTtiExperimentManager;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "TtiExperiment"
.end annotation
# instance fields
.field public final bucket:I
.field public final population:I
.field public final revision:I
# direct methods
.method public constructor <init>(III)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->bucket:I
iput p2, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->population:I
iput p3, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->revision:I
return-void
.end method
.method public static synthetic copy$default(Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;IIIILjava/lang/Object;)Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
.locals 0
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
iget p1, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->bucket:I
:cond_0
and-int/lit8 p5, p4, 0x2
if-eqz p5, :cond_1
iget p2, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->population:I
:cond_1
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_2
iget p3, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->revision:I
:cond_2
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->copy(III)Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final component1()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->bucket:I
return v0
.end method
.method public final component2()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->population:I
return v0
.end method
.method public final component3()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->revision:I
return v0
.end method
.method public final copy(III)Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
.locals 1
new-instance v0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
invoke-direct {v0, p1, p2, p3}, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;-><init>(III)V
return-object v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 2
if-eq p0, p1, :cond_1
instance-of v0, p1, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
if-eqz v0, :cond_0
check-cast p1, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->bucket:I
iget v1, p1, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->bucket:I
if-ne v0, v1, :cond_0
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->population:I
iget v1, p1, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->population:I
if-ne v0, v1, :cond_0
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->revision:I
iget p1, p1, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->revision:I
if-ne v0, p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
return p1
:cond_1
:goto_0
const/4 p1, 0x1
return p1
.end method
.method public final getBucket()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->bucket:I
return v0
.end method
.method public final getPopulation()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->population:I
return v0
.end method
.method public final getRevision()I
.locals 1
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->revision:I
return v0
.end method
.method public hashCode()I
.locals 2
iget v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->bucket:I
mul-int/lit8 v0, v0, 0x1f
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->population:I
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->revision:I
add-int/2addr v0, v1
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 3
const-string v0, "TtiExperiment(bucket="
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->bucket:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", population="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->population:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", revision="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->revision:I
const-string v2, ")"
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->s(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View file

@ -1,9 +1,9 @@
.class public final Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;
.super Lk0/n/c/i;
.super Ljava/lang/Object;
.source "SlowTtiExperimentManager.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
.implements Lrx/functions/Action1;
# annotations
@ -18,69 +18,54 @@
.annotation system Ldalvik/annotation/Signature;
value = {
"Lk0/n/c/i;",
"Lkotlin/jvm/functions/Function1<",
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/Action1<",
"Lcom/discord/stores/StoreExperiments$Experiment;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# static fields
.field public static final INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;
# instance fields
.field public final synthetic this$0:Lcom/discord/stores/SlowTtiExperimentManager;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.method public constructor <init>(Lcom/discord/stores/SlowTtiExperimentManager;)V
.locals 0
new-instance v0, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;
iput-object p1, p0, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;->this$0:Lcom/discord/stores/SlowTtiExperimentManager;
invoke-direct {v0}, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;-><init>()V
sput-object v0, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;->INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Lk0/n/c/i;-><init>(I)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.method public final call(Lcom/discord/stores/StoreExperiments$Experiment;)V
.locals 2
iget-object v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;->this$0:Lcom/discord/stores/SlowTtiExperimentManager;
const-string v1, "experiment"
invoke-static {p1, v1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0, p1}, Lcom/discord/stores/SlowTtiExperimentManager;->access$writeExperimentToCache(Lcom/discord/stores/SlowTtiExperimentManager;Lcom/discord/stores/StoreExperiments$Experiment;)V
return-void
.end method
.method public bridge synthetic call(Ljava/lang/Object;)V
.locals 0
check-cast p1, Lcom/discord/stores/StoreExperiments$Experiment;
invoke-virtual {p0, p1}, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;->invoke(Lcom/discord/stores/StoreExperiments$Experiment;)V
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Lcom/discord/stores/StoreExperiments$Experiment;)V
.locals 0
if-eqz p1, :cond_0
invoke-virtual {p0, p1}, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;->call(Lcom/discord/stores/StoreExperiments$Experiment;)V
return-void
:cond_0
const-string p1, "it"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method

View file

@ -0,0 +1,75 @@
.class public final Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$2;
.super Lk0/n/c/i;
.source "SlowTtiExperimentManager.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/SlowTtiExperimentManager;->fetchExperiment(Lcom/discord/stores/StoreExperiments;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lk0/n/c/i;",
"Lkotlin/jvm/functions/Function1<",
"Lcom/discord/stores/StoreExperiments$Experiment;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# static fields
.field public static final INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$2;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$2;
invoke-direct {v0}, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$2;-><init>()V
sput-object v0, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$2;->INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$2;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Lk0/n/c/i;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Lcom/discord/stores/StoreExperiments$Experiment;
invoke-virtual {p0, p1}, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$2;->invoke(Lcom/discord/stores/StoreExperiments$Experiment;)V
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Lcom/discord/stores/StoreExperiments$Experiment;)V
.locals 0
return-void
.end method

View file

@ -1,96 +0,0 @@
.class public final Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$1;
.super Ljava/lang/Object;
.source "SlowTtiExperimentManager.kt"
# interfaces
.implements Ls0/k/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/SlowTtiExperimentManager;->observeExperiment(Lcom/discord/stores/StoreExperiments;)Lrx/Observable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ls0/k/b<",
"Lcom/discord/stores/StoreExperiments$Experiment;",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
# static fields
.field public static final INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$1;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$1;
invoke-direct {v0}, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$1;-><init>()V
sput-object v0, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$1;->INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$1;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Lcom/discord/stores/StoreExperiments$Experiment;
invoke-virtual {p0, p1}, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$1;->call(Lcom/discord/stores/StoreExperiments$Experiment;)Z
move-result p1
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.end method
.method public final call(Lcom/discord/stores/StoreExperiments$Experiment;)Z
.locals 0
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$Experiment;->getRawExperiment()Lcom/discord/models/domain/ModelExperiment;
move-result-object p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method

View file

@ -1,71 +0,0 @@
.class public final Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$2;
.super Ljava/lang/Object;
.source "SlowTtiExperimentManager.kt"
# interfaces
.implements Lrx/functions/Action1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/SlowTtiExperimentManager;->observeExperiment(Lcom/discord/stores/StoreExperiments;)Lrx/Observable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/Action1<",
"Lcom/discord/stores/StoreExperiments$Experiment;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/discord/stores/SlowTtiExperimentManager;
# direct methods
.method public constructor <init>(Lcom/discord/stores/SlowTtiExperimentManager;)V
.locals 0
iput-object p1, p0, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$2;->this$0:Lcom/discord/stores/SlowTtiExperimentManager;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final call(Lcom/discord/stores/StoreExperiments$Experiment;)V
.locals 2
iget-object v0, p0, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$2;->this$0:Lcom/discord/stores/SlowTtiExperimentManager;
const-string v1, "experiment"
invoke-static {p1, v1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0, p1}, Lcom/discord/stores/SlowTtiExperimentManager;->access$writeExperimentToCache(Lcom/discord/stores/SlowTtiExperimentManager;Lcom/discord/stores/StoreExperiments$Experiment;)V
return-void
.end method
.method public bridge synthetic call(Ljava/lang/Object;)V
.locals 0
check-cast p1, Lcom/discord/stores/StoreExperiments$Experiment;
invoke-virtual {p0, p1}, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$2;->call(Lcom/discord/stores/StoreExperiments$Experiment;)V
return-void
.end method

View file

@ -6,6 +6,8 @@
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;,
Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;,
Lcom/discord/stores/SlowTtiExperimentManager$Companion;
}
.end annotation
@ -18,10 +20,10 @@
# instance fields
.field public experimentBucket:I
.field public final sharedPreferences:Landroid/content/SharedPreferences;
.field public ttiExperiment:Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
# direct methods
.method public static constructor <clinit>()V
@ -59,16 +61,37 @@
iput-object v0, p0, Lcom/discord/stores/SlowTtiExperimentManager;->sharedPreferences:Landroid/content/SharedPreferences;
const-string v1, "SLOW_TTI_EXPERIMENT"
const-string v1, "SLOW_TTI_EXPERIMENT_V2"
const/4 v2, 0x0
invoke-static {v0, v1}, Lcom/discord/utilities/cache/SharedPreferenceExtensionsKt;->getString(Landroid/content/SharedPreferences;Ljava/lang/String;)Ljava/lang/String;
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
move-result-object v0
move-result v0
if-eqz v0, :cond_0
iput v0, p0, Lcom/discord/stores/SlowTtiExperimentManager;->experimentBucket:I
new-instance v1, Lcom/google/gson/Gson;
invoke-direct {v1}, Lcom/google/gson/Gson;-><init>()V
const-class v2, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
invoke-virtual {v1, v0, v2}, Lcom/google/gson/Gson;->f(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object v0
invoke-static {v2}, Lf/h/a/c/i1/e;->B1(Ljava/lang/Class;)Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1, v0}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
iput-object v0, p0, Lcom/discord/stores/SlowTtiExperimentManager;->ttiExperiment:Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
:cond_0
return-void
.end method
@ -88,62 +111,14 @@
return-void
.end method
.method private final observeExperiment(Lcom/discord/stores/StoreExperiments;)Lrx/Observable;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/stores/StoreExperiments;",
")",
"Lrx/Observable<",
"Lcom/discord/stores/StoreExperiments$Experiment;",
">;"
}
.end annotation
const-string v0, "2020-08_android_tti_delay"
const/4 v1, 0x0
const/4 v2, 0x2
invoke-static {p1, v0, v1, v2, v1}, Lcom/discord/stores/StoreExperiments;->getExperiment$default(Lcom/discord/stores/StoreExperiments;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lrx/Observable;
move-result-object p1
sget-object v0, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$1;->INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$1;
invoke-virtual {p1, v0}, Lrx/Observable;->w(Ls0/k/b;)Lrx/Observable;
move-result-object p1
const/4 v0, 0x1
invoke-virtual {p1, v0}, Lrx/Observable;->V(I)Lrx/Observable;
move-result-object p1
new-instance v0, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$2;
invoke-direct {v0, p0}, Lcom/discord/stores/SlowTtiExperimentManager$observeExperiment$2;-><init>(Lcom/discord/stores/SlowTtiExperimentManager;)V
invoke-virtual {p1, v0}, Lrx/Observable;->t(Lrx/functions/Action1;)Lrx/Observable;
move-result-object p1
const-string v0, "storeExperiments.getExpe\u2026che(experiment)\n }"
invoke-static {p1, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object p1
return-object p1
.end method
.method private final writeExperimentToCache(Lcom/discord/stores/StoreExperiments$Experiment;)V
.locals 2
.locals 5
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$Experiment;->getRawExperiment()Lcom/discord/models/domain/ModelExperiment;
move-result-object p1
if-eqz p1, :cond_0
iget-object v0, p0, Lcom/discord/stores/SlowTtiExperimentManager;->sharedPreferences:Landroid/content/SharedPreferences;
@ -151,35 +126,92 @@
move-result-object v0
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$Experiment;->getBucket()I
new-instance v1, Lcom/google/gson/Gson;
invoke-direct {v1}, Lcom/google/gson/Gson;-><init>()V
new-instance v2, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
invoke-virtual {p1}, Lcom/discord/models/domain/ModelExperiment;->getBucket()I
move-result v3
invoke-virtual {p1}, Lcom/discord/models/domain/ModelExperiment;->getPopulation()I
move-result v4
invoke-virtual {p1}, Lcom/discord/models/domain/ModelExperiment;->getRevision()I
move-result p1
const-string v1, "SLOW_TTI_EXPERIMENT"
invoke-direct {v2, v3, v4, p1}, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;-><init>(III)V
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
invoke-virtual {v1, v2}, Lcom/google/gson/Gson;->k(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string v1, "SLOW_TTI_EXPERIMENT_V2"
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
:cond_0
return-void
.end method
# virtual methods
.method public final fetchExperiment(Lcom/discord/stores/StoreExperiments;)V
.locals 9
.locals 10
if-eqz p1, :cond_0
invoke-direct {p0, p1}, Lcom/discord/stores/SlowTtiExperimentManager;->observeExperiment(Lcom/discord/stores/StoreExperiments;)Lrx/Observable;
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments;->observeTtiExperimentNoTrigger()Lrx/Observable;
move-result-object v0
move-result-object p1
const-class v1, Lcom/discord/stores/SlowTtiExperimentManager;
sget-object v0, Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$1;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$1;
const/4 v2, 0x0
invoke-virtual {p1, v0}, Lrx/Observable;->w(Ls0/k/b;)Lrx/Observable;
move-result-object p1
sget-object v0, Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$2;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$2;
invoke-virtual {p1, v0}, Lrx/Observable;->E(Ls0/k/b;)Lrx/Observable;
move-result-object p1
const-string v0, "filter { it != null }.map { it!! }"
invoke-static {p1, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x1
invoke-virtual {p1, v0}, Lrx/Observable;->V(I)Lrx/Observable;
move-result-object p1
new-instance v0, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;
invoke-direct {v0, p0}, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;-><init>(Lcom/discord/stores/SlowTtiExperimentManager;)V
invoke-virtual {p1, v0}, Lrx/Observable;->t(Lrx/functions/Action1;)Lrx/Observable;
move-result-object p1
const-string v0, "storeExperiments.observe\u2026che(experiment)\n }"
invoke-static {p1, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v1
const-class v2, Lcom/discord/stores/SlowTtiExperimentManager;
const/4 v3, 0x0
@ -187,13 +219,15 @@
const/4 v5, 0x0
sget-object v6, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;->INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$1;
const/4 v6, 0x0
const/16 v7, 0x1e
sget-object v7, Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$2;->INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$fetchExperiment$2;
const/4 v8, 0x0
const/16 v8, 0x1e
invoke-static/range {v0 .. v8}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
const/4 v9, 0x0
invoke-static/range {v1 .. v9}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
return-void
@ -207,36 +241,67 @@
throw p1
.end method
.method public final getDelayMs()J
.locals 2
.method public final getExperimentStatus()Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;
.locals 8
iget-object v0, p0, Lcom/discord/stores/SlowTtiExperimentManager;->ttiExperiment:Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;
if-eqz v0, :cond_1
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->getBucket()I
move-result v1
invoke-static {}, Lcom/discord/stores/SlowTtiExperimentManagerKt;->access$getExperimentBucketToDelayMs$p()Ljava/util/Map;
move-result-object v0
iget v1, p0, Lcom/discord/stores/SlowTtiExperimentManager;->experimentBucket:I
move-result-object v2
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
move-result-object v1
check-cast v0, Ljava/lang/Long;
check-cast v1, Ljava/lang/Long;
if-eqz v0, :cond_0
if-nez v1, :cond_0
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
sget-object v0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;->INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;
goto :goto_0
:cond_0
const-wide/16 v0, 0x0
new-instance v7, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
move-result-wide v2
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->getBucket()I
move-result v4
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->getRevision()I
move-result v6
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager$TtiExperiment;->getPopulation()I
move-result v5
move-object v1, v7
invoke-direct/range {v1 .. v6}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;-><init>(JIII)V
move-object v0, v7
:goto_0
return-wide v0
return-object v0
:cond_1
sget-object v0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;->INSTANCE:Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserNotInExperiment;
return-object v0
.end method

View file

@ -4,9 +4,7 @@
# static fields
.field public static final CACHE_KEY:Ljava/lang/String; = "SLOW_TTI_EXPERIMENT"
.field public static final DEFAULT_BUCKET:I
.field public static final CACHE_KEY:Ljava/lang/String; = "SLOW_TTI_EXPERIMENT_V2"
.field public static final experimentBucketToDelayMs:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;

View file

@ -165,7 +165,7 @@
throw v0
:cond_3
const-string p1, "webhooks"
const-string/jumbo p1, "webhooks"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
@ -508,7 +508,7 @@
throw v0
:cond_3
const-string v1, "webhooks"
const-string/jumbo v1, "webhooks"
invoke-static {v1}, Lk0/n/c/h;->c(Ljava/lang/String;)V

View file

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

View file

@ -0,0 +1,86 @@
.class public final Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$1;
.super Ljava/lang/Object;
.source "StoreExperiments.kt"
# interfaces
.implements Ls0/k/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreExperiments;->observeTtiExperimentNoTrigger()Lrx/Observable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ls0/k/b<",
"TR;TR;>;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/discord/stores/StoreExperiments;
# direct methods
.method public constructor <init>(Lcom/discord/stores/StoreExperiments;)V
.locals 0
iput-object p1, p0, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$1;->this$0:Lcom/discord/stores/StoreExperiments;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final call(Ljava/util/HashMap;)Lcom/discord/stores/StoreExperiments$Experiment;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/HashMap<",
"Ljava/lang/Long;",
"Lcom/discord/stores/StoreExperiments$Experiment;",
">;)",
"Lcom/discord/stores/StoreExperiments$Experiment;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$1;->this$0:Lcom/discord/stores/StoreExperiments;
const-string v1, "experiments"
invoke-static {p1, v1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0, p1}, Lcom/discord/stores/StoreExperiments;->access$getTtiExperimentNoTrigger(Lcom/discord/stores/StoreExperiments;Ljava/util/Map;)Lcom/discord/stores/StoreExperiments$Experiment;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Ljava/util/HashMap;
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$1;->call(Ljava/util/HashMap;)Lcom/discord/stores/StoreExperiments$Experiment;
move-result-object p1
return-object p1
.end method

View file

@ -0,0 +1,112 @@
.class public final Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$2;
.super Ljava/lang/Object;
.source "StoreExperiments.kt"
# interfaces
.implements Lrx/functions/Func2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreExperiments;->observeTtiExperimentNoTrigger()Lrx/Observable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T1:",
"Ljava/lang/Object;",
"T2:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/Func2<",
"Lcom/discord/stores/StoreExperiments$Experiment;",
"Lcom/discord/stores/StoreExperiments$Experiment;",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
# static fields
.field public static final INSTANCE:Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$2;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$2;
invoke-direct {v0}, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$2;-><init>()V
sput-object v0, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$2;->INSTANCE:Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$2;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Lcom/discord/stores/StoreExperiments$Experiment;
check-cast p2, Lcom/discord/stores/StoreExperiments$Experiment;
invoke-virtual {p0, p1, p2}, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$2;->call(Lcom/discord/stores/StoreExperiments$Experiment;Lcom/discord/stores/StoreExperiments$Experiment;)Z
move-result p1
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.end method
.method public final call(Lcom/discord/stores/StoreExperiments$Experiment;Lcom/discord/stores/StoreExperiments$Experiment;)Z
.locals 1
const/4 v0, 0x0
if-eqz p1, :cond_0
invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$Experiment;->getRawExperiment()Lcom/discord/models/domain/ModelExperiment;
move-result-object p1
goto :goto_0
:cond_0
move-object p1, v0
:goto_0
if-eqz p2, :cond_1
invoke-virtual {p2}, Lcom/discord/stores/StoreExperiments$Experiment;->getRawExperiment()Lcom/discord/models/domain/ModelExperiment;
move-result-object v0
:cond_1
invoke-static {p1, v0}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
.end method

View file

@ -361,6 +361,16 @@
return-object p0
.end method
.method public static final synthetic access$getTtiExperimentNoTrigger(Lcom/discord/stores/StoreExperiments;Ljava/util/Map;)Lcom/discord/stores/StoreExperiments$Experiment;
.locals 0
invoke-direct {p0, p1}, Lcom/discord/stores/StoreExperiments;->getTtiExperimentNoTrigger(Ljava/util/Map;)Lcom/discord/stores/StoreExperiments$Experiment;
move-result-object p0
return-object p0
.end method
.method public static final synthetic access$handleLoadedExperiments(Lcom/discord/stores/StoreExperiments;Lcom/discord/models/domain/ModelExperiment$Experiments;)V
.locals 0
@ -614,6 +624,41 @@
return-object p0
.end method
.method private final getTtiExperimentNoTrigger(Ljava/util/Map;)Lcom/discord/stores/StoreExperiments$Experiment;
.locals 2
.annotation runtime Lcom/discord/stores/StoreThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Lcom/discord/stores/StoreExperiments$Experiment;",
">;)",
"Lcom/discord/stores/StoreExperiments$Experiment;"
}
.end annotation
const-string v0, "2020-08_android_tti_delay"
invoke-static {v0}, Lcom/discord/models/domain/ModelExperiment;->createExperimentHash(Ljava/lang/CharSequence;)J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/discord/stores/StoreExperiments$Experiment;
return-object p1
.end method
.method private final handleExperimentReset()V
.locals 1
.annotation runtime Lcom/discord/stores/StoreThread;
@ -1358,6 +1403,44 @@
return-object v0
.end method
.method public final observeTtiExperimentNoTrigger()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Lcom/discord/stores/StoreExperiments$Experiment;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreExperiments;->experimentsEligibleSubject:Lrx/subjects/SerializedSubject;
new-instance v1, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$1;
invoke-direct {v1, p0}, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$1;-><init>(Lcom/discord/stores/StoreExperiments;)V
invoke-virtual {v0, v1}, Lrx/Observable;->E(Ls0/k/b;)Lrx/Observable;
move-result-object v0
sget-object v1, Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$2;->INSTANCE:Lcom/discord/stores/StoreExperiments$observeTtiExperimentNoTrigger$2;
invoke-virtual {v0, v1}, Lrx/Observable;->r(Lrx/functions/Func2;)Lrx/Observable;
move-result-object v0
const-string v1, "experimentsEligibleSubje\u2026?.rawExperiment\n }"
invoke-static {v0, v1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
return-object v0
.end method
.method public onDispatchEnded()V
.locals 6
.annotation runtime Lcom/discord/stores/StoreThread;

View file

@ -90,19 +90,43 @@
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager;->getDelayMs()J
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager;->getExperimentStatus()Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus;
move-result-wide v0
move-result-object v0
const-string v2, "isInitialized"
const-string v1, "isInitialized"
invoke-static {p1, v2}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1, v1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-eqz v1, :cond_1
instance-of v1, v0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
if-eqz v1, :cond_1
check-cast v0, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->getBucket()I
move-result v1
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->getRevision()I
move-result v2
if-eqz v2, :cond_0
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->getPopulation()I
move-result v3
invoke-static {v1, v2, v3}, Lcom/discord/utilities/analytics/AnalyticsTracker;->ttiExperimentTriggered(III)V
invoke-virtual {v0}, Lcom/discord/stores/SlowTtiExperimentManager$ExperimentStatus$UserInExperiment;->getDelayMs()J
move-result-wide v0
const-wide/16 v2, 0x0
@ -120,15 +144,23 @@
move-result-object p1
goto :goto_0
goto :goto_1
:cond_0
new-instance v0, Ls0/l/e/j;
invoke-direct {v0, p1}, Ls0/l/e/j;-><init>(Ljava/lang/Object;)V
move-object p1, v0
goto :goto_0
:cond_1
new-instance v0, Ls0/l/e/j;
invoke-direct {v0, p1}, Ls0/l/e/j;-><init>(Ljava/lang/Object;)V
:goto_0
move-object p1, v0
:goto_1
return-object p1
.end method

View file

@ -177,7 +177,7 @@
const-string v3, "browser_user_agent"
const-string v4, "Discord-Android/1253"
const-string v4, "Discord-Android/1254"
invoke-direct {v2, v3, v4}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
@ -185,7 +185,7 @@
const/4 v1, 0x2
const/16 v2, 0x4e5
const/16 v2, 0x4e6
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
@ -205,7 +205,7 @@
const-string v3, "client_version"
const-string v4, "38.2"
const-string v4, "38.3"
invoke-direct {v2, v3, v4}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

View file

@ -3013,6 +3013,80 @@
return-void
.end method
.method public static final ttiExperimentTriggered(III)V
.locals 4
const/4 v0, 0x4
new-array v0, v0, [Lkotlin/Pair;
new-instance v1, Lkotlin/Pair;
const-string v2, "name"
const-string v3, "2020-08_android_tti_delay"
invoke-direct {v1, v2, v3}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
const/4 v2, 0x0
aput-object v1, v0, v2
const/4 v1, 0x1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
new-instance v2, Lkotlin/Pair;
const-string v3, "revision"
invoke-direct {v2, v3, p1}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
aput-object v2, v0, v1
const/4 p1, 0x2
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
new-instance v1, Lkotlin/Pair;
const-string v2, "population"
invoke-direct {v1, v2, p2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
aput-object v1, v0, p1
const/4 p1, 0x3
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
new-instance p2, Lkotlin/Pair;
const-string v1, "bucket"
invoke-direct {p2, v1, p0}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
aput-object p2, v0, p1
invoke-static {v0}, Lf/n/a/k/a;->mutableMapOf([Lkotlin/Pair;)Ljava/util/Map;
move-result-object p0
sget-object p1, Lcom/discord/utilities/analytics/AnalyticsTracker;->tracker:Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;
const-string p2, "experiment_user_triggered"
invoke-virtual {p1, p2, p0}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->track(Ljava/lang/String;Ljava/util/Map;)V
return-void
.end method
.method public static synthetic voiceChannelLeave$default(Lcom/discord/utilities/analytics/AnalyticsTracker;JLjava/lang/String;Lcom/discord/models/domain/ModelChannel;Ljava/util/Map;Ljava/lang/Long;ILjava/lang/Object;)V
.locals 7

View file

@ -255,7 +255,7 @@
goto :goto_0
:cond_0
const-string v1, "webp"
const-string/jumbo v1, "webp"
goto :goto_0

View file

@ -2490,7 +2490,7 @@
move-result-object v1
:goto_16
const-string v2, "when (auditLogEntry.acti\u2026 )\n )\n }"
const-string/jumbo v2, "when (auditLogEntry.acti\u2026 )\n )\n }"
invoke-static {v1, v2}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
@ -2541,8 +2541,6 @@
throw v1
nop
:pswitch_data_0
.packed-switch 0x3c
:pswitch_3

View file

@ -968,7 +968,7 @@
throw p2
:cond_5
const-string p3, "webp"
const-string/jumbo p3, "webp"
:goto_2
new-instance v1, Ljava/lang/StringBuilder;
@ -1337,7 +1337,7 @@
goto :goto_1
:cond_3
const-string p2, "webp"
const-string/jumbo p2, "webp"
:goto_1
new-instance p3, Ljava/lang/StringBuilder;

View file

@ -207,7 +207,7 @@
move-result-object p0
:goto_1
const-string p1, "when (activity.type) {\n \u2026ity_header_playing)\n }"
const-string/jumbo p1, "when (activity.type) {\n \u2026ity_header_playing)\n }"
invoke-static {p0, p1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

View file

@ -159,7 +159,7 @@
.method public getUserAgent()Ljava/lang/String;
.locals 1
const-string v0, "Discord-Android/1253"
const-string v0, "Discord-Android/1254"
return-object v0
.end method

View file

@ -503,7 +503,7 @@
move-result-object p1
:goto_0
const-string v0, "when (premiumTier) {\n \u2026 else -> \"\"\n }"
const-string/jumbo v0, "when (premiumTier) {\n \u2026 else -> \"\"\n }"
invoke-static {p1, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

View file

@ -410,7 +410,7 @@
if-nez v4, :cond_3
const-string v4, "webhook.incoming"
const-string/jumbo v4, "webhook.incoming"
invoke-static {v1, v4, v3}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z

View file

@ -480,7 +480,7 @@
new-array v1, v2, [Ljava/lang/Object;
const-string v3, "38.2"
const-string v3, "38.3"
aput-object v3, v1, v5

View file

@ -103,7 +103,7 @@
throw v0
:cond_2
const-string p1, "welcomeChannel"
const-string/jumbo p1, "welcomeChannel"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
@ -296,7 +296,7 @@
throw v0
:cond_2
const-string p1, "welcomeChannel"
const-string/jumbo p1, "welcomeChannel"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V

View file

@ -35,7 +35,7 @@
move-result-object v3
const-string v4, "welcomeChannel"
const-string/jumbo v4, "welcomeChannel"
const-string v5, "getWelcomeChannel()Landroidx/cardview/widget/CardView;"

View file

@ -521,7 +521,7 @@
return-void
:cond_4
const-string p1, "welcomeChannels"
const-string/jumbo p1, "welcomeChannels"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V