Skip to content

Commit

Permalink
update to swift6
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanStepanok committed Nov 14, 2024
1 parent fbd8c9c commit 3a75ad6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"originHash" : "5e69a65bc13b6866cc012a28d126dae3f03ac53e850f32034103be9b5d345cad",
"originHash" : "ee6d6be087c1c8e2ed6684d6a4f831d394852582ea94dc76e1bf4efa9f1768b8",
"pins" : [
{
"identity" : "alamofire",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Alamofire/Alamofire.git",
"state" : {
"revision" : "b2fa556e4e48cbf06cf8c63def138c98f4b811fa",
"version" : "5.8.0"
"revision" : "e16d3481f5ed35f0472cb93350085853d754913f",
"version" : "5.10.1"
}
},
{
"identity" : "kingfisher",
"kind" : "remoteSourceControl",
"location" : "https://github.com/onevcat/Kingfisher.git",
"state" : {
"revision" : "b6f62758f21a8c03cd64f4009c037cfa580a256e",
"version" : "7.9.1"
"revision" : "c0940e241945e6378c01fbd45fd3815579d47ef5",
"version" : "8.1.0"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/Alamofire/Alamofire.git", exact: "5.8.0"),
.package(url: "https://github.com/onevcat/Kingfisher.git", exact: "7.9.1"),
.package(url: "https://github.com/Alamofire/Alamofire.git", exact: "5.10.1"),
.package(url: "https://github.com/onevcat/Kingfisher.git", exact: "8.1.0"),
.package(url: "https://github.com/siteline/swiftui-introspect", from: "1.3.0"),
.package(url: "https://github.com/Swinject/Swinject.git", from: "2.9.1"),
.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", from: "0.57.0")
Expand Down
4 changes: 2 additions & 2 deletions Sources/OEXFoundation/Network/API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,12 @@ public struct CustomGetEncoding: ParameterEncoding {
}

extension Encodable {
func asDictionary() throws -> [String: Any] {
func asDictionary() throws -> [String: any Any & Sendable] {
let data = try JSONEncoder().encode(self)
guard let dictionary = try JSONSerialization.jsonObject(
with: data,
options: .fragmentsAllowed
) as? [String: Any] else {
) as? [String: any Any & Sendable] else {
throw NSError(
domain: "com.oexfoundation.error",
code: 1,
Expand Down
2 changes: 1 addition & 1 deletion Sources/OEXFoundation/Network/HeadersRedirectHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import Alamofire

public class HeadersRedirectHandler: RedirectHandler {
public final class HeadersRedirectHandler: RedirectHandler {

public init() {
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/OEXFoundation/Network/NetworkLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Alamofire
import Foundation

public class NetworkLogger: EventMonitor {
public final class NetworkLogger: EventMonitor {

public let queue = DispatchQueue(label: "com.raccoongang.networklogger")

Expand Down

0 comments on commit 3a75ad6

Please sign in to comment.