Loading app/src/main/java/foundation/e/apps/data/exodus/repositories/AppPrivacyInfoRepositoryImpl.kt +13 −6 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import java.lang.reflect.Modifier import javax.inject.Inject import javax.inject.Singleton import foundation.e.apps.data.Result import okio.IOException @Singleton class AppPrivacyInfoRepositoryImpl @Inject constructor( Loading Loading @@ -72,6 +73,7 @@ class AppPrivacyInfoRepositoryImpl @Inject constructor( .post(jsonBody.toRequestBody("application/json".toMediaType())) .build() try { okHttpClient.newCall(request).execute().use { response -> if (response.isSuccessful) { val responseBody = response.body?.string() Loading @@ -80,6 +82,11 @@ class AppPrivacyInfoRepositoryImpl @Inject constructor( throw IllegalStateException("Failed to fetch reports") } } } catch (exception: IOException) { exception.printStackTrace() } return emptyList() } private fun parseReports(response: String): List<Report> { Loading Loading
app/src/main/java/foundation/e/apps/data/exodus/repositories/AppPrivacyInfoRepositoryImpl.kt +13 −6 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import java.lang.reflect.Modifier import javax.inject.Inject import javax.inject.Singleton import foundation.e.apps.data.Result import okio.IOException @Singleton class AppPrivacyInfoRepositoryImpl @Inject constructor( Loading Loading @@ -72,6 +73,7 @@ class AppPrivacyInfoRepositoryImpl @Inject constructor( .post(jsonBody.toRequestBody("application/json".toMediaType())) .build() try { okHttpClient.newCall(request).execute().use { response -> if (response.isSuccessful) { val responseBody = response.body?.string() Loading @@ -80,6 +82,11 @@ class AppPrivacyInfoRepositoryImpl @Inject constructor( throw IllegalStateException("Failed to fetch reports") } } } catch (exception: IOException) { exception.printStackTrace() } return emptyList() } private fun parseReports(response: String): List<Report> { Loading