From 3d540985245cb06eceef5c635281b836bbd6e1c6 Mon Sep 17 00:00:00 2001 From: Rocky Date: Tue, 20 Oct 2026 20:20:07 +0200 Subject: [PATCH] chore(version): read framework and test bundle versions from project.yml --- OSGKeyboardExtTests/Info.plist | 6 +++--- OSGKeyboardHostSupport/Info.plist | 4 ++-- OSGKeyboardMacTests/Info.plist | 4 ++-- OSGKeyboardShared/Info.plist | 4 ++-- OSGKeyboardTests/Info.plist | 4 ++-- OSGKeyboardUITests/Info.plist | 4 ++-- project.yml | 18 ++++++++++++++++++ 7 files changed, 31 insertions(+), 13 deletions(-) diff --git a/OSGKeyboardExtTests/Info.plist b/OSGKeyboardExtTests/Info.plist index 2d98bea..26b175d 100644 --- a/OSGKeyboardExtTests/Info.plist +++ b/OSGKeyboardExtTests/Info.plist @@ -15,8 +15,8 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleVersion - 1 + $(CURRENT_PROJECT_VERSION) - \ No newline at end of file + diff --git a/OSGKeyboardHostSupport/Info.plist b/OSGKeyboardHostSupport/Info.plist index 323e5ec..82790df 100644 --- a/OSGKeyboardHostSupport/Info.plist +++ b/OSGKeyboardHostSupport/Info.plist @@ -15,8 +15,8 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleVersion - 1 + $(CURRENT_PROJECT_VERSION) diff --git a/OSGKeyboardMacTests/Info.plist b/OSGKeyboardMacTests/Info.plist index 6c40a6c..26b175d 100644 --- a/OSGKeyboardMacTests/Info.plist +++ b/OSGKeyboardMacTests/Info.plist @@ -15,8 +15,8 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleVersion - 1 + $(CURRENT_PROJECT_VERSION) diff --git a/OSGKeyboardShared/Info.plist b/OSGKeyboardShared/Info.plist index 323e5ec..82790df 100644 --- a/OSGKeyboardShared/Info.plist +++ b/OSGKeyboardShared/Info.plist @@ -15,8 +15,8 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleVersion - 1 + $(CURRENT_PROJECT_VERSION) diff --git a/OSGKeyboardTests/Info.plist b/OSGKeyboardTests/Info.plist index 6c40a6c..26b175d 100644 --- a/OSGKeyboardTests/Info.plist +++ b/OSGKeyboardTests/Info.plist @@ -15,8 +15,8 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleVersion - 1 + $(CURRENT_PROJECT_VERSION) diff --git a/OSGKeyboardUITests/Info.plist b/OSGKeyboardUITests/Info.plist index 6c40a6c..26b175d 100644 --- a/OSGKeyboardUITests/Info.plist +++ b/OSGKeyboardUITests/Info.plist @@ -15,8 +15,8 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleVersion - 1 + $(CURRENT_PROJECT_VERSION) diff --git a/project.yml b/project.yml index 9a6b7e2..7f4dbde 100644 --- a/project.yml +++ b/project.yml @@ -399,6 +399,9 @@ targets: - "include/**" info: path: OSGKeyboardShared/Info.plist + properties: + CFBundleShortVersionString: "$(MARKETING_VERSION)" + CFBundleVersion: "$(CURRENT_PROJECT_VERSION)" settings: base: PRODUCT_BUNDLE_IDENTIFIER: com.osgkeyboard.ios.shared @@ -433,6 +436,9 @@ targets: - path: OSGKeyboardHostSupport info: path: OSGKeyboardHostSupport/Info.plist + properties: + CFBundleShortVersionString: "$(MARKETING_VERSION)" + CFBundleVersion: "$(CURRENT_PROJECT_VERSION)" settings: base: PRODUCT_BUNDLE_IDENTIFIER: com.osgkeyboard.ios.hostsupport @@ -465,6 +471,9 @@ targets: - path: Tests/ProviderToolRequestCoordinatorTests.swift info: path: OSGKeyboardTests/Info.plist + properties: + CFBundleShortVersionString: "$(MARKETING_VERSION)" + CFBundleVersion: "$(CURRENT_PROJECT_VERSION)" dependencies: - target: OSGKeyboard - target: OSGKeyboardHostSupport @@ -488,6 +497,9 @@ targets: buildPhase: resources info: path: OSGKeyboardExtTests/Info.plist + properties: + CFBundleShortVersionString: "$(MARKETING_VERSION)" + CFBundleVersion: "$(CURRENT_PROJECT_VERSION)" dependencies: - target: OSGKeyboardShared settings: @@ -507,6 +519,9 @@ targets: - path: OSGKeyboardUITests info: path: OSGKeyboardUITests/Info.plist + properties: + CFBundleShortVersionString: "$(MARKETING_VERSION)" + CFBundleVersion: "$(CURRENT_PROJECT_VERSION)" dependencies: - target: OSGKeyboard settings: @@ -531,6 +546,9 @@ targets: - path: Tests/ProviderToolRequestCoordinatorTests.swift info: path: OSGKeyboardMacTests/Info.plist + properties: + CFBundleShortVersionString: "$(MARKETING_VERSION)" + CFBundleVersion: "$(CURRENT_PROJECT_VERSION)" dependencies: - target: OSGKeyboardMac settings: