Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 5587b04

Browse files
author
Gerardo Pacheco
authored
Merge pull request #535 from wordpress-mobile/add/remote-block-editor-settings-list-flag
[Gutenberg] RemoteBlockEditorSettings - Add List block V2 flag
2 parents e7e0164 + de2abd9 commit 5587b04

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

WordPressKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'WordPressKit'
5-
s.version = '4.56.0'
5+
s.version = '4.57.0-beta.1'
66

77
s.summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.'
88
s.description = <<-DESC

WordPressKit/RemoteBlockEditorSettings.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ public class RemoteBlockEditorSettings: Codable {
55
case isFSETheme = "__unstableEnableFullSiteEditingBlocks"
66
case galleryWithImageBlocks = "__unstableGalleryWithImageBlocks"
77
case quoteBlockV2 = "__experimentalEnableQuoteBlockV2"
8+
case listBlockV2 = "__experimentalEnableListBlockV2"
89
case rawStyles = "__experimentalStyles"
910
case rawFeatures = "__experimentalFeatures"
1011
case colors
@@ -14,6 +15,7 @@ public class RemoteBlockEditorSettings: Codable {
1415
public let isFSETheme: Bool
1516
public let galleryWithImageBlocks: Bool
1617
public let quoteBlockV2: Bool
18+
public let listBlockV2: Bool
1719
public let rawStyles: String?
1820
public let rawFeatures: String?
1921
public let colors: [[String: String]]?
@@ -40,6 +42,7 @@ public class RemoteBlockEditorSettings: Codable {
4042
self.isFSETheme = (try? map.decode(Bool.self, forKey: .isFSETheme)) ?? false
4143
self.galleryWithImageBlocks = (try? map.decode(Bool.self, forKey: .galleryWithImageBlocks)) ?? false
4244
self.quoteBlockV2 = (try? map.decode(Bool.self, forKey: .quoteBlockV2)) ?? false
45+
self.listBlockV2 = (try? map.decode(Bool.self, forKey: .listBlockV2)) ?? false
4346
self.rawStyles = RemoteBlockEditorSettings.parseToString(map, .rawStyles)
4447
self.rawFeatures = RemoteBlockEditorSettings.parseToString(map, .rawFeatures)
4548
self.colors = try? map.decode([[String: String]].self, forKey: .colors)

0 commit comments

Comments
 (0)