Skip to content
Snippets Groups Projects
Unverified Commit f8c06fae authored by Jakob Möller's avatar Jakob Möller Committed by GitHub
Browse files

Fix Streaming for KeyFiles (#300)


Signed-off-by: default avatard067928 <jakob.moeller@sap.com>
parent 06c09af2
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ package de.rki.coronawarnapp.http.service ...@@ -2,6 +2,7 @@ package de.rki.coronawarnapp.http.service
import okhttp3.ResponseBody import okhttp3.ResponseBody
import retrofit2.http.GET import retrofit2.http.GET
import retrofit2.http.Streaming
import retrofit2.http.Url import retrofit2.http.Url
interface DistributionService { interface DistributionService {
...@@ -12,6 +13,7 @@ interface DistributionService { ...@@ -12,6 +13,7 @@ interface DistributionService {
@GET @GET
suspend fun getHourIndex(@Url url: String): List<String> suspend fun getHourIndex(@Url url: String): List<String>
@Streaming
@GET @GET
suspend fun getKeyFiles(@Url url: String): ResponseBody suspend fun getKeyFiles(@Url url: String): ResponseBody
......
...@@ -38,8 +38,8 @@ class VerificationKeys { ...@@ -38,8 +38,8 @@ class VerificationKeys {
.isEmpty() .isEmpty()
.also { .also {
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
if (it) Log.d(TAG, "export is valid") if (it) Log.d(TAG, "export is invalid")
else Log.d(TAG, "export is invalid") else Log.d(TAG, "export is valid")
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment