Skip to content

Commit

Permalink
Merge branch 'update/v1.5.6' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sagishm committed Sep 4, 2023
2 parents c9cb2ce + c96b59b commit 2efbab0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions GigyaSwift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2590,7 +2590,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.5.5;
MARKETING_VERSION = 1.5.6;
MODULEMAP_FILE = "";
MODULEMAP_PRIVATE_FILE = "";
ONLY_ACTIVE_ARCH = NO;
Expand Down Expand Up @@ -2651,7 +2651,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.5.5;
MARKETING_VERSION = 1.5.6;
MODULEMAP_FILE = "";
MODULEMAP_PRIVATE_FILE = "";
ONLY_ACTIVE_ARCH = NO;
Expand Down
3 changes: 2 additions & 1 deletion GigyaSwift/Global/Api/BusinessApiService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,10 @@ class BusinessApiService: NSObject, BusinessApiServiceProtocol {

GigyaLogger.log(with: self, message: "[finalizeRegistration] - params: \(params)")

send(dataType: T.self, api: GigyaDefinitions.API.finalizeRegistration, params: params) { result in
send(dataType: T.self, api: GigyaDefinitions.API.finalizeRegistration, params: params) { [weak accountService] result in
switch result {
case .success(let data):
accountService?.account = data
completion(.success(data: data))

GigyaLogger.log(with: BusinessApiService.self, message: "[finalizeRegistration] - success")
Expand Down
8 changes: 5 additions & 3 deletions GigyaSwift/Global/Plugins/GigyaWebBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ final public class GigyaWebBridge<T: GigyaAccountProtocol>: NSObject, WKScriptMe

GigyaLogger.log(with: self, message: "JS Interface:\n\(JSInterface)")

if #available(iOS 16.4, *), GigyaLogger.isDebug() {
self.webView?.isInspectable = true
}
#if compiler(>=5.8) && DEBUG
if #available(iOS 16.4, *), GigyaLogger.isDebug() {
self.webView?.isInspectable = true
}
#endif

}

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.5"
internal static let version = "\(GigyaDefinitions.versionPrefix ?? "")ios_swift_1.5.6"
internal static let sdkDomain = "com.gigya.GigyaSDK"
internal static let defaultLang = "en"
}
Expand Down
3 changes: 3 additions & 0 deletions GigyaSwift/Network/Service/NetworkProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ final class NetworkProvider {
}
}

// Add apikey to header
request.setValue(config?.apiKey, forHTTPHeaderField: "apikey")

request.timeoutInterval = TimeInterval(config?.requestTimeout ?? InternalConfig.Network.requestTimeoutDefult)

// Encode body request to params
Expand Down

0 comments on commit 2efbab0

Please sign in to comment.