From ba7783997c10e760e51a6487203caf59f059ab4c Mon Sep 17 00:00:00 2001 From: Sagi Date: Mon, 18 Oct 2021 09:58:10 +0300 Subject: [PATCH 1/2] fix bug in setAccount with complicated object. --- GigyaSwift/Global/Account/AccountService.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GigyaSwift/Global/Account/AccountService.swift b/GigyaSwift/Global/Account/AccountService.swift index cad0ee8d..c54c35aa 100644 --- a/GigyaSwift/Global/Account/AccountService.swift +++ b/GigyaSwift/Global/Account/AccountService.swift @@ -60,7 +60,11 @@ final class AccountService: AccountServiceProtocol { for item in new { if let itemAsDictionary = item.value as? [String: AnyObject], let olditemAsDictionary = old[item.key] as? [String: AnyObject] { - newObject[item.key] = getDiff(old: olditemAsDictionary, new: itemAsDictionary) as AnyObject + let diff = getDiff(old: olditemAsDictionary, new: itemAsDictionary) as [String: AnyObject] + + if diff.count != 0 { + newObject[item.key] = diff as AnyObject + } } else { if !item.value.isEqual(old[item.key]) { newObject[item.key] = item.value From f75859ac3618795fecdb111eb5177aba06b68d64 Mon Sep 17 00:00:00 2001 From: Sagi Date: Mon, 18 Oct 2021 10:48:47 +0300 Subject: [PATCH 2/2] update version --- Gigya.podspec | 4 ++-- GigyaSwift.xcodeproj/project.pbxproj | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Gigya.podspec b/Gigya.podspec index ef7c78f5..929ae146 100644 --- a/Gigya.podspec +++ b/Gigya.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'Gigya' - spec.version = '1.2.3' + spec.version = '1.2.4' spec.license = 'Apache 2.0' spec.homepage = 'https://developers.gigya.com/display/GD/Swift+SDK' spec.author = 'Gigya SAP' @@ -10,7 +10,7 @@ Pod::Spec.new do |spec| your Swift application DESC - spec.source = { :git => 'https://github.com/SAP/gigya-swift-sdk.git', :tag => 'core/v1.2.3' } + spec.source = { :git => 'https://github.com/SAP/gigya-swift-sdk.git', :tag => 'core/v1.2.4' } spec.module_name = 'Gigya' spec.swift_version = '5.3' diff --git a/GigyaSwift.xcodeproj/project.pbxproj b/GigyaSwift.xcodeproj/project.pbxproj index a4dac9f9..2c24d64e 100644 --- a/GigyaSwift.xcodeproj/project.pbxproj +++ b/GigyaSwift.xcodeproj/project.pbxproj @@ -2330,7 +2330,7 @@ CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 122; + CURRENT_PROJECT_VERSION = 124; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = 52P2295V75; DYLIB_COMPATIBILITY_VERSION = 1; @@ -2350,7 +2350,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.2.3; + MARKETING_VERSION = 1.2.4; MODULEMAP_FILE = ""; MODULEMAP_PRIVATE_FILE = ""; ONLY_ACTIVE_ARCH = NO; @@ -2389,7 +2389,7 @@ CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 122; + CURRENT_PROJECT_VERSION = 124; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = 52P2295V75; DYLIB_COMPATIBILITY_VERSION = 1; @@ -2409,7 +2409,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.2.3; + MARKETING_VERSION = 1.2.4; MODULEMAP_FILE = ""; MODULEMAP_PRIVATE_FILE = ""; ONLY_ACTIVE_ARCH = NO;