Update SDK to 2.0.0-4772-490c1be4 (#6395)

Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
Co-authored-by: Carlos Gonçalves <cgoncalves@bitwarden.com>
This commit is contained in:
bw-ghapp[bot] 2026-01-28 18:55:02 +00:00 committed by GitHub
parent 674cff1c3c
commit 7717a09c06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 23 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import com.bitwarden.core.data.repository.util.SpecialCharWithPrecedenceComparat
import com.bitwarden.network.model.SendJsonRequest
import com.bitwarden.network.model.SendTypeJson
import com.bitwarden.network.model.SyncResponseJson
import com.bitwarden.send.AuthType
import com.bitwarden.send.Send
import com.bitwarden.send.SendFile
import com.bitwarden.send.SendText
@ -92,6 +93,8 @@ fun SyncResponseJson.Send.toEncryptedSdkSend(): Send =
revisionDate = revisionDate.toInstant(),
deletionDate = deletionDate.toInstant(),
expirationDate = expirationDate?.toInstant(),
emails = null,
authType = AuthType.NONE,
)
/**

View File

@ -1,5 +1,6 @@
package com.x8bit.bitwarden.ui.tools.feature.send.addedit.util
import com.bitwarden.send.AuthType
import com.bitwarden.send.SendFileView
import com.bitwarden.send.SendTextView
import com.bitwarden.send.SendType
@ -36,6 +37,8 @@ fun AddEditSendState.ViewState.Content.toSendView(
// we just update it to match the deletion date.
common.deletionDate.toInstant()
},
emails = emptyList(),
authType = AuthType.NONE,
)
private fun AddEditSendState.ViewState.Content.SendType.toSendType(): SendType =

View File

@ -45,6 +45,7 @@ fun VaultAddEditState.ViewState.Content.toCipherView(clock: Clock): CipherView =
deletedDate = common.originalCipher?.deletedDate,
revisionDate = common.originalCipher?.revisionDate ?: clock.instant(),
archivedDate = common.originalCipher?.archivedDate,
attachmentDecryptionFailures = common.originalCipher?.attachmentDecryptionFailures,
// Type specific section
type = type.toCipherType(),

View File

@ -101,6 +101,7 @@ fun createMockCipherView(
organizationUseTotp = false,
viewPassword = true,
localData = null,
attachmentDecryptionFailures = null,
)
/**

View File

@ -1,5 +1,6 @@
package com.x8bit.bitwarden.data.vault.datasource.sdk.model
import com.bitwarden.send.AuthType
import com.bitwarden.send.SendFileView
import com.bitwarden.send.SendTextView
import com.bitwarden.send.SendType
@ -49,6 +50,8 @@ fun createMockSendView(
revisionDate = revisionDate,
deletionDate = deletionDate,
expirationDate = expirationDate,
emails = emptyList(),
authType = AuthType.NONE,
)
/**

View File

@ -1,5 +1,6 @@
package com.x8bit.bitwarden.data.vault.datasource.sdk.model
import com.bitwarden.send.AuthType
import com.bitwarden.send.Send
import com.bitwarden.send.SendFile
import com.bitwarden.send.SendText
@ -30,6 +31,8 @@ fun createMockSdkSend(
revisionDate = ZonedDateTime.parse("2023-10-27T12:00:00Z").toInstant(),
deletionDate = ZonedDateTime.parse("2023-10-27T12:00:00Z").toInstant(),
expirationDate = ZonedDateTime.parse("2023-10-27T12:00:00Z").toInstant(),
emails = null,
authType = AuthType.NONE,
)
/**

View File

@ -783,6 +783,7 @@ private val DEFAULT_BASE_CIPHER_VIEW: CipherView = CipherView(
revisionDate = FIXED_CLOCK.instant(),
archivedDate = null,
sshKey = null,
attachmentDecryptionFailures = null,
)
private val DEFAULT_CARD_CIPHER_VIEW: CipherView = DEFAULT_BASE_CIPHER_VIEW.copy(

View File

@ -161,6 +161,7 @@ fun createCipherView(type: CipherType, isEmpty: Boolean): CipherView =
revisionDate = Instant.ofEpochSecond(1_000L),
archivedDate = null,
sshKey = createSshKeyView(isEmpty),
attachmentDecryptionFailures = null,
)
fun createCommonContent(

View File

@ -105,6 +105,7 @@ class VaultAddItemStateExtensionsTest {
revisionDate = FIXED_CLOCK.instant(),
archivedDate = null,
sshKey = null,
attachmentDecryptionFailures = null,
),
result,
)
@ -287,6 +288,7 @@ class VaultAddItemStateExtensionsTest {
revisionDate = FIXED_CLOCK.instant(),
archivedDate = null,
sshKey = null,
attachmentDecryptionFailures = null,
),
result,
)
@ -417,6 +419,7 @@ class VaultAddItemStateExtensionsTest {
revisionDate = FIXED_CLOCK.instant(),
archivedDate = null,
sshKey = null,
attachmentDecryptionFailures = null,
),
result,
)
@ -601,6 +604,7 @@ class VaultAddItemStateExtensionsTest {
revisionDate = FIXED_CLOCK.instant(),
archivedDate = null,
sshKey = null,
attachmentDecryptionFailures = null,
),
result,
)
@ -745,6 +749,7 @@ class VaultAddItemStateExtensionsTest {
privateKey = "mockPrivateKey-1",
fingerprint = "mockFingerprint-1",
),
attachmentDecryptionFailures = null,
),
result,
)
@ -975,6 +980,7 @@ private val DEFAULT_BASE_CIPHER_VIEW: CipherView = CipherView(
revisionDate = FIXED_CLOCK.instant(),
archivedDate = null,
sshKey = null,
attachmentDecryptionFailures = null,
)
private val DEFAULT_LOGIN_CIPHER_VIEW: CipherView = DEFAULT_BASE_CIPHER_VIEW.copy(

View File

@ -30,7 +30,7 @@ androidxRoom = "2.8.4"
androidxSecurityCrypto = "1.1.0"
androidxSplash = "1.2.0"
androidxWork = "2.11.0"
bitwardenSdk = "2.0.0-4676-0544ddec"
bitwardenSdk = "2.0.0-4772-490c1be4"
crashlytics = "3.0.6"
detekt = "1.23.8"
firebaseBom = "34.8.0"