Skip to content

Commit

Permalink
Merge pull request #1936 from Infomaniak/imp/lighten-version-api-call
Browse files Browse the repository at this point in the history
Lighten version API call
  • Loading branch information
TommyDL-Infomaniak committed Jun 26, 2024
2 parents 2324cc3 + 33469c1 commit f4938dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
21 changes: 3 additions & 18 deletions app/src/test/java/com/infomaniak/mail/AppVersionCheckingTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,9 @@ class AppVersionCheckingTest {
private val invalidParseVersion = "invalid_parse_version"
private val invalidEmptyVersion = ""

private val defaultAppVersion = AppVersion(
mediumVersion,
arrayOf(AppPublishedVersion(tag = greatVersion, _type = "production"))
)
private val invalidMinimalAppVersion = AppVersion(
mediumVersion,
arrayOf(
AppPublishedVersion(tag = basicVersion, _type = "production"),
AppPublishedVersion(tag = greaterVersion, _type = "beta"),
)
)
private val invalidFormatAppVersion = AppVersion(
invalidCommaVersion,
arrayOf(
AppPublishedVersion(tag = basicVersion, _type = "production"),
AppPublishedVersion(tag = greaterVersion, _type = "beta"),
)
)
private val defaultAppVersion = AppVersion(mediumVersion, listOf(AppPublishedVersion(tag = greatVersion)))
private val invalidMinimalAppVersion = AppVersion(mediumVersion, listOf(AppPublishedVersion(tag = basicVersion)))
private val invalidFormatAppVersion = AppVersion(invalidCommaVersion, listOf(AppPublishedVersion(tag = basicVersion)))

//region toVersionNumbers()
@Test
Expand Down

0 comments on commit f4938dc

Please sign in to comment.