From fea44151219031272213d25d646285c8c9f7284a Mon Sep 17 00:00:00 2001 From: Martin Andonoski Date: Mon, 7 Feb 2022 14:01:16 +0100 Subject: [PATCH] Decodable compatibility update (#35) --- CHANGELOG.md | 3 +++ Lift.xcodeproj/project.pbxproj | 4 ++-- Lift/Jar+Context.swift | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af86182..4f8c3fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.5.1 +- Make vals dictionary retrievable from Jar.Context so it can be used in compatibility code with other encoding systems like Codable. + # 2.4.0 - Xcode 13.0 compatibility diff --git a/Lift.xcodeproj/project.pbxproj b/Lift.xcodeproj/project.pbxproj index 5d25b4e..60389a3 100644 --- a/Lift.xcodeproj/project.pbxproj +++ b/Lift.xcodeproj/project.pbxproj @@ -420,7 +420,7 @@ INFOPLIST_FILE = Lift/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @loader_path/../Frameworks @executable_path/../Frameworks"; - MARKETING_VERSION = 2.4.0; + MARKETING_VERSION = 2.5.1; PRODUCT_BUNDLE_IDENTIFIER = com.iZettle.Lift; PRODUCT_NAME = Lift; SKIP_INSTALL = YES; @@ -441,7 +441,7 @@ INFOPLIST_FILE = Lift/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @loader_path/../Frameworks @executable_path/../Frameworks"; - MARKETING_VERSION = 2.4.0; + MARKETING_VERSION = 2.5.1; PRODUCT_BUNDLE_IDENTIFIER = com.iZettle.Lift; PRODUCT_NAME = Lift; SKIP_INSTALL = YES; diff --git a/Lift/Jar+Context.swift b/Lift/Jar+Context.swift index 33d7830..b341d98 100644 --- a/Lift/Jar+Context.swift +++ b/Lift/Jar+Context.swift @@ -36,6 +36,8 @@ public extension Jar { public init(_ vals: JarContextValue?...) { self.init(vals) } + + public func getVals() -> [String: Any] { vals } } /// Creates a union between `self` context and `val`, where `val` context values will be replacing the same context value's in `self`'s context if they already exists