From 3477e9aed0495be7b73e308367ad704de09db6ea Mon Sep 17 00:00:00 2001 From: Paul Tsochantaris Date: Mon, 10 Jul 2023 16:08:55 +0100 Subject: [PATCH] JSON deserialisation issue --- Shared/HTTP.swift | 2 +- Trailer.xcodeproj/project.pbxproj | 4 ++-- .../xcschemes/xcschememanagement.plist | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Shared/HTTP.swift b/Shared/HTTP.swift index 39bc718e..ca883378 100644 --- a/Shared/HTTP.swift +++ b/Shared/HTTP.swift @@ -56,7 +56,7 @@ enum HTTP { if case .success = result, Settings.dumpAPIResponsesInConsole { DLog("API data from \(request.url): \(data.description)") } - let json = try data.withVeryUnsafeBytes { try TrailerJson.parse(bytes: $0) as? JSON } + let json = try data.withVeryUnsafeBytes { try TrailerJson.parse(bytes: $0) } return (json ?? NSNull(), result) } diff --git a/Trailer.xcodeproj/project.pbxproj b/Trailer.xcodeproj/project.pbxproj index ace19312..3cb952f1 100644 --- a/Trailer.xcodeproj/project.pbxproj +++ b/Trailer.xcodeproj/project.pbxproj @@ -1587,7 +1587,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1649; + CURRENT_PROJECT_VERSION = 1650; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -1651,7 +1651,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1649; + CURRENT_PROJECT_VERSION = 1650; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEPLOYMENT_POSTPROCESSING = YES; diff --git a/Trailer.xcodeproj/xcuserdata/ptsochantaris.xcuserdatad/xcschemes/xcschememanagement.plist b/Trailer.xcodeproj/xcuserdata/ptsochantaris.xcuserdatad/xcschemes/xcschememanagement.plist index 8024a231..c27db1fe 100644 --- a/Trailer.xcodeproj/xcuserdata/ptsochantaris.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Trailer.xcodeproj/xcuserdata/ptsochantaris.xcuserdatad/xcschemes/xcschememanagement.plist @@ -17,7 +17,7 @@ PocketTrailer WidgetExtension.xcscheme_^#shared#^_ orderHint - 4 + 5 PocketTrailer.xcscheme_^#shared#^_ @@ -32,7 +32,7 @@ TrailerLauncher.xcscheme_^#shared#^_ orderHint - 5 + 4 SuppressBuildableAutocreation