]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/manager/BaseConfig.java
Move Manager to sub package
[signal-cli] / src / main / java / org / asamk / signal / manager / BaseConfig.java
diff --git a/src/main/java/org/asamk/signal/manager/BaseConfig.java b/src/main/java/org/asamk/signal/manager/BaseConfig.java
new file mode 100644 (file)
index 0000000..19d43fc
--- /dev/null
@@ -0,0 +1,33 @@
+package org.asamk.signal.manager;
+
+import org.whispersystems.signalservice.api.push.TrustStore;
+import org.whispersystems.signalservice.internal.configuration.SignalCdnUrl;
+import org.whispersystems.signalservice.internal.configuration.SignalContactDiscoveryUrl;
+import org.whispersystems.signalservice.internal.configuration.SignalServiceConfiguration;
+import org.whispersystems.signalservice.internal.configuration.SignalServiceUrl;
+
+public class BaseConfig {
+
+    private BaseConfig() {
+    }
+
+    public final static String PROJECT_NAME = Manager.class.getPackage().getImplementationTitle();
+    public final static String PROJECT_VERSION = Manager.class.getPackage().getImplementationVersion();
+    final static String USER_AGENT = PROJECT_NAME == null ? null : PROJECT_NAME + " " + PROJECT_VERSION;
+
+    private final static String URL = "https://textsecure-service.whispersystems.org";
+    private final static String CDN_URL = "https://cdn.signal.org";
+
+    private final static TrustStore TRUST_STORE = new WhisperTrustStore();
+    final static SignalServiceConfiguration serviceConfiguration = new SignalServiceConfiguration(
+            new SignalServiceUrl[]{new SignalServiceUrl(URL, TRUST_STORE)},
+            new SignalCdnUrl[]{new SignalCdnUrl(CDN_URL, TRUST_STORE)},
+            new SignalContactDiscoveryUrl[0]
+    );
+
+    final static String UNIDENTIFIED_SENDER_TRUST_ROOT = "BXu6QIKVz5MA8gstzfOgRQGqyLqOwNKHL6INkv3IHWMF";
+
+    final static int PREKEY_MINIMUM_COUNT = 20;
+    static final int PREKEY_BATCH_SIZE = 100;
+    static final int MAX_ATTACHMENT_SIZE = 150 * 1024 * 1024;
+}