Fix build issues for xcode 13.3

This commit is contained in:
Gil Eluard
2022-04-13 12:30:41 +02:00
committed by Stefan Ceriu
parent 8d916e3692
commit def0683328
6 changed files with 144 additions and 141 deletions
@@ -1,70 +1,68 @@
{ {
"object": {
"pins" : [ "pins" : [
{ {
"package": "DTCoreText", "identity" : "dtcoretext",
"repositoryURL": "https://github.com/Cocoanetics/DTCoreText", "kind" : "remoteSourceControl",
"location" : "https://github.com/Cocoanetics/DTCoreText",
"state" : { "state" : {
"branch" : "develop", "branch" : "develop",
"revision": "9f515155c6fcb5d9c39150aa048685aa65b4904f", "revision" : "9f515155c6fcb5d9c39150aa048685aa65b4904f"
"version": null
} }
}, },
{ {
"package": "DTFoundation", "identity" : "dtfoundation",
"repositoryURL": "https://github.com/Cocoanetics/DTFoundation.git", "kind" : "remoteSourceControl",
"location" : "https://github.com/Cocoanetics/DTFoundation.git",
"state" : { "state" : {
"branch": null,
"revision" : "76062513434421cb6c8a1ae1d4f8368a7ebc2da3", "revision" : "76062513434421cb6c8a1ae1d4f8368a7ebc2da3",
"version" : "1.7.18" "version" : "1.7.18"
} }
}, },
{ {
"package": "KeychainAccess", "identity" : "keychainaccess",
"repositoryURL": "https://github.com/kishikawakatsumi/KeychainAccess", "kind" : "remoteSourceControl",
"location" : "https://github.com/kishikawakatsumi/KeychainAccess",
"state" : { "state" : {
"branch" : "master", "branch" : "master",
"revision": "6299daec1d74be12164fec090faf9ed14d0da9d6", "revision" : "6299daec1d74be12164fec090faf9ed14d0da9d6"
"version": null
} }
}, },
{ {
"package": "Kingfisher", "identity" : "kingfisher",
"repositoryURL": "https://github.com/onevcat/Kingfisher", "kind" : "remoteSourceControl",
"location" : "https://github.com/onevcat/Kingfisher",
"state" : { "state" : {
"branch": null, "revision" : "1a7b5480eb750a8e171654b9b1cb0a2cbeb27a55",
"revision": "32e4acdf6971f58f5ad552389cf2d7d016334eaf", "version" : "7.2.1"
"version": "7.2.0"
} }
}, },
{ {
"package": "MatrixRustSDK", "identity" : "matrix-rust-components-swift",
"repositoryURL": "https://github.com/matrix-org/matrix-rust-components-swift.git", "kind" : "remoteSourceControl",
"location" : "https://github.com/matrix-org/matrix-rust-components-swift.git",
"state" : { "state" : {
"branch" : "main", "branch" : "main",
"revision": "f6682cf02eec087f921c53526895996cba169378", "revision" : "f6682cf02eec087f921c53526895996cba169378"
"version": null
} }
}, },
{ {
"package": "Introspect", "identity" : "swiftui-introspect",
"repositoryURL": "https://github.com/siteline/SwiftUI-Introspect.git", "kind" : "remoteSourceControl",
"location" : "https://github.com/siteline/SwiftUI-Introspect.git",
"state" : { "state" : {
"branch" : "master", "branch" : "master",
"revision": "72a509c93166540c0adf8323fd2652daade7f9f6", "revision" : "72a509c93166540c0adf8323fd2652daade7f9f6"
"version": null
} }
}, },
{ {
"package": "SwiftyBeaver", "identity" : "swiftybeaver",
"repositoryURL": "https://github.com/SwiftyBeaver/SwiftyBeaver", "kind" : "remoteSourceControl",
"location" : "https://github.com/SwiftyBeaver/SwiftyBeaver",
"state" : { "state" : {
"branch": null, "revision" : "12b5acf96d98f91d50de447369bd18df74600f1a",
"revision": "2c039501d6eeb4d4cd4aec4a8d884ad28862e044", "version" : "1.9.6"
"version": "1.9.5"
} }
} }
] ],
}, "version" : 2
"version": 1
} }
@@ -37,19 +37,21 @@ struct EmoteRoomTimelineView_Previews: PreviewProvider {
@ViewBuilder @ViewBuilder
static var body: some View { static var body: some View {
VStack(alignment: .leading, spacing: 20.0) { VStack(alignment: .leading, spacing: 20.0) {
let timelineItem = EmoteRoomTimelineItem(id: UUID().uuidString, EmoteRoomTimelineView(timelineItem: itemWith(text: "Short loin ground round tongue hamburger, fatback salami shoulder. Beef turkey sausage kielbasa strip steak. Alcatra capicola pig tail pancetta chislic.",
text: "Short loin ground round tongue hamburger, fatback salami shoulder. Beef turkey sausage kielbasa strip steak. Alcatra capicola pig tail pancetta chislic.",
timestamp: "Now", timestamp: "Now",
shouldShowSenderDetails: true, senderId: "Bob"))
senderId: "Bob")
EmoteRoomTimelineView(timelineItem: timelineItem)
let timelineItem = EmoteRoomTimelineItem(id: UUID().uuidString, EmoteRoomTimelineView(timelineItem: itemWith(text: "Some other text",
text: "Some other text",
timestamp: "Later", timestamp: "Later",
senderId: "Anne"))
}
}
private static func itemWith(text: String, timestamp: String, senderId: String) -> EmoteRoomTimelineItem {
return EmoteRoomTimelineItem(id: UUID().uuidString,
text: text,
timestamp: timestamp,
shouldShowSenderDetails: true, shouldShowSenderDetails: true,
senderId: "Anne") senderId: senderId)
EmoteRoomTimelineView(timelineItem: timelineItem)
}
} }
} }
@@ -59,19 +59,21 @@ struct EventBasedTimelineView_Previews: PreviewProvider {
@ViewBuilder @ViewBuilder
static var body: some View { static var body: some View {
VStack(alignment: .leading, spacing: 20.0) { VStack(alignment: .leading, spacing: 20.0) {
let timelineItem = TextRoomTimelineItem(id: UUID().uuidString, EventBasedTimelineView(timelineItem: itemWith(text: "Short loin ground round tongue hamburger, fatback salami shoulder. Beef turkey sausage kielbasa strip steak. Alcatra capicola pig tail pancetta chislic.",
text: "Short loin ground round tongue hamburger, fatback salami shoulder. Beef turkey sausage kielbasa strip steak. Alcatra capicola pig tail pancetta chislic.",
timestamp: "Now", timestamp: "Now",
shouldShowSenderDetails: true, senderId: "Bob"))
senderId: "Bob")
EventBasedTimelineView(timelineItem: timelineItem)
let timelineItem = TextRoomTimelineItem(id: UUID().uuidString, EventBasedTimelineView(timelineItem: itemWith(text: "Some other text",
text: "Some other text",
timestamp: "Later", timestamp: "Later",
senderId: "Anne"))
}
}
private static func itemWith(text: String, timestamp: String, senderId: String) -> TextRoomTimelineItem {
return TextRoomTimelineItem(id: UUID().uuidString,
text: text,
timestamp: timestamp,
shouldShowSenderDetails: true, shouldShowSenderDetails: true,
senderId: "Anne") senderId: senderId)
EventBasedTimelineView(timelineItem: timelineItem)
}
} }
} }
@@ -60,25 +60,23 @@ struct ImageRoomTimelineView_Previews: PreviewProvider {
@ViewBuilder @ViewBuilder
static var body: some View { static var body: some View {
VStack(spacing: 20.0) { VStack(spacing: 20.0) {
let timelineItem = ImageRoomTimelineItem(id: UUID().uuidString, ImageRoomTimelineView(timelineItem: ImageRoomTimelineItem(id: UUID().uuidString,
text: "Some image", text: "Some image",
timestamp: "Now", timestamp: "Now",
shouldShowSenderDetails: false, shouldShowSenderDetails: false,
senderId: "Bob", senderId: "Bob",
source: nil, source: nil,
image: UIImage(systemName: "photo")) image: UIImage(systemName: "photo")))
ImageRoomTimelineView(timelineItem: timelineItem)
let timelineItem = ImageRoomTimelineItem(id: UUID().uuidString, ImageRoomTimelineView(timelineItem: ImageRoomTimelineItem(id: UUID().uuidString,
text: "Some other image", text: "Some other image",
timestamp: "Now", timestamp: "Now",
shouldShowSenderDetails: false, shouldShowSenderDetails: false,
senderId: "Bob", senderId: "Bob",
source: nil, source: nil,
image: nil) image: nil))
ImageRoomTimelineView(timelineItem: timelineItem)
let timelineItem = ImageRoomTimelineItem(id: UUID().uuidString, ImageRoomTimelineView(timelineItem: ImageRoomTimelineItem(id: UUID().uuidString,
text: "Blurhashed image", text: "Blurhashed image",
timestamp: "Now", timestamp: "Now",
shouldShowSenderDetails: false, shouldShowSenderDetails: false,
@@ -86,8 +84,7 @@ struct ImageRoomTimelineView_Previews: PreviewProvider {
source: nil, source: nil,
image: nil, image: nil,
aspectRatio: 0.7, aspectRatio: 0.7,
blurhash: "L%KUc%kqS$RP?Ks,WEf8OlrqaekW") blurhash: "L%KUc%kqS$RP?Ks,WEf8OlrqaekW"))
ImageRoomTimelineView(timelineItem: timelineItem)
} }
} }
} }
@@ -37,20 +37,22 @@ struct NoticeRoomTimelineView_Previews: PreviewProvider {
@ViewBuilder @ViewBuilder
static var body: some View { static var body: some View {
VStack(alignment: .leading, spacing: 20.0) { VStack(alignment: .leading, spacing: 20.0) {
let timelineItem = NoticeRoomTimelineItem(id: UUID().uuidString, NoticeRoomTimelineView(timelineItem: itemWith(text: "Short loin ground round tongue hamburger, fatback salami shoulder. Beef turkey sausage kielbasa strip steak. Alcatra capicola pig tail pancetta chislic.",
text: "Short loin ground round tongue hamburger, fatback salami shoulder. Beef turkey sausage kielbasa strip steak. Alcatra capicola pig tail pancetta chislic.",
timestamp: "Now", timestamp: "Now",
shouldShowSenderDetails: true, senderId: "Bob"))
senderId: "Bob")
NoticeRoomTimelineView(timelineItem: timelineItem)
let timelineItem = NoticeRoomTimelineItem(id: UUID().uuidString, NoticeRoomTimelineView(timelineItem: itemWith(text: "Some other text",
text: "Some other text",
timestamp: "Later", timestamp: "Later",
shouldShowSenderDetails: true, senderId: "Anne"))
senderId: "Anne")
NoticeRoomTimelineView(timelineItem: timelineItem)
} }
.padding() .padding()
} }
private static func itemWith(text: String, timestamp: String, senderId: String) -> NoticeRoomTimelineItem {
return NoticeRoomTimelineItem(id: UUID().uuidString,
text: text,
timestamp: timestamp,
shouldShowSenderDetails: true,
senderId: senderId)
}
} }
@@ -34,19 +34,21 @@ struct TextRoomTimelineView_Previews: PreviewProvider {
@ViewBuilder @ViewBuilder
static var body: some View { static var body: some View {
VStack(alignment: .leading, spacing: 20.0) { VStack(alignment: .leading, spacing: 20.0) {
let timelineItem = TextRoomTimelineItem(id: UUID().uuidString, TextRoomTimelineView(timelineItem: itemWith(text: "Short loin ground round tongue hamburger, fatback salami shoulder. Beef turkey sausage kielbasa strip steak. Alcatra capicola pig tail pancetta chislic.",
text: "Short loin ground round tongue hamburger, fatback salami shoulder. Beef turkey sausage kielbasa strip steak. Alcatra capicola pig tail pancetta chislic.",
timestamp: "Now", timestamp: "Now",
shouldShowSenderDetails: true, senderId: "Bob"))
senderId: "Bob")
TextRoomTimelineView(timelineItem: timelineItem)
let timelineItem = TextRoomTimelineItem(id: UUID().uuidString, TextRoomTimelineView(timelineItem: itemWith(text: "Some other text",
text: "Some other text",
timestamp: "Later", timestamp: "Later",
senderId: "Anne"))
}
}
private static func itemWith(text: String, timestamp: String, senderId: String) -> TextRoomTimelineItem {
return TextRoomTimelineItem(id: UUID().uuidString,
text: text,
timestamp: timestamp,
shouldShowSenderDetails: true, shouldShowSenderDetails: true,
senderId: "Anne") senderId: senderId)
TextRoomTimelineView(timelineItem: timelineItem)
}
} }
} }