55 lines
2.2 KiB
Java
55 lines
2.2 KiB
Java
|
package com.discord.widgets.guilds.invite;
|
||
|
|
||
|
import com.discord.models.experiments.domain.Experiment;
|
||
|
import com.discord.stores.StoreExperiments;
|
||
|
import com.discord.stores.StoreStream;
|
||
|
import d0.g;
|
||
|
import d0.z.d.m;
|
||
|
import kotlin.Lazy;
|
||
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||
|
/* compiled from: GuildInviteShareSheetFeatureFlag.kt */
|
||
|
public final class GuildInviteShareSheetFeatureFlag {
|
||
|
public static final Companion Companion = new Companion(null);
|
||
|
private static final Lazy INSTANCE$delegate = g.lazy(GuildInviteShareSheetFeatureFlag$Companion$INSTANCE$2.INSTANCE);
|
||
|
private final StoreExperiments storeExperiments;
|
||
|
|
||
|
/* compiled from: GuildInviteShareSheetFeatureFlag.kt */
|
||
|
public static final class Companion {
|
||
|
private Companion() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||
|
this();
|
||
|
}
|
||
|
|
||
|
public final GuildInviteShareSheetFeatureFlag getINSTANCE() {
|
||
|
Lazy access$getINSTANCE$cp = GuildInviteShareSheetFeatureFlag.access$getINSTANCE$cp();
|
||
|
Companion companion = GuildInviteShareSheetFeatureFlag.Companion;
|
||
|
return (GuildInviteShareSheetFeatureFlag) access$getINSTANCE$cp.getValue();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public GuildInviteShareSheetFeatureFlag() {
|
||
|
this(null, 1, null);
|
||
|
}
|
||
|
|
||
|
public GuildInviteShareSheetFeatureFlag(StoreExperiments storeExperiments) {
|
||
|
m.checkNotNullParameter(storeExperiments, "storeExperiments");
|
||
|
this.storeExperiments = storeExperiments;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
||
|
public /* synthetic */ GuildInviteShareSheetFeatureFlag(StoreExperiments storeExperiments, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||
|
this((i & 1) != 0 ? StoreStream.Companion.getExperiments() : storeExperiments);
|
||
|
}
|
||
|
|
||
|
public static final /* synthetic */ Lazy access$getINSTANCE$cp() {
|
||
|
return INSTANCE$delegate;
|
||
|
}
|
||
|
|
||
|
public final boolean isEnabled() {
|
||
|
Experiment userExperiment = this.storeExperiments.getUserExperiment("2020-12_android_guild_channel_invite_sheet", true);
|
||
|
return userExperiment != null && userExperiment.getBucket() == 1;
|
||
|
}
|
||
|
}
|