Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 0295734

Browse files
committed
“pre-0.1.0”
1 parent 7452a26 commit 0295734

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Whisky.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
"@executable_path/../Frameworks",
451451
);
452452
MACOSX_DEPLOYMENT_TARGET = 13.0;
453-
MARKETING_VERSION = 0.1.0;
453+
MARKETING_VERSION = "pre-0.1.0";
454454
PRODUCT_BUNDLE_IDENTIFIER = com.isaacmarovitz.Whisky;
455455
PRODUCT_NAME = "$(TARGET_NAME)";
456456
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -481,7 +481,7 @@
481481
"@executable_path/../Frameworks",
482482
);
483483
MACOSX_DEPLOYMENT_TARGET = 13.0;
484-
MARKETING_VERSION = 0.1.0;
484+
MARKETING_VERSION = "pre-0.1.0";
485485
PRODUCT_BUNDLE_IDENTIFIER = com.isaacmarovitz.Whisky;
486486
PRODUCT_NAME = "$(TARGET_NAME)";
487487
SWIFT_EMIT_LOC_STRINGS = YES;

Whisky/Models/BottleSettings.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ class BottleSettings {
4141
do {
4242
let data = try Data(contentsOf: settingsUrl)
4343
settings = try PropertyListDecoder().decode(BottleSettingsData.self, from: data)
44+
if settings.wineVersion != BottleSettingsData().wineVersion {
45+
print("Bottle has a different wine version!")
46+
settings.wineVersion = BottleSettingsData().wineVersion
47+
}
4448
return true
4549
} catch {
4650
print(error)

0 commit comments

Comments
 (0)