-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Wilson
committed
Nov 8, 2014
1 parent
1ac3107
commit 841267a
Showing
3 changed files
with
87 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |