diff --git a/Podfile b/Podfile index 14305a0d539f..287a56c4aced 100644 --- a/Podfile +++ b/Podfile @@ -55,8 +55,8 @@ def gravatar end def wordpress_kit - pod 'WordPressKit', '~> 17.0.0' - # pod 'WordPressKit', git: 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', commit: '' + # pod 'WordPressKit', '~> 17.0.0' + pod 'WordPressKit', git: 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', commit: 'eacdb6103dbcabe0804f9e7c028f1a656adeb41d' # pod 'WordPressKit', git: 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', branch: '' # pod 'WordPressKit', git: 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', tag: '' # pod 'WordPressKit', path: '../WordPressKit-iOS' diff --git a/Podfile.lock b/Podfile.lock index 16eb59d7a9c7..d4a219b73088 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -121,7 +121,7 @@ DEPENDENCIES: - SwiftLint (= 0.54.0) - WordPress-Editor-iOS (~> 1.19.11) - WordPressAuthenticator (>= 9.0.8, ~> 9.0) - - WordPressKit (~> 17.0.0) + - WordPressKit (from `https://github.com/wordpress-mobile/WordPressKit-iOS.git`, commit `eacdb6103dbcabe0804f9e7c028f1a656adeb41d`) - WordPressShared (>= 2.3.1, ~> 2.3) - WordPressUI (~> 1.16) - ZendeskSupportSDK (= 5.3.0) @@ -159,7 +159,6 @@ SPEC REPOS: - SVProgressHUD - SwiftLint - UIDeviceIdentifier - - WordPressKit - WordPressShared - WordPressUI - wpxmlrpc @@ -178,11 +177,17 @@ EXTERNAL SOURCES: :tag: 0.2.0 Gutenberg: :podspec: https://cdn.a8c-ci.services/gutenberg-mobile/Gutenberg-v1.117.0.podspec + WordPressKit: + :commit: eacdb6103dbcabe0804f9e7c028f1a656adeb41d + :git: https://github.com/wordpress-mobile/WordPressKit-iOS.git CHECKOUT OPTIONS: FSInteractiveMap: :git: https://github.com/wordpress-mobile/FSInteractiveMap.git :tag: 0.2.0 + WordPressKit: + :commit: eacdb6103dbcabe0804f9e7c028f1a656adeb41d + :git: https://github.com/wordpress-mobile/WordPressKit-iOS.git SPEC CHECKSUMS: Alamofire: 02b772c9910e8eba1a079227c32fbd9e46c90a24 @@ -229,6 +234,6 @@ SPEC CHECKSUMS: ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba ZIPFoundation: d170fa8e270b2a32bef9dcdcabff5b8f1a5deced -PODFILE CHECKSUM: d6d5151a5346f27190dfa55e3d3b7297e85bf5d5 +PODFILE CHECKSUM: 9f3ceff5f102a434e9e284465c3cd198ec1c67aa COCOAPODS: 1.15.2 diff --git a/WordPress/Classes/Services/PostRepository.swift b/WordPress/Classes/Services/PostRepository.swift index bd040f9bf950..d5f801d85489 100644 --- a/WordPress/Classes/Services/PostRepository.swift +++ b/WordPress/Classes/Services/PostRepository.swift @@ -180,7 +180,7 @@ final class PostRepository { do { return try await service.patchPost(withID: postID.intValue, parameters: changes) } catch { - guard let error = error as? PostServiceRemoteUpdatePostError else { + guard let error = error as? PostServiceRemoteError else { throw error } switch error {