Skip to content

Commit

Permalink
Merge pull request #39 from Carifio24/v3-6-1
Browse files Browse the repository at this point in the history
Bump version info for version 3.6.1.
  • Loading branch information
Carifio24 authored Oct 3, 2024
2 parents 20babaf + e516a25 commit 8c7f4b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Spellbook.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand All @@ -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 = "";
Expand All @@ -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 = "";
Expand All @@ -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 = "";
Expand Down
9 changes: 5 additions & 4 deletions Spellbook/VersionInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8c7f4b5

Please sign in to comment.