mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-06 21:22:44 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -461,18 +461,13 @@ static NSData *base64_decode(NSString *str) {
|
||||
|
||||
NSString *suffix = @"";
|
||||
#if TARGET_OS_OSX
|
||||
#ifdef BETA
|
||||
suffix = @" BETA";
|
||||
NSString *value = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"SOURCE"];
|
||||
if (value != nil) {
|
||||
suffix = [NSString stringWithFormat:@"%@ ", value];
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef APPSTORE
|
||||
suffix = @" APPSTORE";
|
||||
#endif
|
||||
|
||||
#ifdef STABLE
|
||||
suffix = @" STABLE";
|
||||
#endif
|
||||
#endif
|
||||
//SOURCE
|
||||
NSString *versionString = [[NSString alloc] initWithFormat:@"%@ (%@)%@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"], [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"], suffix];
|
||||
_appVersion = versionString;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user