Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Commit 53754af

Browse files
committed
Merge branch 'bwa-86/network-layer-retrofit' into bwa-86/config-service
2 parents 88f51c2 + 7348997 commit 53754af

File tree

3 files changed

+0
-48
lines changed

3 files changed

+0
-48
lines changed

app/src/main/kotlin/com/bitwarden/authenticator/data/auth/datasource/disk/model/EnvironmentUrlDataJson.kt

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,38 +45,10 @@ data class EnvironmentUrlDataJson(
4545
val DEFAULT_US: EnvironmentUrlDataJson =
4646
EnvironmentUrlDataJson(base = "https://vault.bitwarden.com")
4747

48-
/**
49-
* Default [EnvironmentUrlDataJson] for the US region as written to disk by the legacy
50-
* Xamarin app.
51-
*/
52-
val DEFAULT_LEGACY_US: EnvironmentUrlDataJson = EnvironmentUrlDataJson(
53-
base = "https://vault.bitwarden.com",
54-
api = "https://api.bitwarden.com",
55-
identity = "https://identity.bitwarden.com",
56-
icon = "https://icons.bitwarden.net",
57-
notifications = "https://notifications.bitwarden.com",
58-
webVault = "https://vault.bitwarden.com",
59-
events = "https://events.bitwarden.com",
60-
)
61-
6248
/**
6349
* Default [EnvironmentUrlDataJson] for the EU region.
6450
*/
6551
val DEFAULT_EU: EnvironmentUrlDataJson =
6652
EnvironmentUrlDataJson(base = "https://vault.bitwarden.eu")
67-
68-
/**
69-
* Default [EnvironmentUrlDataJson] for the EU region as written to disk by the legacy
70-
* Xamarin app.
71-
*/
72-
val DEFAULT_LEGACY_EU: EnvironmentUrlDataJson = EnvironmentUrlDataJson(
73-
base = "https://vault.bitwarden.eu",
74-
api = "https://api.bitwarden.eu",
75-
identity = "https://identity.bitwarden.eu",
76-
icon = "https://icons.bitwarden.eu",
77-
notifications = "https://notifications.bitwarden.eu",
78-
webVault = "https://vault.bitwarden.eu",
79-
events = "https://events.bitwarden.eu",
80-
)
8153
}
8254
}

app/src/main/kotlin/com/bitwarden/authenticator/data/platform/repository/util/EnvironmentUrlDataJsonExtensions.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,9 @@ private val String?.sanitizeUrl: String?
124124
fun EnvironmentUrlDataJson.toEnvironmentUrls(): Environment =
125125
when (this) {
126126
EnvironmentUrlDataJson.DEFAULT_US,
127-
EnvironmentUrlDataJson.DEFAULT_LEGACY_US,
128127
-> Environment.Us
129128

130129
EnvironmentUrlDataJson.DEFAULT_EU,
131-
EnvironmentUrlDataJson.DEFAULT_LEGACY_EU,
132130
-> Environment.Eu
133131

134132
else -> Environment.SelfHosted(environmentUrlData = this)

app/src/test/java/com/bitwarden/authenticator/data/platform/repository/util/EnvironmentUrlsDataJsonExtensionsTest.kt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,6 @@ class EnvironmentUrlsDataJsonExtensionsTest {
246246
)
247247
}
248248

249-
@Suppress("MaxLineLength")
250-
@Test
251-
fun `toEnvironmentUrlsOrDefault should correctly convert legacy US urls to the expected type`() {
252-
Assertions.assertEquals(
253-
com.bitwarden.authenticator.data.platform.repository.model.Environment.Us,
254-
EnvironmentUrlDataJson.Companion.DEFAULT_LEGACY_US.toEnvironmentUrlsOrDefault(),
255-
)
256-
}
257-
258249
@Test
259250
fun `toEnvironmentUrlsOrDefault should correctly convert EU urls to the expected type`() {
260251
Assertions.assertEquals(
@@ -263,15 +254,6 @@ class EnvironmentUrlsDataJsonExtensionsTest {
263254
)
264255
}
265256

266-
@Suppress("MaxLineLength")
267-
@Test
268-
fun `toEnvironmentUrlsOrDefault should correctly convert legacy EU urls to the expected type`() {
269-
Assertions.assertEquals(
270-
com.bitwarden.authenticator.data.platform.repository.model.Environment.Eu,
271-
EnvironmentUrlDataJson.Companion.DEFAULT_LEGACY_EU.toEnvironmentUrlsOrDefault(),
272-
)
273-
}
274-
275257
@Test
276258
fun `toEnvironmentUrlsOrDefault should correctly convert custom urls to the expected type`() {
277259
Assertions.assertEquals(

0 commit comments

Comments
 (0)