feat: add build date
This commit is contained in:
@@ -96,6 +96,7 @@ android {
|
||||
// Obtain your own keys at: https://core.telegram.org/api/obtaining_api_id
|
||||
buildConfigField 'int', 'APP_ID', localProperties.getProperty("APP_ID")
|
||||
buildConfigField 'String', 'APP_HASH', localProperties.getProperty("APP_HASH")
|
||||
buildConfigField 'String', 'AYU_VERSION', '"' + new Date().format("yyyyMMdd") + '"'
|
||||
|
||||
// Google Console: https://console.cloud.google.com/google/maps-apis/credentials
|
||||
resValue 'string', 'MAPS_V2_API', localProperties.getProperty("MAPS_V2_API")
|
||||
|
||||
@@ -23,6 +23,7 @@ public class BuildVars {
|
||||
public static boolean PM_BUILD = BuildConfig.IS_PM_BUILD;
|
||||
public static int BUILD_VERSION;
|
||||
public static String BUILD_VERSION_STRING;
|
||||
public static String AYU_VERSION;
|
||||
public static int APP_ID;
|
||||
public static String APP_HASH;
|
||||
|
||||
@@ -38,6 +39,7 @@ public class BuildVars {
|
||||
static {
|
||||
BUILD_VERSION = BuildConfig.VERSION_CODE;
|
||||
BUILD_VERSION_STRING = BuildConfig.VERSION_NAME;
|
||||
AYU_VERSION = BuildConfig.AYU_VERSION;
|
||||
|
||||
// Obtain your own APP_ID at https://core.telegram.org/api/obtaining_api_id
|
||||
APP_ID = BuildConfig.APP_ID;
|
||||
|
||||
@@ -8995,7 +8995,7 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
|
||||
cell.getTextView().setMovementMethod(null);
|
||||
try {
|
||||
PackageInfo info = ApplicationLoader.applicationContext.getPackageManager().getPackageInfo(ApplicationLoader.applicationContext.getPackageName(), 0);
|
||||
cell.setText(LocaleUtils.getAppName() + " " + BuildVars.BUILD_VERSION_STRING + " (" + info.versionCode + ")" + (AppUtils.isAppModified() ? "\nbased on @exteraGram" : ""));
|
||||
cell.setText(LocaleUtils.getAppName() + " " + BuildVars.BUILD_VERSION_STRING + " (" + BuildVars.AYU_VERSION + ")" + (AppUtils.isAppModified() ? "\nbased on @exteraGram " + info.versionCode : ""));
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
FileLog.e(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user