Skip to content

Commit e917075

Browse files
committed
Control version with xcconfig
1 parent 8886563 commit e917075

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

Config.debug.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include "Version.xcconfig"
2+
13
SLASH = /
24

35
MODULE_NAME = Custom Suggestion Service

Config.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include "Version.xcconfig"
2+
13
SLASH = /
24

35
MODULE_NAME = Custom Suggestion Service

CustomSuggestionService.xcodeproj/project.pbxproj

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
C83B83AE2B7DD261007B4442 /* Dependency.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Dependency.swift; sourceTree = "<group>"; };
7171
C84697502B7B7B3700B8B840 /* TestFieldView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestFieldView.swift; sourceTree = "<group>"; };
7272
C84697562B7B8C9000B8B840 /* TutorialView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TutorialView.swift; sourceTree = "<group>"; };
73+
C84794A82B86EC6100483DF4 /* Version.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Version.xcconfig; sourceTree = "<group>"; };
7374
C867A12D2B7BDB3900875400 /* App.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App.swift; sourceTree = "<group>"; };
7475
C867A12F2B7BDBA500875400 /* TestField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestField.swift; sourceTree = "<group>"; };
7576
C874CD4C2B712BF0003ABA96 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
@@ -149,9 +150,10 @@
149150
isa = PBXGroup;
150151
children = (
151152
C8A18A672B85038E004188D3 /* README.md */,
152-
C8D011722B5A5DAA00219412 /* Shared */,
153+
C84794A82B86EC6100483DF4 /* Version.xcconfig */,
153154
C8D0115A2B5A59D100219412 /* Config.xcconfig */,
154155
C8D0115B2B5A59D400219412 /* Config.debug.xcconfig */,
156+
C8D011722B5A5DAA00219412 /* Shared */,
155157
C8D0114A2B59912700219412 /* CustomSuggestionService */,
156158
C8D011612B5A5B4D00219412 /* CopilotForXcodeExtension */,
157159
C8D011492B59912700219412 /* Products */,
@@ -541,7 +543,7 @@
541543
CODE_SIGN_ENTITLEMENTS = CustomSuggestionService/CustomSuggestionService.entitlements;
542544
CODE_SIGN_STYLE = Automatic;
543545
COMBINE_HIDPI_IMAGES = YES;
544-
CURRENT_PROJECT_VERSION = 1;
546+
CURRENT_PROJECT_VERSION = "$(APP_BUILD)";
545547
DEAD_CODE_STRIPPING = YES;
546548
DEVELOPMENT_ASSET_PATHS = "\"CustomSuggestionService/Preview Content\"";
547549
DEVELOPMENT_TEAM = 5YKZ4Y3DAW;
@@ -555,7 +557,7 @@
555557
"@executable_path/../Frameworks",
556558
);
557559
MACOSX_DEPLOYMENT_TARGET = 13.0;
558-
MARKETING_VERSION = 1.0;
560+
MARKETING_VERSION = "$(APP_VERSION)";
559561
OTHER_LDFLAGS = "";
560562
PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLE_IDENTIFIER_BASE).CustomSuggestionService";
561563
PRODUCT_MODULE_NAME = "$(MODULE_NAME:c99extidentifier)";
@@ -574,7 +576,7 @@
574576
CODE_SIGN_ENTITLEMENTS = CustomSuggestionService/CustomSuggestionService.entitlements;
575577
CODE_SIGN_STYLE = Automatic;
576578
COMBINE_HIDPI_IMAGES = YES;
577-
CURRENT_PROJECT_VERSION = 1;
579+
CURRENT_PROJECT_VERSION = "$(APP_BUILD)";
578580
DEAD_CODE_STRIPPING = YES;
579581
DEVELOPMENT_ASSET_PATHS = "\"CustomSuggestionService/Preview Content\"";
580582
DEVELOPMENT_TEAM = 5YKZ4Y3DAW;
@@ -588,7 +590,7 @@
588590
"@executable_path/../Frameworks",
589591
);
590592
MACOSX_DEPLOYMENT_TARGET = 13.0;
591-
MARKETING_VERSION = 1.0;
593+
MARKETING_VERSION = "$(APP_VERSION)";
592594
PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLE_IDENTIFIER_BASE).CustomSuggestionService";
593595
PRODUCT_MODULE_NAME = "$(MODULE_NAME:c99extidentifier)";
594596
PRODUCT_NAME = "$(HOST_APP_NAME)";
@@ -602,7 +604,7 @@
602604
buildSettings = {
603605
CODE_SIGN_ENTITLEMENTS = CopilotForXcodeExtension/CopilotForXcodeExtension.entitlements;
604606
CODE_SIGN_STYLE = Automatic;
605-
CURRENT_PROJECT_VERSION = 1;
607+
CURRENT_PROJECT_VERSION = "$(APP_BUILD)";
606608
DEAD_CODE_STRIPPING = YES;
607609
DEVELOPMENT_TEAM = 5YKZ4Y3DAW;
608610
ENABLE_HARDENED_RUNTIME = YES;
@@ -616,7 +618,7 @@
616618
"@executable_path/../../../../Frameworks",
617619
);
618620
MACOSX_DEPLOYMENT_TARGET = 13.0;
619-
MARKETING_VERSION = 1.0;
621+
MARKETING_VERSION = "$(APP_VERSION)";
620622
PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLE_IDENTIFIER_BASE).CustomSuggestionService.CopilotForXcodeExtension";
621623
PRODUCT_NAME = "$(TARGET_NAME)";
622624
SKIP_INSTALL = YES;
@@ -630,7 +632,7 @@
630632
buildSettings = {
631633
CODE_SIGN_ENTITLEMENTS = CopilotForXcodeExtension/CopilotForXcodeExtension.entitlements;
632634
CODE_SIGN_STYLE = Automatic;
633-
CURRENT_PROJECT_VERSION = 1;
635+
CURRENT_PROJECT_VERSION = "$(APP_BUILD)";
634636
DEAD_CODE_STRIPPING = YES;
635637
DEVELOPMENT_TEAM = 5YKZ4Y3DAW;
636638
ENABLE_HARDENED_RUNTIME = YES;
@@ -644,7 +646,7 @@
644646
"@executable_path/../../../../Frameworks",
645647
);
646648
MACOSX_DEPLOYMENT_TARGET = 13.0;
647-
MARKETING_VERSION = 1.0;
649+
MARKETING_VERSION = "$(APP_VERSION)";
648650
PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLE_IDENTIFIER_BASE).CustomSuggestionService.CopilotForXcodeExtension";
649651
PRODUCT_NAME = "$(TARGET_NAME)";
650652
SKIP_INSTALL = YES;
@@ -707,7 +709,7 @@
707709
repositoryURL = "https://github.com/intitni/CopilotForXcodeKit.git";
708710
requirement = {
709711
kind = upToNextMajorVersion;
710-
minimumVersion = 0.2.0;
712+
minimumVersion = 0.4.0;
711713
};
712714
};
713715
C8EA62AA2B6BDA0900E081FC /* XCRemoteSwiftPackageReference "swift-composable-architecture" */ = {

Version.xcconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
APP_VERSION = 0.1.0
2+
APP_BUILD = 12
3+

0 commit comments

Comments
 (0)