mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-31 03:20:38 +00:00
32 lines
1.6 KiB
Java
32 lines
1.6 KiB
Java
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 {
|
|
|
|
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;
|
|
final static String UNIDENTIFIED_SENDER_TRUST_ROOT = "BXu6QIKVz5MA8gstzfOgRQGqyLqOwNKHL6INkv3IHWMF";
|
|
final static int PREKEY_MINIMUM_COUNT = 20;
|
|
final static int PREKEY_BATCH_SIZE = 100;
|
|
final static int MAX_ATTACHMENT_SIZE = 150 * 1024 * 1024;
|
|
|
|
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]
|
|
);
|
|
|
|
private BaseConfig() {
|
|
}
|
|
}
|