mirror of
https://github.com/bitwarden/android.git
synced 2026-02-04 03:05:28 -06:00
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:
parent
674cff1c3c
commit
7717a09c06
@ -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,
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
@ -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 =
|
||||
|
||||
@ -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(),
|
||||
|
||||
@ -101,6 +101,7 @@ fun createMockCipherView(
|
||||
organizationUseTotp = false,
|
||||
viewPassword = true,
|
||||
localData = null,
|
||||
attachmentDecryptionFailures = null,
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
@ -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,
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
@ -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,
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user