Skip to content

Commit

Permalink
Fix history storage
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJKM committed Mar 21, 2023
1 parent 123ae58 commit 9986fb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 6 additions & 12 deletions MensaGuthaben.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,11 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = MensaGuthaben/MensaGuthaben.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.3.32;
DEVELOPMENT_ASSET_PATHS = "\"MensaGuthaben/Preview Content\"";
DEVELOPMENT_TEAM = EBQF48FD36;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = EBQF48FD36;
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -484,8 +482,7 @@
MARKETING_VERSION = 1.3.1;
PRODUCT_BUNDLE_IDENTIFIER = com.johanneskreutz.mensaguthaben;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "MensaGuthaben Development 25.06.2021";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "MensaGuthaben 30.09.2022";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
Expand All @@ -499,13 +496,11 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = MensaGuthaben/MensaGuthaben.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.3.32;
DEVELOPMENT_ASSET_PATHS = "\"MensaGuthaben/Preview Content\"";
DEVELOPMENT_TEAM = EBQF48FD36;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = EBQF48FD36;
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -521,8 +516,7 @@
MARKETING_VERSION = 1.3.1;
PRODUCT_BUNDLE_IDENTIFIER = com.johanneskreutz.mensaguthaben;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "MensaGuthaben Development 25.06.2021";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "MensaGuthaben 30.09.2022";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
Expand Down
2 changes: 1 addition & 1 deletion MensaGuthaben/Classes/HistoryDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class HistoryDatabase {
if (sqlite3_bind_int(statement, 2, previous) != SQLITE_OK) {
throw HistoryError.Bind(message: errorMessage)
}
if (sqlite3_bind_text(statement, 3, card, -1, nil) != SQLITE_OK) {
if (sqlite3_bind_text(statement, 3, NSString(string: card).utf8String, -1, nil) != SQLITE_OK) {
throw HistoryError.Bind(message: errorMessage)
}
if (sqlite3_bind_int(statement, 4, date) != SQLITE_OK) {
Expand Down

0 comments on commit 9986fb8

Please sign in to comment.