From e516a259820ae567d47c267becf356b231a66a8c Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Thu, 3 Oct 2024 12:33:43 -0400 Subject: [PATCH] Bump version info for version 3.6.1. --- Spellbook.xcodeproj/project.pbxproj | 8 ++++---- Spellbook/VersionInfo.swift | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Spellbook.xcodeproj/project.pbxproj b/Spellbook.xcodeproj/project.pbxproj index 36afd10..08085ad 100644 --- a/Spellbook.xcodeproj/project.pbxproj +++ b/Spellbook.xcodeproj/project.pbxproj @@ -1017,7 +1017,7 @@ CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; "CODE_SIGN_STYLE[sdk=iphoneos*]" = Automatic; - CURRENT_PROJECT_VERSION = 50; + CURRENT_PROJECT_VERSION = 51; DEFINES_MODULE = NO; DEVELOPMENT_TEAM = RSR87G74R7; EXCLUDED_ARCHS = ""; @@ -1027,7 +1027,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.6.0; + MARKETING_VERSION = 3.6.1; PRODUCT_BUNDLE_IDENTIFIER = dnd.jon.Spellbook; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1046,7 +1046,7 @@ CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; "CODE_SIGN_STYLE[sdk=iphoneos*]" = Automatic; - CURRENT_PROJECT_VERSION = 50; + CURRENT_PROJECT_VERSION = 51; DEFINES_MODULE = NO; DEVELOPMENT_TEAM = RSR87G74R7; EXCLUDED_ARCHS = ""; @@ -1056,7 +1056,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.6.0; + MARKETING_VERSION = 3.6.1; PRODUCT_BUNDLE_IDENTIFIER = dnd.jon.Spellbook; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/Spellbook/VersionInfo.swift b/Spellbook/VersionInfo.swift index c603ba5..02347e4 100644 --- a/Spellbook/VersionInfo.swift +++ b/Spellbook/VersionInfo.swift @@ -11,17 +11,18 @@ import SWXMLHash class VersionInfo { - static let version = Version(major: 3, minor: 6, patch: 0) - static let previousVersion = Version(major: 3, minor: 5, patch: 0) + static let version = Version(major: 3, minor: 6, patch: 1) + static let previousVersion = Version(major: 3, minor: 6, patch: 0) - static let currentVersionKey = "v_" + version.string(separator: "_") + static let updateLogVersion = Version(major: 3, minor: 6, patch: 0) + static let updateLogVersionKey = "v_" + updateLogVersion.string(separator: "_") static let (updateTitle, updateText): (String, String) = { let infoFile = Bundle.main.url(forResource: "UpdateInfo", withExtension: "xml")! let data = try! String(contentsOf: infoFile) let xmlDoc = XMLHash.parse(data) do { - let updateSection = try xmlDoc["root"]["section"].withAttribute("name", VersionInfo.currentVersionKey) + let updateSection = try xmlDoc["root"]["section"].withAttribute("name", VersionInfo.updateLogVersionKey) let updateTitleText = try updateSection["item"].withAttribute("name", "title").element!.text let updateDescriptionText = try updateSection["item"].withAttribute("name", "description").element!.text