Add version to user agent string

This commit is contained in:
AsamK 2015-09-22 14:44:11 +02:00
parent 7f21bf0f23
commit ab25003061

View file

@ -51,7 +51,9 @@ class Manager {
private final static String URL = "https://textsecure-service.whispersystems.org";
private final static TrustStore TRUST_STORE = new WhisperTrustStore();
private final static String USER_AGENT = "textsecure-cli";
public final static String PROJECT_NAME = Manager.class.getPackage().getImplementationTitle();
public final static String PROJECT_VERSION = Manager.class.getPackage().getImplementationVersion();
private final static String USER_AGENT = PROJECT_NAME + " " + PROJECT_VERSION;
private final static String settingsPath = System.getProperty("user.home") + "/.config/textsecure";
private final static String dataPath = settingsPath + "/data";