Skip to content

Commit 111edb7

Browse files
committed
Add Version.xcconfig to sync version number between targets
1 parent 53d05fe commit 111edb7

File tree

6 files changed

+14
-2
lines changed

6 files changed

+14
-2
lines changed

Config.debug.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
#include "Version.xcconfig"
2+
13
BUNDLE_IDENTIFIER_BASE = dev.com.intii.CopilotForXcode
24
EXTENSION_BUNDLE_NAME = Copilot Dev

Config.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
#include "Version.xcconfig"
2+
13
BUNDLE_IDENTIFIER_BASE = com.intii.CopilotForXcode
24
EXTENSION_BUNDLE_NAME = Copilot

Copilot for Xcode.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
C8189B202938973000C9DCDA /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
151151
C8189B222938973000C9DCDA /* Copilot_for_Xcode.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Copilot_for_Xcode.entitlements; sourceTree = "<group>"; };
152152
C8189B282938979000C9DCDA /* Core */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Core; sourceTree = "<group>"; };
153+
C81E867D296FE4420026E908 /* Version.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Version.xcconfig; sourceTree = "<group>"; };
153154
C832A47B2940C71D000989F2 /* copilot */ = {isa = PBXFileReference; lastKnownFileType = folder; name = copilot; path = copilot.vim/copilot; sourceTree = "<group>"; };
154155
C83B2B79293D9C8C00C5ACCD /* LaunchAgentManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LaunchAgentManager.swift; sourceTree = "<group>"; };
155156
C83B2B7B293D9FB400C5ACCD /* CopilotView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CopilotView.swift; sourceTree = "<group>"; };
@@ -246,6 +247,7 @@
246247
C832A47B2940C71D000989F2 /* copilot */,
247248
C8520308293D805800460097 /* README.md */,
248249
C887BC832965D96000931567 /* DEVELOPMENT.md */,
250+
C81E867D296FE4420026E908 /* Version.xcconfig */,
249251
C81458AD293A009600135263 /* Config.xcconfig */,
250252
C81458AE293A009800135263 /* Config.debug.xcconfig */,
251253
C8189B282938979000C9DCDA /* Core */,

EditorExtension/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleShortVersionString</key>
6-
<string>$(MARKETING_VERSION)</string>
6+
<string>$(APP_VERSION)</string>
77
<key>NSHumanReadableCopyright</key>
88
<string></string>
99
<key>CFBundleDevelopmentRegion</key>
@@ -15,7 +15,7 @@
1515
<key>CFBundleExecutable</key>
1616
<string>$(EXECUTABLE_NAME)</string>
1717
<key>CFBundleVersion</key>
18-
<string>$(CURRENT_PROJECT_VERSION)</string>
18+
<string>$(APP_BUILD)</string>
1919
<key>CFBundleInfoDictionaryVersion</key>
2020
<string>6.0</string>
2121
<key>CFBundleIdentifier</key>

Version.xcconfig

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

XPCService/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CFBundleShortVersionString</key>
6+
<string>$(APP_VERSION)</string>
7+
<key>CFBundleVersion</key>
8+
<string>$(APP_BUILD)</string>
59
<key>EXTENSION_BUNDLE_NAME</key>
610
<string>$(EXTENSION_BUNDLE_NAME)</string>
711
<key>BUNDLE_IDENTIFIER_BASE</key>

0 commit comments

Comments
 (0)