Skip to content

Commit

Permalink
Bump version to 1.5.18 and update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexyIbrahim committed Oct 14, 2024
1 parent 2ec067f commit 879483c
Show file tree
Hide file tree
Showing 12 changed files with 266 additions and 305 deletions.

This file was deleted.

2 changes: 1 addition & 1 deletion Example/Example/Core/Blueprint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ enum APIBlueprints {
case .postMethod:
return "post"
case .error:
return "status/404"
return "status/401"
}
}

Expand Down
4 changes: 2 additions & 2 deletions Example/Example/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class ViewController: MasterViewController {
// Do any additional setup after loading the view.

// getAPITest()
// postAPITest()
errorTest()
postAPITest()
// errorTest()
}

// func getAPITest() {
Expand Down
12 changes: 6 additions & 6 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"repositoryURL": "https://github.com/Alamofire/Alamofire.git",
"state": {
"branch": null,
"revision": "78424be314842833c04bc3bef5b72e85fff99204",
"version": "5.6.4"
"revision": "ea6a94b7dddffd0ca4d0f29252d95310b84dec84",
"version": "5.10.0"
}
},
{
"package": "ProgressHUD",
"repositoryURL": "https://github.com/relatedcode/ProgressHUD.git",
"state": {
"branch": null,
"revision": "2b80c6f5a091c76a01f080545723f9b0bcf928cd",
"version": "13.6.2"
"revision": "9364904a42cb25f58d026451140c4080a868e72e",
"version": "14.1.3"
}
},
{
Expand All @@ -33,8 +33,8 @@
"repositoryURL": "https://github.com/SwiftyJSON/SwiftyJSON.git",
"state": {
"branch": null,
"revision": "b3dcd7dbd0d488e1a7077cb33b00f2083e382f07",
"version": "5.0.1"
"revision": "af76cf3ef710b6ca5f8c05f3a31307d44a3c5828",
"version": "5.0.2"
}
}
]
Expand Down
16 changes: 8 additions & 8 deletions Sources/AINetworkCalls/AIContract.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Promises
import SwiftyJSON

public typealias Headers = HTTPHeaders
public typealias Parameters = [String: Any]
public typealias ParametersType = [String: Any]

public enum Module: String {
case sandbox
Expand All @@ -21,8 +21,8 @@ public enum Module: String {

public protocol AIServiceModule {
var method: AIHTTPMethod { get }
var bodyParameters: Parameters? { get }
var queryParameters: Parameters? { get }
var bodyParameters: ParametersType? { get }
var queryParameters: ParametersType? { get }
var aiUrl: AIUrl { get }
var headers: HTTPHeaders? { get }
var timeout: TimeInterval { get }
Expand All @@ -33,9 +33,9 @@ public protocol AIServiceModule {

public extension AIServiceModule {
var method: AIHTTPMethod { .get }
var bodyParameters: Parameters? { nil }
var bodyParameters: ParametersType? { nil }
var timeout: TimeInterval { 60 }
var queryParameters: Parameters? { nil }
var queryParameters: ParametersType? { nil }
var headers: HTTPHeaders? { nil }
var handleProgress: Bool? { nil }
var endpoint: String? { nil }
Expand Down Expand Up @@ -74,11 +74,11 @@ public class AIServiceWrapper {
}

extension AIServiceWrapper {
var defaultParameters: Parameters? { return nil }
var defaultParameters: ParametersType? { return nil }

var queryParameters: Parameters? { serviceContract.queryParameters }
var queryParameters: ParametersType? { serviceContract.queryParameters }

var bodyParameters: Parameters? { serviceContract.bodyParameters }
var bodyParameters: ParametersType? { serviceContract.bodyParameters }

var method: AIHTTPMethod { serviceContract.method }

Expand Down
Loading

0 comments on commit 879483c

Please sign in to comment.