This repository was archived by the owner on Sep 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 22
33Pod ::Spec . new do |s |
44 s . name = 'WordPressKit'
5- s . version = '7.2.0 '
5+ s . version = '7.3.0-beta.1 '
66
77 s . summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.'
88 s . description = <<-DESC
Original file line number Diff line number Diff line change @@ -3,16 +3,16 @@ import Foundation
33public struct Activity : Decodable {
44
55 private enum CodingKeys : String , CodingKey {
6- case activityId
6+ case activityId = " activity_id "
77 case summary
88 case content
99 case published
1010 case name
1111 case type
1212 case gridicon
1313 case status
14- case isRewindable
15- case rewindId
14+ case isRewindable = " is_rewindable "
15+ case rewindId = " rewind_id "
1616 case actor
1717 case object
1818 case items
Original file line number Diff line number Diff line change @@ -184,7 +184,8 @@ private extension ActivityServiceRemote {
184184 }
185185
186186 do {
187- let decoder = JSONDecoder . apiDecoder
187+ let decoder = JSONDecoder ( )
188+ decoder. dateDecodingStrategy = . supportMultipleDateFormats
188189 let data = try JSONSerialization . data ( withJSONObject: orderedItems, options: [ ] )
189190 let activities = try decoder. decode ( [ Activity ] . self, from: data)
190191
You can’t perform that action at this time.
0 commit comments