Skip to content

Commit 841267a

Browse files
author
Chris Wilson
committed
adds a build version file.
1 parent 1ac3107 commit 841267a

3 files changed

Lines changed: 87 additions & 3 deletions

File tree

CoreDataUtil/CoreDataPro-Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@
6262
<key>CFBundleIconFile</key>
6363
<string>ApplicationIcon.icns</string>
6464
<key>CFBundleIdentifier</key>
65-
<string>com.fluentfactory.coredatapro.${PRODUCT_NAME:rfc1034identifier}</string>
65+
<string>com.yepher.coredatapro.$(PRODUCT_NAME:rfc1034identifier)</string>
6666
<key>CFBundleInfoDictionaryVersion</key>
6767
<string>6.0</string>
6868
<key>CFBundleName</key>
6969
<string>${PRODUCT_NAME}</string>
7070
<key>CFBundlePackageType</key>
7171
<string>APPL</string>
7272
<key>CFBundleShortVersionString</key>
73-
<string>1.2</string>
73+
<string>1.3</string>
7474
<key>CFBundleSignature</key>
7575
<string>????</string>
7676
<key>CFBundleVersion</key>
77-
<string>4</string>
77+
<string>5</string>
7878
<key>LSApplicationCategoryType</key>
7979
<string>public.app-category.developer-tools</string>
8080
<key>LSMinimumSystemVersion</key>

CoreDataUtil/MFLBuild.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//
2+
// MFLBuild.h
3+
// BriteIM
4+
//
5+
// Created by Chris Wilson on 1/30/14.
6+
// Copyright (c) 2014 Chris Wilson All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
extern NSString *const MFL_VERSION;
12+
13+
extern NSString *const MFL_BUILD_VERSION;
14+
15+
extern NSString *const MFL_GIT_HASH;
16+
17+
extern NSString *const MFL_GIT_LAST;
18+
19+
extern NSString *const MFL_BUILD_DATE;
20+
21+
extern NSString *const MFL_PLATFORM;
22+
23+
extern NSInteger const MFL_DEVICE_TYPE;
24+
25+
26+
@interface MFLBuild : NSObject
27+
28+
@end

CoreDataUtil/MFLBuild.m

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
//
2+
// MFLBuild.m
3+
// BriteIM
4+
//
5+
// Created by Chris Wilson on 1/30/14.
6+
// Copyright (c) 2014 Chris Wilson All rights reserved.
7+
8+
/********************
9+
WARNING: this file is automatically updated by XCode during the build. Any uncommited changes to this file
10+
will be lost during the build process.
11+
********************/
12+
13+
#import "MFLBuild.h"
14+
15+
@implementation MFLBuild
16+
17+
NSString *const MFL_VERSION = @"APP_VERSION"
18+
#ifdef DEBUG
19+
// Show "d" after version if this is a DEBUG build
20+
@" d"
21+
#endif
22+
;
23+
24+
NSString *const MFL_BUILD_VERSION = @"BUILD_GENERATED_VERSION";
25+
26+
NSString *const MFL_GIT_HASH = @"BUILD_GENERATED_GIT_HASH";
27+
28+
NSString *const MFL_GIT_LAST = @"BUILD_LAST_COMMIT";
29+
30+
NSString *const MFL_BUILD_DATE = @"BUILD_GENERATED_DATE";
31+
32+
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
33+
34+
NSString *const MFL_PLATFORM = @"ios";
35+
36+
#ifdef DEBUG
37+
NSInteger const MFL_DEVICE_TYPE = 4; // IOS device - sandbox APNS
38+
#else
39+
NSInteger const MFL_DEVICE_TYPE = 6; // IOS device - production APNS
40+
#endif
41+
42+
#else
43+
44+
NSString *const MFL_PLATFORM = @"mac";
45+
46+
#ifdef DEBUG
47+
NSInteger const MFL_DEVICE_TYPE = 5; // MAC device - sandbox APNS
48+
#else
49+
NSInteger const MFL_DEVICE_TYPE = 7; // MAC device - production APNS
50+
#endif
51+
52+
#endif
53+
54+
55+
56+
@end

0 commit comments

Comments
 (0)