Skip to content

Commit

Permalink
Update dependencies (#970)
Browse files Browse the repository at this point in the history
* Update SPM dependencies

* Fix warnings

* Add PDFViewControllerDelegate logging
  • Loading branch information
mvasilak committed Jun 27, 2024
1 parent 94cbde2 commit 3dab779
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ ns_number_init_as_function_reference: error

opening_brace:
severity: error
allowMultilineFunc: true
allow_multiline_func: true

operator_usage_whitespace:
severity: error
Expand Down Expand Up @@ -213,7 +213,7 @@ return_arrow_whitespace: error

self_binding:
severity: error
bindIdentifier: self
bind_identifier: self

self_in_property_initialization: error

Expand Down
2 changes: 1 addition & 1 deletion ZShare/ViewModels/ExtensionViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ final class ExtensionViewModel {
guard let response = responses.first else { return .unknown }
return alamoErrorRequiresAbort(.responseValidationFailed(reason: .unacceptableStatusCode(code: response.code)), url: nil, libraryId: libraryId)

case .authorizationFailed(let statusCode, let response, _):
case .authorizationFailed(let statusCode, _, _):
return alamoErrorRequiresAbort(.responseValidationFailed(reason: .unacceptableStatusCode(code: statusCode)), url: nil, libraryId: libraryId)

default:
Expand Down
4 changes: 2 additions & 2 deletions Zotero.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6561,7 +6561,7 @@
repositoryURL = "https://github.com/realm/realm-cocoa";
requirement = {
kind = exactVersion;
version = 10.51.0;
version = 10.52.0;
};
};
B35E4B8B25248B3C000EA134 /* XCRemoteSwiftPackageReference "RxSwift" */ = {
Expand All @@ -6577,7 +6577,7 @@
repositoryURL = "https://github.com/PSPDFKit/PSPDFKit-SP";
requirement = {
kind = exactVersion;
version = 13.6.0;
version = 13.7.0;
};
};
B3D84BEE27919FDE005DDD7C /* XCRemoteSwiftPackageReference "Starscream" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/PSPDFKit/PSPDFKit-SP",
"state" : {
"revision" : "22a0f57712dab4f8b7c196c6e02e533c225c357d",
"version" : "13.6.0"
"revision" : "fff37620437d93571e38675440da5257ff4a9fd5",
"version" : "13.7.0"
}
},
{
Expand All @@ -96,17 +96,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/realm/realm-cocoa",
"state" : {
"revision" : "4c4413abd0cd2221f59318f800960fe5bddc1494",
"version" : "10.51.0"
"revision" : "fb903a9c901cb7863953fdcb5182b05ca2275b27",
"version" : "10.52.0"
}
},
{
"identity" : "realm-core",
"kind" : "remoteSourceControl",
"location" : "https://github.com/realm/realm-core.git",
"state" : {
"revision" : "f3d7ae5f9f31d90b327a64536bb7801cc69fd85b",
"version" : "14.9.0"
"revision" : "058ecce712b4be8b2a2384ed893bf83d56a49fc0",
"version" : "14.10.1"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,12 @@ extension PDFDocumentViewController: PDFViewControllerDelegate {
func pdfViewController(_ pdfController: PDFViewController, didSelectText text: String, with glyphs: [Glyph], at rect: CGRect, on pageView: PDFPageView) {
parentDelegate?.didSelectText(text)
}

func pdfViewController(_ pdfController: PDFViewController, didFinishRenderTaskFor pageView: PDFPageView, error: (any Error)?) {
if let error {
DDLogError("PDFDocumentViewController: PDFViewController didFinishRenderTaskFor \(pageView) with error - \(error)")
}
}
}

extension PDFDocumentViewController: BackForwardActionListDelegate {
Expand Down

0 comments on commit 3dab779

Please sign in to comment.