2020-03-27 22:23:51 +00:00
|
|
|
.class public final Lcom/discord/widgets/voice/fullscreen/GuildVideoFeatureFlagKt;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "GuildVideoFeatureFlag.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final BUCKET_SPECTATE_AND_BROADCAST:I = 0x2
|
|
|
|
|
|
|
|
.field public static final BUCKET_SPECTATE_ONLY:I = 0x1
|
|
|
|
|
|
|
|
.field public static final FORCE_ELIGIBILITY:Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-03-31 00:13:51 +00:00
|
|
|
.method public static final synthetic access$bucketToEligibility(I)Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-static {p0}, Lcom/discord/widgets/voice/fullscreen/GuildVideoFeatureFlagKt;->bucketToEligibility(I)Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final bucketToEligibility(I)Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/voice/fullscreen/GuildVideoFeatureFlagKt;->FORCE_ELIGIBILITY:Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
if-eq p0, v0, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
|
|
|
|
sget-object p0, Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;->NONE:Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget-object p0, Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;->SPECTATE_AND_BROADCAST:Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
sget-object p0, Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;->SPECTATE_ONLY:Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final getGuildVideoEligibility(Lcom/discord/stores/StoreExperiments;)Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
2020-03-27 22:23:51 +00:00
|
|
|
.locals 3
|
2020-03-31 00:13:51 +00:00
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
2020-03-27 22:23:51 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/fullscreen/GuildVideoFeatureFlagKt;->FORCE_ELIGIBILITY:Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
return-object v1
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x2
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
const-string v2, "2020-03_android_guild_video"
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
invoke-static {p0, v2, v0, v1, v0}, Lcom/discord/stores/StoreExperiments;->getExperimentSnapshot$app_productionDiscordExternalRelease$default(Lcom/discord/stores/StoreExperiments;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lcom/discord/stores/StoreExperiments$Experiment;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreExperiments$Experiment;->getBucket()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
invoke-static {p0}, Lcom/discord/widgets/voice/fullscreen/GuildVideoFeatureFlagKt;->bucketToEligibility(I)Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;
|
|
|
|
|
|
|
|
move-result-object p0
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
:cond_1
|
|
|
|
const-string p0, "experimentStore"
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-static {p0}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
2020-03-31 00:13:51 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final observeGuildVideoEligibility(Lcom/discord/stores/StoreExperiments;)Lrx/Observable;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/stores/StoreExperiments;",
|
|
|
|
")",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/voice/fullscreen/GuildVideoEligibility;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
const-string v2, "2020-03_android_guild_video"
|
|
|
|
|
|
|
|
invoke-static {p0, v2, v0, v1, v0}, 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 p0
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/voice/fullscreen/GuildVideoFeatureFlagKt$observeGuildVideoEligibility$1;->INSTANCE:Lcom/discord/widgets/voice/fullscreen/GuildVideoFeatureFlagKt$observeGuildVideoEligibility$1;
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-virtual {p0, v0}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
const-string v0, "experimentStore\n .g\u2026VideoExperiment.bucket) }"
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-static {p0, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2020-03-31 00:13:51 +00:00
|
|
|
:cond_0
|
2020-03-27 22:23:51 +00:00
|
|
|
const-string p0, "experimentStore"
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-static {p0}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|