Skip to content

Commit

Permalink
CXCDC-12574 - fix crash in retry logics
Browse files Browse the repository at this point in the history
  • Loading branch information
sagishm committed Jul 24, 2023
1 parent 45fa5f2 commit 52bb556
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gigya.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'Gigya'
spec.version = '1.5.3'
spec.version = '1.5.4'
spec.license = 'Apache 2.0'
spec.homepage = 'https://developers.gigya.com/display/GD/Swift+SDK'
spec.author = 'Gigya SAP'
Expand All @@ -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.5.3' }
spec.source = { :git => 'https://github.com/SAP/gigya-swift-sdk.git', :tag => 'core/v1.5.4' }
spec.module_name = 'Gigya'
spec.swift_version = '5.3'

Expand Down
4 changes: 2 additions & 2 deletions GigyaSwift/Global/Api/ApiService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ final class ApiService: ApiServiceProtocol {
sessionService?.setSession(gigyaResponse.sessionInfo)

// retry when the error is request expired
if isRetryNeeded(with: gigyaResponse.errorCode) {
let retryDispacer = NetworkRetryDispacher<T>(networkAdapter: networkAdapter, tmpModel: tmpData!)
if isRetryNeeded(with: gigyaResponse.errorCode), let tmpData = tmpData {
let retryDispacer = NetworkRetryDispacher<T>(networkAdapter: networkAdapter, tmpModel: tmpData)
retryDispacer.startRetry { [weak self] (data) in
self?.validateResult(responseType: T.self, data: data, completion: completion)
}
Expand Down
2 changes: 1 addition & 1 deletion GigyaSwift/Models/Config/InternalConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation

struct InternalConfig {
struct General {
internal static let version = "\(GigyaDefinitions.versionPrefix ?? "")ios_swift_1.5.3"
internal static let version = "\(GigyaDefinitions.versionPrefix ?? "")ios_swift_1.5.4"
internal static let sdkDomain = "com.gigya.GigyaSDK"
internal static let defaultLang = "en"
}
Expand Down

0 comments on commit 52bb556

Please sign in to comment.