diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-10-18 20:59:45 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-10-18 20:59:45 +0200 |
commit | 22d7bc4ab176d701bffef02321ad56f8dba83499 (patch) | |
tree | e3f55ce2dcde79a7340fff7f944bd02aca20ff5f | |
parent | 9c34a356fa59652aa9d1e79b1016b54d903650af (diff) |
use build flavor open for unbind app version
-rw-r--r-- | src/main/java/de/pixart/messenger/Config.java | 7 | ||||
-rw-r--r-- | src/open/java/de/pixart/messenger/services/PushManagementService.java | 24 |
2 files changed, 27 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/Config.java b/src/main/java/de/pixart/messenger/Config.java index 5f58596be..60ba45bef 100644 --- a/src/main/java/de/pixart/messenger/Config.java +++ b/src/main/java/de/pixart/messenger/Config.java @@ -37,14 +37,13 @@ public final class Config { public static final String LOGTAG = "Pix-Art Messenger"; - public static final String XMPP_IP = "185.26.156.37"; // set to null means disable - public static final Integer[] XMPP_Ports = {61000, 65000}; // set to null means disable - public static final String BUG_REPORTS = "bugs@pix-art.de"; public static final String inviteUserURL = "https://jabber.pix-art.de/i/"; - public static final String DOMAIN_LOCK = "pix-art.de"; //only allow account creation for this domain + public static final String XMPP_IP = BuildConfig.XMPP_IP; // set to null means disable + public static final Integer[] XMPP_Ports = BuildConfig.XMPP_Ports; // set to null means disable + public static final String DOMAIN_LOCK = BuildConfig.DOMAIN_LOCK; //only allow account creation for this domain public static final String MAGIC_CREATE_DOMAIN = "pix-art.de"; public static final boolean SINGLE_ACCOUNT = true; //set to true to allow only one account public static final boolean DISALLOW_REGISTRATION_IN_UI = false; //hide the register checkbox diff --git a/src/open/java/de/pixart/messenger/services/PushManagementService.java b/src/open/java/de/pixart/messenger/services/PushManagementService.java new file mode 100644 index 000000000..17e49cbbb --- /dev/null +++ b/src/open/java/de/pixart/messenger/services/PushManagementService.java @@ -0,0 +1,24 @@ +package de.pixart.messenger.services; + +import de.pixart.messenger.entities.Account; + +public class PushManagementService { + + protected final XmppConnectionService mXmppConnectionService; + + public PushManagementService(XmppConnectionService service) { + this.mXmppConnectionService = service; + } + + public void registerPushTokenOnServer(Account account) { + //stub implementation. only affects playstore flavor + } + + public boolean available(Account account) { + return false; + } + + public boolean isStub() { + return true; + } +} |