From 59e96a93a8261b13415e060ec5ce5ba5ff3b553e Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Tue, 10 Oct 2023 19:09:28 -0700 Subject: [PATCH] change to has prefix --- Sources/XMTP/Codecs/RemoteAttachmentCodec.swift | 2 +- .../project.xcworkspace/xcshareddata/swiftpm/Package.resolved | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/XMTP/Codecs/RemoteAttachmentCodec.swift b/Sources/XMTP/Codecs/RemoteAttachmentCodec.swift index fbb552cb..30e8d3db 100644 --- a/Sources/XMTP/Codecs/RemoteAttachmentCodec.swift +++ b/Sources/XMTP/Codecs/RemoteAttachmentCodec.swift @@ -174,7 +174,7 @@ public struct RemoteAttachmentCodec: ContentCodec { throw RemoteAttachmentError.invalidScheme("no scheme parameter") } - if (!schemeString.starts(with: "https")) { + if (!schemeString.hasPrefix(RemoteAttachment.Scheme.https.rawValue)) { throw RemoteAttachmentError.invalidScheme("invalid scheme value. must start with https") } diff --git a/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 6187659e..65e196f6 100644 --- a/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -176,8 +176,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/xmtp/xmtp-rust-swift", "state" : { - "revision" : "4a76e5401fa780c40610e2f0d248f695261d08dd", - "version" : "0.3.1-beta0" + "revision" : "d1aaac47fc7c57645a6fe9e06972b957b3efa33c", + "version" : "0.3.5-beta0" } } ],