Skip to content

Commit 89abb37

Browse files
committed
Fix up version information for version 2.3.1
1 parent 18b764e commit 89abb37

File tree

4 files changed

+55
-7
lines changed

4 files changed

+55
-7
lines changed

MagicalRecord.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.default_subspec = 'Core'
33
s.name = 'MagicalRecord'
4-
s.version = '2.3.0'
4+
s.version = '2.3.1'
55
s.license = 'MIT'
66
s.summary = 'Super Awesome Easy Fetching for Core Data 1!!!11!!!!1!.'
77
s.homepage = 'http://github.com/magicalpanda/MagicalRecord'

MagicalRecord.xcodeproj/project.pbxproj

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,7 @@
13601360
905D07141A63DE190076B54E /* Frameworks */,
13611361
905D07151A63DE190076B54E /* Headers */,
13621362
905D07161A63DE190076B54E /* Resources */,
1363+
90A0DE281C50E2FD00CF5A5A /* Set Version Information */,
13631364
);
13641365
buildRules = (
13651366
);
@@ -1378,6 +1379,7 @@
13781379
905D07371A63DE690076B54E /* Frameworks */,
13791380
905D07381A63DE690076B54E /* Headers */,
13801381
905D07391A63DE690076B54E /* Resources */,
1382+
90A0DE291C50E32200CF5A5A /* Set Version Information */,
13811383
);
13821384
buildRules = (
13831385
);
@@ -1658,6 +1660,37 @@
16581660
};
16591661
/* End PBXResourcesBuildPhase section */
16601662

1663+
/* Begin PBXShellScriptBuildPhase section */
1664+
90A0DE281C50E2FD00CF5A5A /* Set Version Information */ = {
1665+
isa = PBXShellScriptBuildPhase;
1666+
buildActionMask = 2147483647;
1667+
files = (
1668+
);
1669+
inputPaths = (
1670+
);
1671+
name = "Set Version Information";
1672+
outputPaths = (
1673+
);
1674+
runOnlyForDeploymentPostprocessing = 0;
1675+
shellPath = /bin/sh;
1676+
shellScript = $SRCROOT/Support/Scripts/set_version_information.sh;
1677+
};
1678+
90A0DE291C50E32200CF5A5A /* Set Version Information */ = {
1679+
isa = PBXShellScriptBuildPhase;
1680+
buildActionMask = 2147483647;
1681+
files = (
1682+
);
1683+
inputPaths = (
1684+
);
1685+
name = "Set Version Information";
1686+
outputPaths = (
1687+
);
1688+
runOnlyForDeploymentPostprocessing = 0;
1689+
shellPath = /bin/sh;
1690+
shellScript = $SRCROOT/Support/Scripts/set_version_information.sh;
1691+
};
1692+
/* End PBXShellScriptBuildPhase section */
1693+
16611694
/* Begin PBXSourcesBuildPhase section */
16621695
9004F4E11A94CBCF00A61312 /* Sources */ = {
16631696
isa = PBXSourcesBuildPhase;
@@ -2280,7 +2313,7 @@
22802313
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
22812314
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
22822315
COPY_PHASE_STRIP = NO;
2283-
CURRENT_PROJECT_VERSION = 2.2.99;
2316+
CURRENT_PROJECT_VERSION = 2.3.1;
22842317
DEBUG_INFORMATION_FORMAT = dwarf;
22852318
DYLIB_COMPATIBILITY_VERSION = 2.0;
22862319
DYLIB_CURRENT_VERSION = "$(CURRENT_PROJECT_VERSION)";
@@ -2304,7 +2337,7 @@
23042337
MACOSX_DEPLOYMENT_TARGET = 10.8;
23052338
ONLY_ACTIVE_ARCH = YES;
23062339
OTHER_CFLAGS = "-DDEBUG";
2307-
PRODUCT_BUNDLE_IDENTIFIER = "com.magicalpanda.ios.${PRODUCT_NAME:rfc1034identifier}";
2340+
PRODUCT_BUNDLE_IDENTIFIER = "com.magicalpanda.${PRODUCT_NAME:rfc1034identifier}";
23082341
STRIP_INSTALLED_PRODUCT = NO;
23092342
};
23102343
name = Debug;
@@ -2319,7 +2352,7 @@
23192352
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
23202353
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
23212354
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
2322-
CURRENT_PROJECT_VERSION = 2.2.99;
2355+
CURRENT_PROJECT_VERSION = 2.3.1;
23232356
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
23242357
DYLIB_COMPATIBILITY_VERSION = 2.0;
23252358
DYLIB_CURRENT_VERSION = "$(CURRENT_PROJECT_VERSION)";
@@ -2341,7 +2374,7 @@
23412374
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
23422375
MACOSX_DEPLOYMENT_TARGET = 10.8;
23432376
OTHER_CFLAGS = "-DNEBUG";
2344-
PRODUCT_BUNDLE_IDENTIFIER = "com.magicalpanda.ios.${PRODUCT_NAME:rfc1034identifier}";
2377+
PRODUCT_BUNDLE_IDENTIFIER = "com.magicalpanda.${PRODUCT_NAME:rfc1034identifier}";
23452378
};
23462379
name = Release;
23472380
};

Support/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>$(CURRENT_PROJECT_VERSION)</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>$(CURRENT_PROJECT_VERSION)</string>
22+
<string>0</string>
2323
<key>NSHumanReadableCopyright</key>
2424
<string>Copyright © 2015 Magical Panda Software LLC. All rights reserved.</string>
2525
<key>NSPrincipalClass</key>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
git=$(sh /etc/profile; which git)
4+
number_of_commits=$("$git" rev-list HEAD --count)
5+
git_release_version=$("$git" describe --tags --always --abbrev=0)
6+
7+
target_plist="$TARGET_BUILD_DIR/$INFOPLIST_PATH"
8+
dsym_plist="$DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Info.plist"
9+
10+
for plist in "$target_plist" "$dsym_plist"; do
11+
if [ -f "$plist" ]; then
12+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $number_of_commits" "$plist"
13+
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${git_release_version#*v}" "$plist"
14+
fi
15+
done

0 commit comments

Comments
 (0)