Skip to content

Commit

Permalink
adds a build version file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Wilson committed Nov 8, 2014
1 parent 1ac3107 commit 841267a
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CoreDataUtil/CoreDataPro-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@
<key>CFBundleIconFile</key>
<string>ApplicationIcon.icns</string>
<key>CFBundleIdentifier</key>
<string>com.fluentfactory.coredatapro.${PRODUCT_NAME:rfc1034identifier}</string>
<string>com.yepher.coredatapro.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<string>1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>4</string>
<string>5</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
Expand Down
28 changes: 28 additions & 0 deletions CoreDataUtil/MFLBuild.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// MFLBuild.h
// BriteIM
//
// Created by Chris Wilson on 1/30/14.
// Copyright (c) 2014 Chris Wilson All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString *const MFL_VERSION;

extern NSString *const MFL_BUILD_VERSION;

extern NSString *const MFL_GIT_HASH;

extern NSString *const MFL_GIT_LAST;

extern NSString *const MFL_BUILD_DATE;

extern NSString *const MFL_PLATFORM;

extern NSInteger const MFL_DEVICE_TYPE;


@interface MFLBuild : NSObject

@end
56 changes: 56 additions & 0 deletions CoreDataUtil/MFLBuild.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
//
// MFLBuild.m
// BriteIM
//
// Created by Chris Wilson on 1/30/14.
// Copyright (c) 2014 Chris Wilson All rights reserved.

/********************
WARNING: this file is automatically updated by XCode during the build. Any uncommited changes to this file
will be lost during the build process.
********************/

#import "MFLBuild.h"

@implementation MFLBuild

NSString *const MFL_VERSION = @"APP_VERSION"
#ifdef DEBUG
// Show "d" after version if this is a DEBUG build
@" d"
#endif
;

NSString *const MFL_BUILD_VERSION = @"BUILD_GENERATED_VERSION";

NSString *const MFL_GIT_HASH = @"BUILD_GENERATED_GIT_HASH";

NSString *const MFL_GIT_LAST = @"BUILD_LAST_COMMIT";

NSString *const MFL_BUILD_DATE = @"BUILD_GENERATED_DATE";

#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR

NSString *const MFL_PLATFORM = @"ios";

#ifdef DEBUG
NSInteger const MFL_DEVICE_TYPE = 4; // IOS device - sandbox APNS
#else
NSInteger const MFL_DEVICE_TYPE = 6; // IOS device - production APNS
#endif

#else

NSString *const MFL_PLATFORM = @"mac";

#ifdef DEBUG
NSInteger const MFL_DEVICE_TYPE = 5; // MAC device - sandbox APNS
#else
NSInteger const MFL_DEVICE_TYPE = 7; // MAC device - production APNS
#endif

#endif



@end

0 comments on commit 841267a

Please sign in to comment.