Update MobileCoin Payments Beta country codes.

This commit is contained in:
Alex Hart
2021-11-12 14:53:35 -04:00
committed by GitHub
parent 51c86cab10
commit 0cb53f40f4
5 changed files with 211 additions and 37 deletions

View File

@@ -3,6 +3,7 @@ package org.thoughtcrime.securesms.util;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
@@ -88,6 +89,7 @@ public final class FeatureFlags {
private static final String DONOR_BADGES_MEGAPHONE = "android.donorBadges.megaphone";
private static final String DONOR_BADGES_DISPLAY = "android.donorBadges.display";
private static final String CDSH = "android.cdsh";
private static final String MOBILECOIN_BLACKLIST = "android.mobilecoin.blacklist";
/**
* We will only store remote values for flags in this set. If you want a flag to be controllable
@@ -128,7 +130,8 @@ public final class FeatureFlags {
SENDER_KEY_MAX_AGE,
DONOR_BADGES,
DONOR_BADGES_MEGAPHONE,
DONOR_BADGES_DISPLAY
DONOR_BADGES_DISPLAY,
MOBILECOIN_BLACKLIST
);
@VisibleForTesting
@@ -434,6 +437,10 @@ public final class FeatureFlags {
return Environment.IS_STAGING && getBoolean(CDSH, false);
}
public static @Nullable String mobileCoinBlacklist() {
return getString(MOBILECOIN_BLACKLIST, null);
}
/** Only for rendering debug info. */
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
return new TreeMap<>(REMOTE_VALUES);