mirror of
https://github.com/bitwarden/android.git
synced 2024-11-24 10:25:57 +03:00
Update to the latest Bitwarden SDK (#1198)
This commit is contained in:
parent
c339895665
commit
0cc28e41ba
11 changed files with 17 additions and 2 deletions
|
@ -432,6 +432,7 @@ fun SyncResponseJson.Cipher.Login.Uri.toSdkLoginUri(): LoginUri =
|
|||
LoginUri(
|
||||
uri = uri,
|
||||
match = uriMatchType?.toSdkMatchType(),
|
||||
uriChecksum = null,
|
||||
)
|
||||
|
||||
/**
|
||||
|
|
|
@ -180,6 +180,7 @@ class SearchViewModel @Inject constructor(
|
|||
uris = uris + LoginUriView(
|
||||
uri = state.autofillSelectionData?.uri,
|
||||
match = null,
|
||||
uriChecksum = null,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -208,5 +208,5 @@ private fun VaultAddEditState.Custom.toFieldView(): FieldView =
|
|||
private fun List<UriItem>?.toLoginUriView(): List<LoginUriView>? =
|
||||
this
|
||||
?.filter { it.uri?.isNotBlank() == true }
|
||||
?.map { LoginUriView(uri = it.uri.orEmpty(), match = it.match) }
|
||||
?.map { LoginUriView(uri = it.uri.orEmpty(), match = it.match, uriChecksum = null) }
|
||||
.takeUnless { it.isNullOrEmpty() }
|
||||
|
|
|
@ -130,6 +130,7 @@ fun createMockUriView(number: Int): LoginUriView =
|
|||
LoginUriView(
|
||||
uri = "www.mockuri$number.com",
|
||||
match = UriMatchType.HOST,
|
||||
uriChecksum = null,
|
||||
)
|
||||
|
||||
/**
|
||||
|
|
|
@ -159,4 +159,5 @@ fun createMockSdkUri(number: Int): LoginUri =
|
|||
LoginUri(
|
||||
uri = "mockUri-$number",
|
||||
match = UriMatchType.HOST,
|
||||
uriChecksum = null,
|
||||
)
|
||||
|
|
|
@ -215,6 +215,7 @@ class SearchViewModelTest : BaseViewModelTest() {
|
|||
LoginUriView(
|
||||
uri = AUTOFILL_URI,
|
||||
match = null,
|
||||
uriChecksum = null,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
@ -266,6 +267,7 @@ class SearchViewModelTest : BaseViewModelTest() {
|
|||
LoginUriView(
|
||||
uri = AUTOFILL_URI,
|
||||
match = null,
|
||||
uriChecksum = null,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
@ -425,6 +427,7 @@ class SearchViewModelTest : BaseViewModelTest() {
|
|||
LoginUriView(
|
||||
uri = AUTOFILL_URI,
|
||||
match = null,
|
||||
uriChecksum = null,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
|
|
@ -543,6 +543,7 @@ private val DEFAULT_LOGIN_CIPHER_VIEW: CipherView = DEFAULT_BASE_CIPHER_VIEW.cop
|
|||
LoginUriView(
|
||||
uri = "www.example.com",
|
||||
match = null,
|
||||
uriChecksum = null,
|
||||
),
|
||||
),
|
||||
totp = "otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example",
|
||||
|
|
|
@ -39,6 +39,7 @@ fun createLoginView(isEmpty: Boolean): LoginView =
|
|||
LoginUriView(
|
||||
uri = "www.example.com",
|
||||
match = null,
|
||||
uriChecksum = null,
|
||||
),
|
||||
)
|
||||
.takeUnless { isEmpty },
|
||||
|
|
|
@ -81,6 +81,7 @@ class VaultAddItemStateExtensionsTest {
|
|||
LoginUriView(
|
||||
uri = "mockUri-1",
|
||||
match = UriMatchType.DOMAIN,
|
||||
uriChecksum = null,
|
||||
),
|
||||
),
|
||||
totp = "otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example",
|
||||
|
@ -160,6 +161,7 @@ class VaultAddItemStateExtensionsTest {
|
|||
LoginUriView(
|
||||
uri = "mockUri-1",
|
||||
match = null,
|
||||
uriChecksum = null,
|
||||
),
|
||||
),
|
||||
totp = "otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example",
|
||||
|
@ -740,6 +742,7 @@ private val DEFAULT_LOGIN_CIPHER_VIEW: CipherView = DEFAULT_BASE_CIPHER_VIEW.cop
|
|||
LoginUriView(
|
||||
uri = "www.example.com",
|
||||
match = null,
|
||||
uriChecksum = null,
|
||||
),
|
||||
),
|
||||
totp = "otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example",
|
||||
|
|
|
@ -337,6 +337,7 @@ class VaultDataExtensionsTest {
|
|||
LoginUriView(
|
||||
uri = "",
|
||||
match = UriMatchType.HOST,
|
||||
uriChecksum = null,
|
||||
),
|
||||
)
|
||||
.toLoginIconData(
|
||||
|
@ -356,6 +357,7 @@ class VaultDataExtensionsTest {
|
|||
LoginUriView(
|
||||
uri = "androidapp://test.com",
|
||||
match = UriMatchType.HOST,
|
||||
uriChecksum = null,
|
||||
),
|
||||
)
|
||||
.toLoginIconData(
|
||||
|
@ -375,6 +377,7 @@ class VaultDataExtensionsTest {
|
|||
LoginUriView(
|
||||
uri = "iosapp://test.com",
|
||||
match = UriMatchType.HOST,
|
||||
uriChecksum = null,
|
||||
),
|
||||
)
|
||||
.toLoginIconData(
|
||||
|
|
|
@ -23,7 +23,7 @@ androidxSplash = "1.1.0-alpha02"
|
|||
androidXAppCompat = "1.6.1"
|
||||
androdixAutofill = "1.1.0"
|
||||
androidxWork = "2.9.0"
|
||||
bitwardenSdk = "0.4.0-20240314.115913-173"
|
||||
bitwardenSdk = "0.4.0-20240401.145917-193"
|
||||
crashlytics = "2.9.9"
|
||||
detekt = "1.23.5"
|
||||
firebaseBom = "32.8.0"
|
||||
|
|
Loading…
Reference in a new issue