Skip to content

Commit b8b1461

Browse files
bitwarden/sdk-internal@0364659 1.0.0-2829-0364659 - [PM-26534] Remove non-generic wrapper for PasswordProtectedKeyEnvelope (bitwarden/sdk-internal#488)
1 parent ad9ec71 commit b8b1461

File tree

8 files changed

+56
-56
lines changed

8 files changed

+56
-56
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let package = Package(
3030
dependencies: ["BitwardenSdk"]),
3131
.binaryTarget(
3232
name: "BitwardenFFI",
33-
url: "https://github.com/bitwarden/sdk-swift/releases/download/v1.0.0-2812-ac71502/BitwardenFFI-1.0.0-ac71502.xcframework.zip",
34-
checksum: "104b4cda92779367398d38341f4bf00f1882e925dc67b76167b173b284defff2")
33+
url: "https://github.com/bitwarden/sdk-swift/releases/download/v1.0.0-2829-0364659/BitwardenFFI-1.0.0-0364659.xcframework.zip",
34+
checksum: "a022b9b67b0184d71f4c51a903a032a865be3fdd8a143e8bece294638facc20a")
3535
]
3636
)

Sources/BitwardenSdk/BitwardenCollections.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ private let initializationResult: InitializationResult = {
998998
return InitializationResult.contractVersionMismatch
999999
}
10001000

1001-
uniffiEnsureBitwardenCoreInitialized()
10021001
uniffiEnsureBitwardenCryptoInitialized()
1002+
uniffiEnsureBitwardenCoreInitialized()
10031003
return InitializationResult.ok
10041004
}()
10051005

Sources/BitwardenSdk/BitwardenCore.swift

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4869,50 +4869,6 @@ public func FfiConverterTypeOrganizationId_lower(_ value: OrganizationId) -> Rus
48694869

48704870

48714871

