diff options
author | cyberta <cyberta@riseup.net> | 2018-08-31 08:31:16 -0700 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2018-08-31 08:31:16 -0700 |
commit | da7781289337938cae83a767257737ae1da3b8e0 (patch) | |
tree | ce96ffdbe51ae8c77764f9e364288e90582d6ad7 /app/src/main/java/se/leap/bitmaskclient/utils | |
parent | 62d335bc2b72c4301539602fa04164365d780707 (diff) | |
parent | 71eb3340558026be31b65ed2ad469c84f8f46bdd (diff) |
Merge branch '#8896_skip_onboarding' into 'master'
#8896 skip onboarding
See merge request leap/bitmask_android!80
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/utils')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java b/app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java index 5bb637b7..326139c0 100644 --- a/app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java +++ b/app/src/main/java/se/leap/bitmaskclient/utils/ConfigHelper.java @@ -40,8 +40,11 @@ import java.security.interfaces.RSAPrivateKey; import java.security.spec.InvalidKeySpecException; import java.security.spec.PKCS8EncodedKeySpec; +import se.leap.bitmaskclient.BuildConfig; import se.leap.bitmaskclient.ProviderAPI; +import static se.leap.bitmaskclient.Constants.DEFAULT_BITMASK; + /** * Stores constants, and implements auxiliary methods used across all Bitmask Android classes. * @@ -167,4 +170,11 @@ public class ConfigHelper { } } + public static boolean isDefaultBitmask() { + return BuildConfig.FLAVOR_branding.equals(DEFAULT_BITMASK); + } + + public static boolean preferAnonymousUsage() { + return BuildConfig.priotize_anonymous_usage; + } } |