Skip to content

Commit

Permalink
IOS-2992 Update middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatovv committed Jun 13, 2024
1 parent 4bedc88 commit 15e6a75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Libraryfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MIDDLE_VERSION=v0.34.1
MIDDLE_VERSION=v0.34.2
5 changes: 5 additions & 0 deletions Modules/ProtobufMessages/Sources/Protocol/models.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2917,6 +2917,7 @@ public struct Anytype_Model_Block {
case tree // = 1
case list // = 2
case compactList // = 3
case view // = 4
case UNRECOGNIZED(Int)

public init() {
Expand All @@ -2929,6 +2930,7 @@ public struct Anytype_Model_Block {
case 1: self = .tree
case 2: self = .list
case 3: self = .compactList
case 4: self = .view
default: self = .UNRECOGNIZED(rawValue)
}
}
Expand All @@ -2939,6 +2941,7 @@ public struct Anytype_Model_Block {
case .tree: return 1
case .list: return 2
case .compactList: return 3
case .view: return 4
case .UNRECOGNIZED(let i): return i
}
}
Expand Down Expand Up @@ -3266,6 +3269,7 @@ extension Anytype_Model_Block.Content.Widget.Layout: CaseIterable {
.tree,
.list,
.compactList,
.view,
]
}

Expand Down Expand Up @@ -8551,6 +8555,7 @@ extension Anytype_Model_Block.Content.Widget.Layout: SwiftProtobuf._ProtoNamePro
1: .same(proto: "Tree"),
2: .same(proto: "List"),
3: .same(proto: "CompactList"),
4: .same(proto: "View"),
]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public extension Anytype_Model_Block.Content.Widget.Layout {
return .list
case .compactList:
return .compactList
case .view:
return .compactList
case .UNRECOGNIZED:
anytypeAssertionFailure("UNRECOGNIZED layout type", info: ["type": "\(rawValue)"])
throw WidgetLayoutError.valueUnrecognized
Expand Down

0 comments on commit 15e6a75

Please sign in to comment.