4872-
/**
4873-
* Typealias from the type name used in the UDL file to the builtin type. This
4874-
* is needed because the UDL type name is used in function/method signatures.
4875-
*/
4876-
public typealias PasswordProtectedKeyEnvelope = String
4877-
4878-
#if swift(>=5.8)
4879-
@_documentation(visibility: private)
4880-
#endif
4881-
public struct FfiConverterTypePasswordProtectedKeyEnvelope: FfiConverter {
4882-
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PasswordProtectedKeyEnvelope {
4883-
return try FfiConverterString.read(from: &buf)
4884-
}
4885-
4886-
public static func write(_ value: PasswordProtectedKeyEnvelope, into buf: inout [UInt8]) {
4887-
return FfiConverterString.write(value, into: &buf)
4888-
}
4889-
4890-
public static func lift(_ value: RustBuffer) throws -> PasswordProtectedKeyEnvelope {
4891-
return try FfiConverterString.lift(value)
4892-
}
4893-
4894-
public static func lower(_ value: PasswordProtectedKeyEnvelope) -> RustBuffer {
4895-
return FfiConverterString.lower(value)
4896-
}
4897-
}
4898-
4899-
4900-
#if swift(>=5.8)
4901-
@_documentation(visibility: private)
4902-
#endif
4903-
public func FfiConverterTypePasswordProtectedKeyEnvelope_lift(_ value: RustBuffer) throws -> PasswordProtectedKeyEnvelope {
4904-
return try FfiConverterTypePasswordProtectedKeyEnvelope.lift(value)
4905-
}
4906-
4907-
#if swift(>=5.8)
4908-
@_documentation(visibility: private)
4909-
#endif
4910-
public func FfiConverterTypePasswordProtectedKeyEnvelope_lower(_ value: PasswordProtectedKeyEnvelope) -> RustBuffer {
4911-
return FfiConverterTypePasswordProtectedKeyEnvelope.lower(value)
4912-
}
4913-
4914-
4915-
49164872
/**
49174873
* Typealias from the type name used in the UDL file to the builtin type. This
49184874
* is needed because the UDL type name is used in function/method signatures.

Sources/BitwardenSdk/BitwardenCrypto.swift

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,50 @@ public func FfiConverterTypeNonZeroU32_lower(_ value: NonZeroU32) -> UInt32 {
12491249

12501250

12511251

1252+
/**
1253+
* Typealias from the type name used in the UDL file to the builtin type. This
1254+
* is needed because the UDL type name is used in function/method signatures.
1255+
*/
1256+
public typealias PasswordProtectedKeyEnvelope = String
1257+
1258+
#if swift(>=5.8)
1259+
@_documentation(visibility: private)
1260+
#endif
1261+
public struct FfiConverterTypePasswordProtectedKeyEnvelope: FfiConverter {
1262+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PasswordProtectedKeyEnvelope {
1263+
return try FfiConverterString.read(from: &buf)
1264+
}
1265+
1266+
public static func write(_ value: PasswordProtectedKeyEnvelope, into buf: inout [UInt8]) {
1267+
return FfiConverterString.write(value, into: &buf)
1268+
}
1269+
1270+
public static func lift(_ value: RustBuffer) throws -> PasswordProtectedKeyEnvelope {
1271+
return try FfiConverterString.lift(value)
1272+
}
1273+
1274+
public static func lower(_ value: PasswordProtectedKeyEnvelope) -> RustBuffer {
1275+
return FfiConverterString.lower(value)
1276+
}
1277+
}
1278+
1279+
1280+
#if swift(>=5.8)
1281+
@_documentation(visibility: private)
1282+
#endif
1283+
public func FfiConverterTypePasswordProtectedKeyEnvelope_lift(_ value: RustBuffer) throws -> PasswordProtectedKeyEnvelope {
1284+
return try FfiConverterTypePasswordProtectedKeyEnvelope.lift(value)
1285+
}
1286+
1287+
#if swift(>=5.8)
1288+
@_documentation(visibility: private)
1289+
#endif
1290+
public func FfiConverterTypePasswordProtectedKeyEnvelope_lower(_ value: PasswordProtectedKeyEnvelope) -> RustBuffer {
1291+
return FfiConverterTypePasswordProtectedKeyEnvelope.lower(value)
1292+
}
1293+
1294+
1295+
12521296
/**
12531297
* Typealias from the type name used in the UDL file to the builtin type. This
12541298
* is needed because the UDL type name is used in function/method signatures.

Sources/BitwardenSdk/BitwardenFido.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3384,8 +3384,8 @@ private let initializationResult: InitializationResult = {
33843384
return InitializationResult.contractVersionMismatch
33853385
}
33863386

3387-
uniffiEnsureBitwardenCoreInitialized()
33883387
uniffiEnsureBitwardenVaultInitialized()
3388+
uniffiEnsureBitwardenCoreInitialized()
33893389
return InitializationResult.ok
33903390
}()
33913391

Sources/BitwardenSdk/BitwardenSDK.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8177,16 +8177,16 @@ private let initializationResult: InitializationResult = {
81778177
uniffiCallbackInitFido2UserInterface()
81788178
uniffiCallbackInitFolderRepository()
81798179
uniffiEnsureBitwardenCryptoInitialized()
8180-
uniffiEnsureBitwardenGeneratorsInitialized()
8181-
uniffiEnsureBitwardenCoreInitialized()
8182-
uniffiEnsureBitwardenEncodingInitialized()
8183-
uniffiEnsureBitwardenExportersInitialized()
81848180
uniffiEnsureBitwardenSendInitialized()
81858181
uniffiEnsureBitwardenCollectionsInitialized()
8182+
uniffiEnsureBitwardenExportersInitialized()
8183+
uniffiEnsureBitwardenGeneratorsInitialized()
8184+
uniffiEnsureBitwardenStateInitialized()
8185+
uniffiEnsureBitwardenFidoInitialized()
8186+
uniffiEnsureBitwardenEncodingInitialized()
81868187
uniffiEnsureBitwardenVaultInitialized()
81878188
uniffiEnsureBitwardenSshInitialized()
8188-
uniffiEnsureBitwardenFidoInitialized()
8189-
uniffiEnsureBitwardenStateInitialized()
8189+
uniffiEnsureBitwardenCoreInitialized()
81908190
return InitializationResult.ok
81918191
}()
81928192

Sources/BitwardenSdk/BitwardenSend.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2031,8 +2031,8 @@ private let initializationResult: InitializationResult = {
20312031
return InitializationResult.contractVersionMismatch
20322032
}
20332033

2034-
uniffiEnsureBitwardenCoreInitialized()
20352034
uniffiEnsureBitwardenCryptoInitialized()
2035+
uniffiEnsureBitwardenCoreInitialized()
20362036
return InitializationResult.ok
20372037
}()
20382038

Sources/BitwardenSdk/BitwardenVault.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8401,9 +8401,9 @@ private let initializationResult: InitializationResult = {
84018401
return InitializationResult.contractVersionMismatch
84028402
}
84038403

8404+
uniffiEnsureBitwardenCryptoInitialized()
84048405
uniffiEnsureBitwardenCollectionsInitialized()
84058406
uniffiEnsureBitwardenCoreInitialized()
8406-
uniffiEnsureBitwardenCryptoInitialized()
84078407
return InitializationResult.ok
84088408
}()
84098409

0 commit comments

Comments
 (0)