mirror of
https://github.com/NiciDieNase/chaosflix
synced 2025-02-16 21:18:23 +00:00
ktlint format
This commit is contained in:
parent
e698bdc870
commit
cc06a502f6
7 changed files with 11 additions and 14 deletions
|
@ -5,14 +5,14 @@ import android.util.Log
|
|||
import com.google.gson.Gson
|
||||
import de.nicidienase.chaosflix.BuildConfig
|
||||
import de.nicidienase.chaosflix.common.SingletonHolder2
|
||||
import java.io.File
|
||||
import java.net.SocketTimeoutException
|
||||
import java.util.concurrent.TimeUnit
|
||||
import okhttp3.Cache
|
||||
import okhttp3.Interceptor
|
||||
import okhttp3.OkHttpClient
|
||||
import retrofit2.Retrofit
|
||||
import retrofit2.converter.gson.GsonConverterFactory
|
||||
import java.io.File
|
||||
import java.net.SocketTimeoutException
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
class ApiFactory private constructor(private val recordingUrl: String, cache: File? = null) {
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package de.nicidienase.chaosflix
|
||||
|
||||
import android.content.Context
|
||||
import leakcanary.LeakCanary
|
||||
|
||||
object LeakCanaryLauncher {
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ import org.junit.jupiter.api.Test
|
|||
|
||||
class ChaosflixUtilTest {
|
||||
|
||||
|
||||
val api = ApiFactory.getInstance("https://api.media.ccc.de", null).recordingApi
|
||||
|
||||
@Test
|
||||
|
@ -35,7 +34,6 @@ class ChaosflixUtilTest {
|
|||
@Test
|
||||
fun chaosradio() = genericTest("chaosradio", false)
|
||||
|
||||
|
||||
fun genericTest(acronym: String, expResult: Boolean) = runBlocking {
|
||||
val conference = api.getConferenceByName(acronym).body()
|
||||
val map = conference?.events?.map { Event(it) }
|
||||
|
|
Loading…
Add table
Reference in a new issue