Skip to content

Commit

Permalink
Update dependencies [skip test]
Browse files Browse the repository at this point in the history
  • Loading branch information
chihchy committed Jan 27, 2024
1 parent cf491b2 commit 5e77891
Show file tree
Hide file tree
Showing 42 changed files with 349 additions and 347 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/onevcat/Kingfisher.git",
"state" : {
"revision" : "277f1ab2c6664b19b4a412e32b094b201e2d5757",
"version" : "7.10.0"
"revision" : "3ec0ab0bca4feb56e8b33e289c9496e89059dd08",
"version" : "7.10.2"
}
},
{
Expand Down Expand Up @@ -95,8 +95,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections",
"state" : {
"revision" : "a902f1823a7ff3c9ab2fba0f992396b948eda307",
"version" : "1.0.5"
"revision" : "d029d9d39c87bed85b1c50adee7c41795261a192",
"version" : "1.0.6"
}
},
{
Expand Down
10 changes: 5 additions & 5 deletions EhPanda/App/Tools/Clients/AppDelegateClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import SwiftUI
import ComposableArchitecture

struct AppDelegateClient {
let setOrientation: (UIInterfaceOrientationMask) -> EffectTask<Never>
let setOrientationMask: (UIInterfaceOrientationMask) -> EffectTask<Never>
let setOrientation: (UIInterfaceOrientationMask) -> Effect<Never>
let setOrientationMask: (UIInterfaceOrientationMask) -> Effect<Never>
}

extension AppDelegateClient {
Expand All @@ -27,13 +27,13 @@ extension AppDelegateClient {
}
)

func setPortraitOrientation() -> EffectTask<Never> {
func setPortraitOrientation() -> Effect<Never> {
setOrientation(.portrait)
}
func setAllOrientationMask() -> EffectTask<Never> {
func setAllOrientationMask() -> Effect<Never> {
setOrientationMask([.all])
}
func setPortraitOrientationMask() -> EffectTask<Never> {
func setPortraitOrientationMask() -> Effect<Never> {
setOrientationMask([.portrait, .portraitUpsideDown])
}
}
Expand Down
2 changes: 1 addition & 1 deletion EhPanda/App/Tools/Clients/AuthorizationClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ComposableArchitecture

struct AuthorizationClient {
let passcodeNotSet: () -> Bool
let localAuthroize: (String) -> EffectTask<Bool>
let localAuthroize: (String) -> Effect<Bool>
}

extension AuthorizationClient {
Expand Down
4 changes: 2 additions & 2 deletions EhPanda/App/Tools/Clients/ClipboardClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import UniformTypeIdentifiers
struct ClipboardClient {
let url: () -> URL?
let changeCount: () -> Int
let saveText: (String) -> EffectTask<Never>
let saveImage: (UIImage, Bool) -> EffectTask<Never>
let saveText: (String) -> Effect<Never>
let saveImage: (UIImage, Bool) -> Effect<Never>
}

extension ClipboardClient {
Expand Down
20 changes: 10 additions & 10 deletions EhPanda/App/Tools/Clients/CookieClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import ComposableArchitecture

struct CookieClient {
let clearAll: () -> EffectTask<Never>
let clearAll: () -> Effect<Never>
let getCookie: (URL, String) -> CookieValue
private let removeCookie: (URL, String) -> Void
private let checkExistence: (URL, String) -> Bool
Expand Down Expand Up @@ -108,7 +108,7 @@ extension CookieClient {
guard let cookie = newCookie else { return }
HTTPCookieStorage.shared.setCookie(cookie)
}
func setOrEditCookie(for url: URL, key: String, value: String) -> EffectTask<Never> {
func setOrEditCookie(for url: URL, key: String, value: String) -> Effect<Never> {
.fireAndForget {
if checkExistence(url, key) {
editCookie(for: url, key: key, value: value)
Expand Down Expand Up @@ -138,13 +138,13 @@ extension CookieClient {
&& !getCookie(url, Defaults.Cookie.ipbPassHash).rawValue.isEmpty
&& getCookie(url, Defaults.Cookie.igneous).rawValue.isEmpty
}
func removeYay() -> EffectTask<Never> {
func removeYay() -> Effect<Never> {
.fireAndForget {
removeCookie(Defaults.URL.exhentai, Defaults.Cookie.yay)
removeCookie(Defaults.URL.sexhentai, Defaults.Cookie.yay)
}
}
func syncExCookies() -> EffectTask<Never> {
func syncExCookies() -> Effect<Never> {
.merge(
[
Defaults.Cookie.ipbMemberId,
Expand All @@ -160,13 +160,13 @@ extension CookieClient {
}
)
}
func ignoreOffensive() -> EffectTask<Never> {
func ignoreOffensive() -> Effect<Never> {
.merge(
setOrEditCookie(for: Defaults.URL.ehentai, key: Defaults.Cookie.ignoreOffensive, value: "1"),
setOrEditCookie(for: Defaults.URL.exhentai, key: Defaults.Cookie.ignoreOffensive, value: "1")
)
}
func fulfillAnotherHostField() -> EffectTask<Never> {
func fulfillAnotherHostField() -> Effect<Never> {
let ehURL = Defaults.URL.ehentai
let exURL = Defaults.URL.exhentai
let memberIdKey = Defaults.Cookie.ipbMemberId
Expand Down Expand Up @@ -218,8 +218,8 @@ extension CookieClient {

// MARK: SetCookies
extension CookieClient {
func setCookies(state: CookiesState, trimsSpaces: Bool = true) -> EffectTask<Never> {
let effects: [EffectTask<Never>] = state.allCases
func setCookies(state: CookiesState, trimsSpaces: Bool = true) -> Effect<Never> {
let effects: [Effect<Never>] = state.allCases
.flatMap { subState in
state.host.cookieURLs
.map {
Expand All @@ -233,7 +233,7 @@ extension CookieClient {
}
return effects.isEmpty ? .none : .merge(effects)
}
func setCredentials(response: HTTPURLResponse) -> EffectTask<Never> {
func setCredentials(response: HTTPURLResponse) -> Effect<Never> {
.fireAndForget {
guard let setString = response.allHeaderFields["Set-Cookie"] as? String else { return }
setString.components(separatedBy: ", ")
Expand All @@ -252,7 +252,7 @@ extension CookieClient {
}
}
}
func setSkipServer(response: HTTPURLResponse) -> EffectTask<Never> {
func setSkipServer(response: HTTPURLResponse) -> Effect<Never> {
.fireAndForget {
guard let setString = response.allHeaderFields["Set-Cookie"] as? String else { return }
setString.components(separatedBy: ", ")
Expand Down
2 changes: 1 addition & 1 deletion EhPanda/App/Tools/Clients/DFClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Kingfisher
import ComposableArchitecture

struct DFClient {
let setActive: (Bool) -> EffectTask<Never>
let setActive: (Bool) -> Effect<Never>
}

extension DFClient {
Expand Down
Loading

0 comments on commit 5e77891

Please sign in to comment.