NekoX/TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java

37 lines
1.6 KiB
Java
Raw Normal View History

/*
2019-01-23 18:03:33 +01:00
* This is the source code of Telegram for Android v. 5.x.x.
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
2019-01-23 18:03:33 +01:00
* Copyright Nikolai Kudashov, 2013-2018.
*/
package org.telegram.messenger;
2018-07-30 04:07:02 +02:00
import android.content.Context;
import android.content.SharedPreferences;
public class BuildVars {
2018-07-30 04:07:02 +02:00
2014-10-07 22:14:27 +02:00
public static boolean DEBUG_VERSION = false;
2017-03-31 01:58:05 +02:00
public static boolean DEBUG_PRIVATE_VERSION = false;
2018-07-30 04:07:02 +02:00
public static boolean LOGS_ENABLED = false;
2019-01-23 18:03:33 +01:00
public static boolean USE_CLOUD_STRINGS = true;
2018-07-30 04:07:02 +02:00
public static boolean CHECK_UPDATES = false;
2019-03-03 21:40:48 +01:00
public static int BUILD_VERSION = 1517;
public static String BUILD_VERSION_STRING = "5.4.0";
2015-01-02 23:22:17 +01:00
public static int APP_ID = 0; //obtain your own APP_ID at https://core.telegram.org/api/obtaining_api_id
public static String APP_HASH = ""; //obtain your own APP_HASH at https://core.telegram.org/api/obtaining_api_id
public static String HOCKEY_APP_HASH = "your-hockeyapp-api-key-here";
2015-11-26 22:04:02 +01:00
public static String HOCKEY_APP_HASH_DEBUG = "your-hockeyapp-api-key-here";
2018-07-30 04:07:02 +02:00
public static String PLAYSTORE_APP_URL = "";
2019-01-23 18:03:33 +01:00
public static String SMS_HASH = ""; //https://developers.google.com/identity/sms-retriever/overview
2018-07-30 04:07:02 +02:00
static {
if (ApplicationLoader.applicationContext != null) {
SharedPreferences sharedPreferences = ApplicationLoader.applicationContext.getSharedPreferences("systemConfig", Context.MODE_PRIVATE);
LOGS_ENABLED = sharedPreferences.getBoolean("logsEnabled", DEBUG_VERSION);
}
}
}