Replaced xcodebuild.h with CFBundleVersion

This commit is contained in:
Olivier Goguel 2016-03-27 11:34:35 +02:00
parent 8d3b2f1f71
commit 3a244bedee
3 changed files with 5 additions and 8 deletions

View File

@ -23,11 +23,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string></string>
<string>1.40</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.40</string>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIAppFonts</key>

View File

@ -10,7 +10,6 @@
#include "../Common/svnversion.h"
#import "asyncimageview.h"
#import "activegsViewController.h"
#include "../xcodebuild.h"
@implementation infoViewController
@ -27,13 +26,12 @@
-(void)viewDidLoad
{
NSString *AppVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
NSString *buildVersion = [NSString stringWithUTF8String:xcodebuild];
NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
NSString *buildVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
self.versionUILandscape.text=
self.versionUI.text = [NSString stringWithFormat: @"v%@#%@ -- ActiveGS "TOSTRING(ACTIVEGSMAJOR)"."TOSTRING(ACTIVEGSMINOR)"."TOSTRING(ACTIVEGSBUILD)"",AppVersion,buildVersion];
self.versionUI.text = [NSString stringWithFormat: @"v%@.%@ -- ActiveGS "TOSTRING(ACTIVEGSMAJOR)"."TOSTRING(ACTIVEGSMINOR)"."TOSTRING(ACTIVEGSBUILD)"",appVersion,buildVersion];
[self.portraitView setFrame:[[UIScreen mainScreen] bounds] ];
[self.landscapeView setFrame:[[UIScreen mainScreen] bounds] ];

View File

@ -1 +0,0 @@
const char* xcodebuild="304";