From cc64a922d77080b03c076504748f4c8ea6342e36 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Thu, 11 Nov 2021 18:12:14 -0400 Subject: [PATCH] Change to country codes for Payments Beta. --- app/build.gradle | 2 +- .../securesms/payments/GeographicalRestrictionsTest.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index df3fea1d22..427f9f0d0f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -171,7 +171,7 @@ android { buildConfigField "String[]", "LANGUAGES", "new String[]{\"" + autoResConfig().collect { s -> s.replace('-r', '_') }.join('", "') + '"}' buildConfigField "int", "CANONICAL_VERSION_CODE", "$canonicalVersionCode" buildConfigField "String", "DEFAULT_CURRENCIES", "\"EUR,AUD,GBP,CAD,CNY\"" - buildConfigField "int[]", "MOBILE_COIN_BLACKLIST", "new int[]{98,963,53,850,380}" + buildConfigField "int[]", "MOBILE_COIN_BLACKLIST", "new int[]{98,963,53,850,7}" buildConfigField "String", "GIPHY_API_KEY", "\"3o6ZsYH6U6Eri53TXy\"" buildConfigField "String", "RECAPTCHA_PROOF_URL", "\"https://signalcaptchas.org/challenge/generate.html\"" diff --git a/app/src/test/java/org/thoughtcrime/securesms/payments/GeographicalRestrictionsTest.java b/app/src/test/java/org/thoughtcrime/securesms/payments/GeographicalRestrictionsTest.java index 866c759adb..c1978d4e87 100644 --- a/app/src/test/java/org/thoughtcrime/securesms/payments/GeographicalRestrictionsTest.java +++ b/app/src/test/java/org/thoughtcrime/securesms/payments/GeographicalRestrictionsTest.java @@ -33,6 +33,11 @@ public final class GeographicalRestrictionsTest { assertTrue(GeographicalRestrictions.e164Allowed("+441617151234")); } + @Test + public void crimea_not_allowed() { + assertFalse(GeographicalRestrictions.e164Allowed("+79782222222")); + } + @Test public void blacklist_not_allowed() { for (int code : BuildConfig.MOBILE_COIN_BLACKLIST) {