mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 17:41:50 +01:00
fix github service
This commit is contained in:
parent
a6d4b0a999
commit
2a5605722d
@ -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<NetworkHelper>().client)
|
||||
.build()
|
||||
|
||||
@ -28,6 +26,6 @@ interface GithubService {
|
||||
}
|
||||
|
||||
@GET("/repos/Jays2Kings/tachiyomiJ2K/releases/latest")
|
||||
fun getLatestVersion(): Observable<GithubRelease>
|
||||
suspend fun getLatestVersion(): Observable<GithubRelease>
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user