Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge feature branch for Site Design Screen Improvements project #516

Merged
merged 8 commits into from
Jun 3, 2022
2 changes: 1 addition & 1 deletion WordPressKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Pod::Spec.new do |s|
s.name = 'WordPressKit'
s.version = '4.53.0'
s.version = '4.54.0-beta.1'

s.summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.'
s.description = <<-DESC
Expand Down
3 changes: 3 additions & 0 deletions WordPressKit/RemoteSiteDesign.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public struct RemoteSiteDesign: Codable {
public let mobileScreenshot: String?
public let tabletScreenshot: String?
public let themeSlug: String?
public let group: [String]?
public let segmentID: Int64?
public let categories: [RemoteSiteDesignCategory]

Expand All @@ -44,6 +45,7 @@ public struct RemoteSiteDesign: Codable {
case mobileScreenshot = "preview_mobile"
case tabletScreenshot = "preview_tablet"
case themeSlug = "theme"
case group
case segmentID = "segment_id"
case categories
}
Expand All @@ -57,6 +59,7 @@ public struct RemoteSiteDesign: Codable {
mobileScreenshot = try? map.decode(String.self, forKey: .mobileScreenshot)
tabletScreenshot = try? map.decode(String.self, forKey: .tabletScreenshot)
themeSlug = try? map.decode(String.self, forKey: .themeSlug)
group = try? map.decode([String].self, forKey: .group)
segmentID = try? map.decode(Int64.self, forKey: .segmentID)
categories = try map.decode([RemoteSiteDesignCategory].self, forKey: .categories)
}
Expand Down