From Bistre Pheasant, 2 Weeks ago, written in Plain Text.
Embed
  1. diff --git a/build.gradle b/build.gradle
  2. index ae5499dc4..fca4819d4 100644
  3. --- a/build.gradle
  4. +++ b/build.gradle
  5. @@ -130,7 +130,7 @@ android {
  6.          targetCompatibility JavaVersion.VERSION_1_8
  7.      }
  8.  
  9. -    flavorDimensions("distribution", "stage")
  10. +    flavorDimensions("distribution", "domain", "stage")
  11.  
  12.      productFlavors {
  13.          beta {
  14. @@ -139,6 +139,14 @@ android {
  15.              versionNameSuffix "-beta"
  16.              resValue "string", "applicationId", appId + applicationIdSuffix
  17.          }
  18. +        allDomain {
  19. +            dimension "domain"
  20. +            buildConfigField 'String', 'FIXED_DOMAIN', 'null'
  21. +        }
  22. +        huaraka {
  23. +            dimension "domain"
  24. +            buildConfigField 'String', 'FIXED_DOMAIN', '"jabber.huaraka.de"'
  25. +        }
  26.          piratx {
  27.              dimension "distribution"
  28.          }
  29. diff --git a/src/main/java/de/pixart/messenger/Config.java b/src/main/java/de/pixart/messenger/Config.java
  30. index a9fef89c7..5c4dd4218 100644
  31. --- a/src/main/java/de/pixart/messenger/Config.java
  32. +++ b/src/main/java/de/pixart/messenger/Config.java
  33. @@ -53,8 +53,8 @@ public final class Config {
  34.  
  35.      public static final String XMPP_IP = null; //BuildConfig.XMPP_IP; // set to null means disable
  36.      public static final Integer[] XMPP_Ports = null; //BuildConfig.XMPP_Ports; // set to null means disable
  37. -    public static final String DOMAIN_LOCK = null; //BuildConfig.DOMAIN_LOCK; //only allow account creation for this domain
  38. -    public static final String MAGIC_CREATE_DOMAIN = null; //"blabber.im";
  39. +    public static final String DOMAIN_LOCK = BuildConfig.FIXED_DOMAIN;
  40. +    public static final String MAGIC_CREATE_DOMAIN = BuildConfig.FIXED_DOMAIN;
  41.      public static final String CHANNEL_DISCOVERY = "https://search.jabbercat.org";
  42.      public static final boolean DISALLOW_REGISTRATION_IN_UI = false; //hide the register checkbox
  43.