From bcc9242984be063108fcfc2eabeaf4915c54c746 Mon Sep 17 00:00:00 2001 From: bikash giri Date: Thu, 18 Jul 2024 17:03:53 +0545 Subject: [PATCH] remove warnings from khalticheckout.podspec --- KhaltiCheckout.podspec | 1 + .../Assets/CheckOut.storyboard | 0 KhaltiCheckout/Classes/Service/KhaltiApi.swift | 5 ++--- 3 files changed, 3 insertions(+), 3 deletions(-) rename CheckOut.storyboard => KhaltiCheckout/Assets/CheckOut.storyboard (100%) diff --git a/KhaltiCheckout.podspec b/KhaltiCheckout.podspec index 9c2f297..7280d9e 100644 --- a/KhaltiCheckout.podspec +++ b/KhaltiCheckout.podspec @@ -25,4 +25,5 @@ Pod::Spec.new do |s| 'KhaltiCheckout' => ['KhaltiCheckout/Assets/**/*.{png,storyboard,xib,xcassets}'] } s.frameworks = 'UIKit' + s.swift_versions = '4.0' end diff --git a/CheckOut.storyboard b/KhaltiCheckout/Assets/CheckOut.storyboard similarity index 100% rename from CheckOut.storyboard rename to KhaltiCheckout/Assets/CheckOut.storyboard diff --git a/KhaltiCheckout/Classes/Service/KhaltiApi.swift b/KhaltiCheckout/Classes/Service/KhaltiApi.swift index 2588a7b..a285132 100644 --- a/KhaltiCheckout/Classes/Service/KhaltiApi.swift +++ b/KhaltiCheckout/Classes/Service/KhaltiApi.swift @@ -86,8 +86,8 @@ extension KhaltiAPIService:KhaltiApiServiceProtocol{ if isConnected{ print("===========================================================") print("Request Url:") - print (request.url) - print(request.allHTTPHeaderFields) + print (request.url ?? "url empty") + print(request.allHTTPHeaderFields ?? "empty header") print("===========================================================") if let bodyData = request.httpBody { @@ -160,7 +160,6 @@ extension KhaltiAPIService:KhaltiApiServiceProtocol{ return } - let errorMessage = String(data:data,encoding: .utf8) print("===========================================================") print("Received JSON data:", String(data: data, encoding: .utf8) ?? "Invalid UTF-8 data") print("===========================================================")