mirror of
https://github.com/bitwarden/android.git
synced 2024-11-22 01:16:02 +03:00
Update the Bitwarden SDK (#1453)
This commit is contained in:
parent
dfc57dfd01
commit
4727e2be17
33 changed files with 57 additions and 57 deletions
|
@ -5,11 +5,11 @@ import com.bitwarden.bitwarden.ExportFormat
|
|||
import com.bitwarden.bitwarden.InitOrgCryptoRequest
|
||||
import com.bitwarden.bitwarden.InitUserCryptoMethod
|
||||
import com.bitwarden.bitwarden.InitUserCryptoRequest
|
||||
import com.bitwarden.bitwarden.Send
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.bitwarden.UpdatePasswordResponse
|
||||
import com.bitwarden.core.DateTime
|
||||
import com.bitwarden.crypto.TrustDeviceResponse
|
||||
import com.bitwarden.send.Send
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.Attachment
|
||||
import com.bitwarden.vault.AttachmentEncryptResult
|
||||
import com.bitwarden.vault.AttachmentView
|
||||
|
|
|
@ -4,14 +4,14 @@ import com.bitwarden.bitwarden.DerivePinKeyResponse
|
|||
import com.bitwarden.bitwarden.ExportFormat
|
||||
import com.bitwarden.bitwarden.InitOrgCryptoRequest
|
||||
import com.bitwarden.bitwarden.InitUserCryptoRequest
|
||||
import com.bitwarden.bitwarden.Send
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.bitwarden.UpdatePasswordResponse
|
||||
import com.bitwarden.core.DateTime
|
||||
import com.bitwarden.crypto.TrustDeviceResponse
|
||||
import com.bitwarden.sdk.BitwardenException
|
||||
import com.bitwarden.sdk.Client
|
||||
import com.bitwarden.sdk.ClientVault
|
||||
import com.bitwarden.send.Send
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.Attachment
|
||||
import com.bitwarden.vault.AttachmentView
|
||||
import com.bitwarden.vault.Cipher
|
||||
|
|
|
@ -2,10 +2,10 @@ package com.x8bit.bitwarden.data.vault.repository
|
|||
|
||||
import android.net.Uri
|
||||
import com.bitwarden.bitwarden.ExportFormat
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.core.DateTime
|
||||
import com.bitwarden.crypto.Kdf
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.CipherView
|
||||
import com.bitwarden.vault.CollectionView
|
||||
import com.bitwarden.vault.FolderView
|
||||
|
|
|
@ -4,11 +4,11 @@ import android.net.Uri
|
|||
import com.bitwarden.bitwarden.ExportFormat
|
||||
import com.bitwarden.bitwarden.InitOrgCryptoRequest
|
||||
import com.bitwarden.bitwarden.InitUserCryptoMethod
|
||||
import com.bitwarden.bitwarden.Send
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.core.DateTime
|
||||
import com.bitwarden.crypto.Kdf
|
||||
import com.bitwarden.send.Send
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.CipherType
|
||||
import com.bitwarden.vault.CipherView
|
||||
import com.bitwarden.vault.CollectionView
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.data.vault.repository.model
|
||||
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
|
||||
/**
|
||||
* Models result of creating a send.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.data.vault.repository.model
|
||||
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
|
||||
/**
|
||||
* Models result of removing the password protection from a send.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.data.vault.repository.model
|
||||
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
|
||||
/**
|
||||
* Represents decrypted send data.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.data.vault.repository.model
|
||||
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
|
||||
/**
|
||||
* Models result of updating a send.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.data.vault.repository.model
|
||||
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.CipherView
|
||||
import com.bitwarden.vault.CollectionView
|
||||
import com.bitwarden.vault.FolderView
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.x8bit.bitwarden.data.vault.repository.util
|
||||
|
||||
import com.bitwarden.bitwarden.Send
|
||||
import com.bitwarden.bitwarden.SendFile
|
||||
import com.bitwarden.bitwarden.SendText
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.send.Send
|
||||
import com.bitwarden.send.SendFile
|
||||
import com.bitwarden.send.SendText
|
||||
import com.bitwarden.send.SendType
|
||||
import com.x8bit.bitwarden.data.vault.datasource.network.model.SendJsonRequest
|
||||
import com.x8bit.bitwarden.data.vault.datasource.network.model.SendTypeJson
|
||||
import com.x8bit.bitwarden.data.vault.datasource.network.model.SyncResponseJson
|
||||
|
|
|
@ -9,9 +9,9 @@ import androidx.compose.runtime.CompositionLocalProvider
|
|||
import androidx.compose.runtime.ProvidableCompositionLocal
|
||||
import androidx.compose.runtime.compositionLocalOf
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
|
||||
import com.x8bit.bitwarden.ui.autofill.fido2.manager.Fido2CompletionManager
|
||||
import com.x8bit.bitwarden.ui.autofill.fido2.manager.Fido2CompletionManagerImpl
|
||||
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
|
||||
import com.x8bit.bitwarden.ui.platform.manager.biometrics.BiometricsManager
|
||||
import com.x8bit.bitwarden.ui.platform.manager.biometrics.BiometricsManagerImpl
|
||||
import com.x8bit.bitwarden.ui.platform.manager.exit.ExitManager
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
package com.x8bit.bitwarden.ui.platform.feature.search.util
|
||||
|
||||
import androidx.annotation.DrawableRes
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.CipherRepromptType
|
||||
import com.bitwarden.vault.CipherType
|
||||
import com.bitwarden.vault.CipherView
|
||||
|
|
|
@ -4,7 +4,7 @@ import android.net.Uri
|
|||
import android.os.Parcelable
|
||||
import androidx.lifecycle.SavedStateHandle
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
import com.x8bit.bitwarden.R
|
||||
import com.x8bit.bitwarden.data.auth.repository.AuthRepository
|
||||
import com.x8bit.bitwarden.data.auth.repository.model.PolicyInformation
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.x8bit.bitwarden.ui.tools.feature.send.addsend.util
|
||||
|
||||
import com.bitwarden.bitwarden.SendFileView
|
||||
import com.bitwarden.bitwarden.SendTextView
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendFileView
|
||||
import com.bitwarden.send.SendTextView
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import com.x8bit.bitwarden.ui.platform.base.util.orNullIfBlank
|
||||
import com.x8bit.bitwarden.ui.tools.feature.send.addsend.AddSendState
|
||||
import java.time.Clock
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.x8bit.bitwarden.ui.tools.feature.send.addsend.util
|
||||
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import com.x8bit.bitwarden.ui.tools.feature.send.addsend.AddSendState
|
||||
import com.x8bit.bitwarden.ui.tools.feature.send.util.toSendUrl
|
||||
import java.time.Clock
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.x8bit.bitwarden.ui.tools.feature.send.util
|
||||
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import com.x8bit.bitwarden.data.vault.repository.model.SendData
|
||||
import com.x8bit.bitwarden.ui.platform.util.toFormattedPattern
|
||||
import com.x8bit.bitwarden.ui.tools.feature.send.SendState
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.ui.tools.feature.send.util
|
||||
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
import com.x8bit.bitwarden.ui.platform.components.model.IconRes
|
||||
import com.x8bit.bitwarden.ui.tools.feature.send.model.SendStatusIcon
|
||||
import com.x8bit.bitwarden.ui.vault.feature.itemlisting.model.ListingItemOverflowAction
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
package com.x8bit.bitwarden.ui.vault.feature.itemlisting.util
|
||||
|
||||
import androidx.annotation.DrawableRes
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.CipherRepromptType
|
||||
import com.bitwarden.vault.CipherType
|
||||
import com.bitwarden.vault.CipherView
|
||||
|
|
|
@ -4,8 +4,6 @@ import com.bitwarden.bitwarden.DerivePinKeyResponse
|
|||
import com.bitwarden.bitwarden.ExportFormat
|
||||
import com.bitwarden.bitwarden.InitOrgCryptoRequest
|
||||
import com.bitwarden.bitwarden.InitUserCryptoRequest
|
||||
import com.bitwarden.bitwarden.Send
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.bitwarden.UpdatePasswordResponse
|
||||
import com.bitwarden.core.DateTime
|
||||
import com.bitwarden.crypto.TrustDeviceResponse
|
||||
|
@ -19,6 +17,8 @@ import com.bitwarden.sdk.ClientPasswordHistory
|
|||
import com.bitwarden.sdk.ClientPlatform
|
||||
import com.bitwarden.sdk.ClientSends
|
||||
import com.bitwarden.sdk.ClientVault
|
||||
import com.bitwarden.send.Send
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.Attachment
|
||||
import com.bitwarden.vault.AttachmentView
|
||||
import com.bitwarden.vault.Cipher
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.x8bit.bitwarden.data.vault.datasource.sdk.model
|
||||
|
||||
import com.bitwarden.bitwarden.SendFileView
|
||||
import com.bitwarden.bitwarden.SendTextView
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendFileView
|
||||
import com.bitwarden.send.SendTextView
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import java.time.ZonedDateTime
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package com.x8bit.bitwarden.data.vault.datasource.sdk.model
|
||||
|
||||
import com.bitwarden.bitwarden.Send
|
||||
import com.bitwarden.bitwarden.SendFile
|
||||
import com.bitwarden.bitwarden.SendText
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.send.Send
|
||||
import com.bitwarden.send.SendFile
|
||||
import com.bitwarden.send.SendText
|
||||
import com.bitwarden.send.SendType
|
||||
import java.time.ZonedDateTime
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,9 +6,9 @@ import app.cash.turbine.turbineScope
|
|||
import com.bitwarden.bitwarden.ExportFormat
|
||||
import com.bitwarden.bitwarden.InitOrgCryptoRequest
|
||||
import com.bitwarden.bitwarden.InitUserCryptoMethod
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.core.DateTime
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.Cipher
|
||||
import com.bitwarden.vault.CipherView
|
||||
import com.bitwarden.vault.CollectionView
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.x8bit.bitwarden.ui.platform.feature.search.util
|
||||
|
||||
import android.net.Uri
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.CipherRepromptType
|
||||
import com.bitwarden.vault.CipherType
|
||||
import com.bitwarden.vault.CipherView
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.ui.platform.feature.search.util
|
||||
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.vault.CipherType
|
||||
import com.x8bit.bitwarden.R
|
||||
import com.x8bit.bitwarden.ui.platform.base.util.asText
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.x8bit.bitwarden.ui.tools.feature.send.addsend
|
|||
import android.net.Uri
|
||||
import androidx.lifecycle.SavedStateHandle
|
||||
import app.cash.turbine.test
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
import com.x8bit.bitwarden.R
|
||||
import com.x8bit.bitwarden.data.auth.repository.AuthRepository
|
||||
import com.x8bit.bitwarden.data.auth.repository.model.PolicyInformation
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.ui.tools.feature.send.addsend.util
|
||||
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.send.SendType
|
||||
import com.x8bit.bitwarden.data.vault.datasource.sdk.model.createMockFileView
|
||||
import com.x8bit.bitwarden.data.vault.datasource.sdk.model.createMockSendView
|
||||
import com.x8bit.bitwarden.ui.tools.feature.send.addsend.AddSendState
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.ui.tools.feature.send.addsend.util
|
||||
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.send.SendType
|
||||
import com.x8bit.bitwarden.data.vault.datasource.sdk.model.createMockSendView
|
||||
import com.x8bit.bitwarden.ui.tools.feature.send.addsend.AddSendState
|
||||
import org.junit.jupiter.api.Assertions.assertEquals
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.x8bit.bitwarden.ui.tools.feature.send.util
|
||||
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.send.SendView
|
||||
import com.x8bit.bitwarden.data.vault.datasource.sdk.model.createMockSendView
|
||||
import com.x8bit.bitwarden.data.vault.repository.model.SendData
|
||||
import com.x8bit.bitwarden.ui.platform.components.model.IconRes
|
||||
|
|
|
@ -4,7 +4,7 @@ import android.content.pm.SigningInfo
|
|||
import androidx.lifecycle.SavedStateHandle
|
||||
import app.cash.turbine.test
|
||||
import app.cash.turbine.turbineScope
|
||||
import com.bitwarden.bitwarden.SendView
|
||||
import com.bitwarden.send.SendView
|
||||
import com.bitwarden.vault.CipherView
|
||||
import com.bitwarden.vault.CollectionView
|
||||
import com.bitwarden.vault.FolderView
|
||||
|
|
|
@ -16,12 +16,12 @@ import androidx.compose.ui.test.performClick
|
|||
import androidx.compose.ui.test.performTextInput
|
||||
import androidx.core.net.toUri
|
||||
import com.x8bit.bitwarden.R
|
||||
import com.x8bit.bitwarden.ui.autofill.fido2.manager.Fido2CompletionManager
|
||||
import com.x8bit.bitwarden.data.autofill.model.AutofillSelectionData
|
||||
import com.x8bit.bitwarden.data.platform.repository.model.Environment
|
||||
import com.x8bit.bitwarden.data.platform.repository.util.baseIconUrl
|
||||
import com.x8bit.bitwarden.data.platform.repository.util.baseWebSendUrl
|
||||
import com.x8bit.bitwarden.data.platform.repository.util.bufferedMutableSharedFlow
|
||||
import com.x8bit.bitwarden.ui.autofill.fido2.manager.Fido2CompletionManager
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseComposeTest
|
||||
import com.x8bit.bitwarden.ui.platform.base.util.asText
|
||||
import com.x8bit.bitwarden.ui.platform.base.util.toHostOrPathOrNull
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.x8bit.bitwarden.ui.vault.feature.itemlisting.util
|
||||
|
||||
import android.net.Uri
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.vault.CipherRepromptType
|
||||
import com.bitwarden.vault.CipherType
|
||||
import com.bitwarden.vault.CipherView
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.ui.vault.feature.itemlisting.util
|
||||
|
||||
import com.bitwarden.bitwarden.SendType
|
||||
import com.bitwarden.send.SendType
|
||||
import com.bitwarden.vault.CipherType
|
||||
import com.x8bit.bitwarden.R
|
||||
import com.x8bit.bitwarden.ui.platform.base.util.asText
|
||||
|
|
|
@ -24,7 +24,7 @@ androidxSplash = "1.1.0-rc01"
|
|||
androidXAppCompat = "1.7.0"
|
||||
androdixAutofill = "1.1.0"
|
||||
androidxWork = "2.9.0"
|
||||
bitwardenSdk = "0.5.0-20240611.102449-85"
|
||||
bitwardenSdk = "0.5.0-20240614.145848-99"
|
||||
crashlytics = "3.0.1"
|
||||
detekt = "1.23.6"
|
||||
firebaseBom = "33.1.0"
|
||||
|
|
Loading…
Reference in a new issue