Skip to content

Commit

Permalink
Merge pull request #227 from tatsuz0u/develop
Browse files Browse the repository at this point in the history
Features & Bugfixes
  • Loading branch information
tatsuz0u authored Feb 13, 2022
2 parents eca6597 + ac02d4d commit 294634c
Show file tree
Hide file tree
Showing 64 changed files with 2,932 additions and 674 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [closed]
env:
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app
APP_VERSION: '2.1.3'
APP_VERSION: '2.2.0'
SCHEME_NAME: 'EhPanda'
ALTSTORE_JSON_PATH: './AltStore.json'
BUILDS_PATH: '/tmp/action-builds'
Expand Down
120 changes: 99 additions & 21 deletions EhPanda.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions EhPanda/App/Constant.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@

// Code level contributors
"ehpanda.code.level.contributors.link.tatsuz0u" = "https://github.com/tatsuz0u";
"ehpanda.code.level.contributors.link.xioxin" = "https://github.com/xioxin";
"ehpanda.code.level.contributors.link.EthanChinCN" = "https://github.com/EthanChinCN";
"ehpanda.code.level.contributors.link.leng-yue" = "https://github.com/leng-yue";
"ehpanda.code.level.contributors.text.tatsuz0u" = "Tatsuzou Araki";
"ehpanda.code.level.contributors.text.xioxin" = "xioxin";
"ehpanda.code.level.contributors.text.EthanChinCN" = "Ethan Chin";
"ehpanda.code.level.contributors.text.leng-yue" = "LengYue";

Expand Down
9 changes: 3 additions & 6 deletions EhPanda/App/Tools/Clients/DatabaseClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,11 @@ extension DatabaseClient {
managedObject?.category = gallery.category.rawValue
managedObject?.coverURL = gallery.coverURL
managedObject?.galleryURL = gallery.galleryURL
if let language = gallery.language {
managedObject?.language = language.rawValue
}
// managedObject?.lastOpenDate = gallery.lastOpenDate
managedObject?.pageCount = Int64(gallery.pageCount)
managedObject?.postedDate = gallery.postedDate
managedObject?.rating = gallery.rating
managedObject?.tagStrings = gallery.tagStrings.toData()
managedObject?.tags = gallery.tags.toData()
managedObject?.title = gallery.title
managedObject?.token = gallery.token
if let uploader = gallery.uploader {
Expand Down Expand Up @@ -495,9 +492,9 @@ extension DatabaseClient {
case .search:
key = "searchFilter"
case .global:
key = "watchedFilter"
case .watched:
key = "globalFilter"
case .watched:
key = "watchedFilter"
}
return updateAppEnv(key: key, value: filter.toData())
}
Expand Down
4 changes: 2 additions & 2 deletions EhPanda/App/Tools/Clients/FileClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extension FileClient {
},
fetchLogs: {
Future { promise in
DispatchQueue.global().async {
DispatchQueue.global(qos: .userInitiated).async {
guard let path = FileUtil.logsDirectoryURL?.path,
let enumerator = FileManager.default.enumerator(atPath: path),
let fileNames = (enumerator.allObjects as? [String])?
Expand Down Expand Up @@ -72,7 +72,7 @@ extension FileClient {
},
importTagTranslator: { url in
Future { promise in
DispatchQueue.global().async {
DispatchQueue.global(qos: .userInitiated).async {
guard let data = try? Data(contentsOf: url),
let dict = try? JSONSerialization.jsonObject(with: data) as? [String: Any]
else {
Expand Down
1 change: 0 additions & 1 deletion EhPanda/App/Tools/Clients/LibraryClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ extension LibraryClient {
calculateWebImageDiskCacheSize: {
Future(KingfisherManager.shared.cache.calculateDiskStorageSize)
.eraseToAnyPublisher()
.subscribe(on: DispatchQueue.global())
.receive(on: DispatchQueue.main)
.catchToEffect()
}
Expand Down
7 changes: 3 additions & 4 deletions EhPanda/App/Tools/Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ struct Defaults {
static let logs = "logs"
static let ehpandaLog = "EhPanda.log"
}
struct ParsingMark {
static let hexStart = "hexStart<"
static let hexEnd = ">hexEnd"
}
struct URL {
static var host: Foundation.URL { AppUtil.galleryHost == .exhentai ? exhentai : ehentai }
static let ehentai: Foundation.URL = .init(string: "https://e-hentai.org/").forceUnwrapped
static let exhentai: Foundation.URL = .init(string: "https://exhentai.org/").forceUnwrapped

static let torrentDownload: Foundation.URL = .init(string: "https://ehgt.org/g/t.png").forceUnwrapped
static let torrentDownloadInvalid: Foundation.URL = .init(string: "https://ehgt.org/g/td.png").forceUnwrapped

static let forum: Foundation.URL = .init(string: "https://forums.e-hentai.org/index.php").forceUnwrapped
static let login = forum.appending(queryItems: [.act: .loginAct, .code: .zeroOne])
static let webLogin = forum.appending(queryItems: [.act: .loginAct])
Expand Down
Loading

0 comments on commit 294634c

Please sign in to comment.