Skip to content

Commit

Permalink
Update app
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobodemann committed Oct 22, 2021
1 parent f3eaa84 commit 1132317
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ import java.util.stream.Collectors
object LowQualityUpdateDownloader {
private const val RELEASES_URL =
"https://api.github.com/repos/gdg-berlin-android/ZeThree/releases"
private const val TIMEOUT = 5000

fun resolveLatestApk(): ApkResolutionFactory {
return try {
val content = getJSON(RELEASES_URL, 5000)
val content = getJSON(RELEASES_URL, TIMEOUT)
?: return ApkResolutionFactory.withError("Network error")
val releases: List<Release> = ObjectMapper().readValue(
content, object : TypeReference<List<Release>>() {}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ android.nonTransitiveRClass=true
kotlin.code.style=official

# App Config
version=0.0.45
version=0.0.50

0 comments on commit 1132317

Please sign in to comment.