com.leanplum.internal.FeatureFlagManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanplum-core Show documentation
Show all versions of leanplum-core Show documentation
The Leanplum SDK messaging platform
The newest version!
package com.leanplum.internal;
import androidx.annotation.VisibleForTesting;
import com.leanplum.Leanplum;
import java.util.HashSet;
import java.util.Set;
public class FeatureFlagManager {
public static final FeatureFlagManager INSTANCE = new FeatureFlagManager();
public static final String FEATURE_FLAG_REQUEST_REFACTOR = "request_refactor";
private Set enabledFeatureFlags = new HashSet<>();
@VisibleForTesting
FeatureFlagManager() {
super();
}
public void setEnabledFeatureFlags(Set enabledFeatureFlags) {
this.enabledFeatureFlags = enabledFeatureFlags;
}
public Boolean isFeatureFlagEnabled(String featureFlagName) {
return this.enabledFeatureFlags.contains(featureFlagName);
}
}