diff --git a/AlamofireKit.podspec b/AlamofireKit.podspec index 7be85ad..e27b33f 100644 --- a/AlamofireKit.podspec +++ b/AlamofireKit.podspec @@ -16,12 +16,12 @@ # * pod lib lint --allow-warnings # * Push to git and release # * pod trunk push --allow-warnings ORRR>> pod trunk push AlamofireKit.podspec --allow-warnings -# AlamofireKit Version = 0.1.0 +# AlamofireKit Version = 0.1.1 Pod::Spec.new do |s| s.name = 'AlamofireKit' - s.version = '0.1.0' + s.version = '0.1.1' s.summary = 'A short description of AlamofireKit.' # This description is used to generate tags and improve search results. diff --git a/Example/AlamofireKit/ViewController.swift b/Example/AlamofireKit/ViewController.swift index 81ce31b..9547c98 100644 --- a/Example/AlamofireKit/ViewController.swift +++ b/Example/AlamofireKit/ViewController.swift @@ -7,6 +7,7 @@ // import UIKit +import AlamofireKit class ViewController: UIViewController { diff --git a/Source/AlamofireKit.swift b/Source/AlamofireKit.swift index 683152a..48b6084 100644 --- a/Source/AlamofireKit.swift +++ b/Source/AlamofireKit.swift @@ -4,7 +4,7 @@ // // Created by Rz Rasel on 2021-01-24. // -// AlamofireKit Version = '0.1.0' +// AlamofireKit Version = '0.1.1' // Version = '0.1.0' import Foundation @@ -22,13 +22,15 @@ public class AlamofireKit { requestModifier: RequestModifier? = nil) { let request = AF.request(convertible, method: method, parameters: parameters, encoding: URLEncoding.default, headers: headers) request.responseJSON { response in - debugPrint("DEBUG_LOG_PRINT: response data url \(String(describing: response.request)) line: \(#line)") - debugPrint("DEBUG_LOG_PRINT: status code \(String(describing: response.response?.statusCode)) line: \(#line)") +// debugPrint("DEBUG_LOG_PRINT: response data url \(String(describing: response.request)) line: \(#line)") +// debugPrint("DEBUG_LOG_PRINT: status code \(String(describing: response.response?.statusCode)) line: \(#line)") + print("DEBUG_LOG_PRINT: response data url \(String(describing: response.request)) line: \(#line)") + print("DEBUG_LOG_PRINT: status code \(String(describing: response.response?.statusCode)) line: \(#line)") guard let responseData = response.value else { - debugPrint("DEBUG_LOG_PRINT: data error \(String(describing: response.error)) line: \(#line)") + print("DEBUG_LOG_PRINT: data error \(String(describing: response.error)) line: \(#line)") return } - debugPrint("DEBUG_LOG_PRINT: data success \(responseData) line: \(#line)") + print("DEBUG_LOG_PRINT: data success \(responseData) line: \(#line)") } } public typealias Completion = (_ success: Bool, _ data: T) -> Void @@ -46,8 +48,8 @@ public class AlamofireKit { requestModifier: RequestModifier? = nil) { let request = AF.request(convertible, method: method, parameters: parameters, encoding: encoding, headers: headers) request.responseDecodable(of: dataModel.self) { (response) in - debugPrint("DEBUG_LOG_PRINT: request url \(String(describing: response.request)) line: \(#line)") - debugPrint("DEBUG_LOG_PRINT: status code \(String(describing: response.response?.statusCode)) line: \(#line)") + print("DEBUG_LOG_PRINT: request url \(String(describing: response.request)) line: \(#line)") + print("DEBUG_LOG_PRINT: status code \(String(describing: response.response?.statusCode)) line: \(#line)") guard let responseData = response.value else { completion(false, nil, response.error) return