Skip to content

Commit ec6d6ab

Browse files
committed
version based on git tag
1 parent 3d64ef3 commit ec6d6ab

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@
1515

1616
Podfile.lock
1717
Pods
18+
19+
version.xcconfig

VisualJSON.xcodeproj/project.pbxproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
38A1C034157DD7030034EDC4 /* VJRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VJRequest.m; sourceTree = "<group>"; };
113113
38A1C037157E15240034EDC4 /* VJDocument.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = VJDocument.xcdatamodel; sourceTree = "<group>"; };
114114
38B0C70F164101F20044C73C /* libPods.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libPods.a; path = Pods/build/Release/libPods.a; sourceTree = "<group>"; };
115+
38CAB03A1664F46B00181B0D /* version.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = version.xcconfig; sourceTree = "<group>"; };
115116
C53C08C4F80849EB8B688C6C /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = SOURCE_ROOT; };
116117
/* End PBXFileReference section */
117118

@@ -157,6 +158,7 @@
157158
382554BD157BE3550099CC24 /* Frameworks */,
158159
382554BB157BE3550099CC24 /* Products */,
159160
C53C08C4F80849EB8B688C6C /* Pods.xcconfig */,
161+
38CAB03A1664F46B00181B0D /* version.xcconfig */,
160162
);
161163
sourceTree = "<group>";
162164
};
@@ -280,6 +282,7 @@
280282
isa = PBXNativeTarget;
281283
buildConfigurationList = 38255500157BE3550099CC24 /* Build configuration list for PBXNativeTarget "VisualJSON" */;
282284
buildPhases = (
285+
38CAB03C1664F48D00181B0D /* Generate Version xcconfig */,
283286
382554B6157BE3550099CC24 /* Sources */,
284287
382554B7157BE3550099CC24 /* Frameworks */,
285288
382554B8157BE3550099CC24 /* Resources */,
@@ -406,6 +409,20 @@
406409
shellPath = /bin/sh;
407410
shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n";
408411
};
412+
38CAB03C1664F48D00181B0D /* Generate Version xcconfig */ = {
413+
isa = PBXShellScriptBuildPhase;
414+
buildActionMask = 2147483647;
415+
files = (
416+
);
417+
inputPaths = (
418+
);
419+
name = "Generate Version xcconfig";
420+
outputPaths = (
421+
);
422+
runOnlyForDeploymentPostprocessing = 0;
423+
shellPath = /bin/sh;
424+
shellScript = "cd xcodepkgtool\necho \"APP_VERSION=`./version.sh`\" > version.xcconfig";
425+
};
409426
/* End PBXShellScriptBuildPhase section */
410427

411428
/* Begin PBXSourcesBuildPhase section */
@@ -496,6 +513,7 @@
496513
/* Begin XCBuildConfiguration section */
497514
382554FB157BE3550099CC24 /* Debug */ = {
498515
isa = XCBuildConfiguration;
516+
baseConfigurationReference = 38CAB03A1664F46B00181B0D /* version.xcconfig */;
499517
buildSettings = {
500518
ALWAYS_SEARCH_USER_PATHS = NO;
501519
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
@@ -522,6 +540,7 @@
522540
};
523541
382554FC157BE3550099CC24 /* Release */ = {
524542
isa = XCBuildConfiguration;
543+
baseConfigurationReference = 38CAB03A1664F46B00181B0D /* version.xcconfig */;
525544
buildSettings = {
526545
ALWAYS_SEARCH_USER_PATHS = NO;
527546
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";

VisualJSON/VisualJSON-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
<key>CFBundlePackageType</key>
4141
<string>APPL</string>
4242
<key>CFBundleShortVersionString</key>
43-
<string>1.3.0</string>
43+
<string>${APP_VERSION}</string>
4444
<key>CFBundleSignature</key>
4545
<string>????</string>
4646
<key>CFBundleVersion</key>
47-
<string>1.3.0</string>
47+
<string>${APP_VERSION}</string>
4848
<key>LSApplicationCategoryType</key>
4949
<string>public.app-category.developer-tools</string>
5050
<key>LSMinimumSystemVersion</key>

xcodepkgtool

Submodule xcodepkgtool updated 1 file

0 commit comments

Comments
 (0)