Skip to content

Commit e87ffe0

Browse files
committed
Bump to version v1.0.2 (matrix-rust-sdk/main dba7cf3)
1 parent 215f8b8 commit e87ffe0

File tree

3 files changed

+64
-668
lines changed

3 files changed

+64
-668
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// swift-tools-version:5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
import PackageDescription
4-
let checksum = "dd29992cd975edae91c71d45372a7c413189b4437485fa8c11026d26810ff662"
5-
let version = "v0.0.1-qr-code-login"
4+
let checksum = "131746bdcaca3617ec518db05fce0fab7060f95db3ba8bba299cc762eaed0eca"
5+
let version = "v1.0.2"
66
let url = "https://github.com/element-hq/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
77
let package = Package(
88
name: "MatrixRustSDK",

Sources/MatrixRustSDK/matrix_sdk.swift

Lines changed: 0 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -789,110 +789,6 @@ extension PaginatorState: Equatable, Hashable {}
789789

790790

791791

792-
// Note that we don't yet support `indirect` for enums.
793-
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
794-
795-
public enum QrCodeLoginError {
796-
797-
case oidc
798-
case sessionTokens
799-
case userIdDiscovery
800-
case secretImport
801-
case loginFailure
802-
case unexpectedMessage
803-
case crossProcessRefreshLock
804-
case secureChannel
805-
case deviceKeyUpload
806-
}
807-
808-
809-
public struct FfiConverterTypeQRCodeLoginError: FfiConverterRustBuffer {
810-
typealias SwiftType = QrCodeLoginError
811-
812-
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> QrCodeLoginError {
813-
let variant: Int32 = try readInt(&buf)
814-
switch variant {
815-
816-
case 1: return .oidc
817-
818-
case 2: return .sessionTokens
819-
820-
case 3: return .userIdDiscovery
821-
822-
case 4: return .secretImport
823-
824-
case 5: return .loginFailure
825-
826-
case 6: return .unexpectedMessage
827-
828-
case 7: return .crossProcessRefreshLock
829-
830-
case 8: return .secureChannel
831-
832-
case 9: return .deviceKeyUpload
833-
834-
default: throw UniffiInternalError.unexpectedEnumCase
835-
}
836-
}
837-
838-
public static func write(_ value: QrCodeLoginError, into buf: inout [UInt8]) {
839-
switch value {
840-
841-
842-
case .oidc:
843-
writeInt(&buf, Int32(1))
844-
845-
846-
case .sessionTokens:
847-
writeInt(&buf, Int32(2))
848-
849-
850-
case .userIdDiscovery:
851-
writeInt(&buf, Int32(3))
852-
853-
854-
case .secretImport:
855-
writeInt(&buf, Int32(4))
856-
857-
858-
case .loginFailure:
859-
writeInt(&buf, Int32(5))
860-
861-
862-
case .unexpectedMessage:
863-
writeInt(&buf, Int32(6))
864-
865-
866-
case .crossProcessRefreshLock:
867-
writeInt(&buf, Int32(7))
868-
869-
870-
case .secureChannel:
871-
writeInt(&buf, Int32(8))
872-
873-
874-
case .deviceKeyUpload:
875-
writeInt(&buf, Int32(9))
876-
877-
}
878-
}
879-
}
880-
881-
882-
public func FfiConverterTypeQRCodeLoginError_lift(_ buf: RustBuffer) throws -> QrCodeLoginError {
883-
return try FfiConverterTypeQRCodeLoginError.lift(buf)
884-
}
885-
886-
public func FfiConverterTypeQRCodeLoginError_lower(_ value: QrCodeLoginError) -> RustBuffer {
887-
return FfiConverterTypeQRCodeLoginError.lower(value)
888-
}
889-
890-
891-
892-
extension QrCodeLoginError: Equatable, Hashable {}
893-
894-
895-
896792
// Note that we don't yet support `indirect` for enums.
897793
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
898794
/**

0 commit comments

Comments
 (0)