From 2a5605722db1365e59c2446b1b8d467b7716474e Mon Sep 17 00:00:00 2001 From: Carlos Date: Sun, 15 Mar 2020 08:00:46 -0400 Subject: [PATCH] fix github service --- .../eu/kanade/tachiyomi/data/updater/github/GithubService.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/updater/github/GithubService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/updater/github/GithubService.kt index 052684bd03..07ce3e3f1f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/updater/github/GithubService.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/updater/github/GithubService.kt @@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.data.updater.github import eu.kanade.tachiyomi.network.NetworkHelper import retrofit2.Retrofit -import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory import retrofit2.converter.gson.GsonConverterFactory import retrofit2.http.GET import rx.Observable @@ -19,7 +18,6 @@ interface GithubService { val restAdapter = Retrofit.Builder() .baseUrl("https://api.github.com") .addConverterFactory(GsonConverterFactory.create()) - .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) .client(Injekt.get().client) .build() @@ -28,6 +26,6 @@ interface GithubService { } @GET("/repos/Jays2Kings/tachiyomiJ2K/releases/latest") - fun getLatestVersion(): Observable + suspend fun getLatestVersion(): Observable }