fix github service
This commit is contained in:
parent
a6d4b0a999
commit
2a5605722d
1 changed files with 1 additions and 3 deletions
|
@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.data.updater.github
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.network.NetworkHelper
|
import eu.kanade.tachiyomi.network.NetworkHelper
|
||||||
import retrofit2.Retrofit
|
import retrofit2.Retrofit
|
||||||
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory
|
|
||||||
import retrofit2.converter.gson.GsonConverterFactory
|
import retrofit2.converter.gson.GsonConverterFactory
|
||||||
import retrofit2.http.GET
|
import retrofit2.http.GET
|
||||||
import rx.Observable
|
import rx.Observable
|
||||||
|
@ -19,7 +18,6 @@ interface GithubService {
|
||||||
val restAdapter = Retrofit.Builder()
|
val restAdapter = Retrofit.Builder()
|
||||||
.baseUrl("https://api.github.com")
|
.baseUrl("https://api.github.com")
|
||||||
.addConverterFactory(GsonConverterFactory.create())
|
.addConverterFactory(GsonConverterFactory.create())
|
||||||
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
|
|
||||||
.client(Injekt.get<NetworkHelper>().client)
|
.client(Injekt.get<NetworkHelper>().client)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
@ -28,6 +26,6 @@ interface GithubService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET("/repos/Jays2Kings/tachiyomiJ2K/releases/latest")
|
@GET("/repos/Jays2Kings/tachiyomiJ2K/releases/latest")
|
||||||
fun getLatestVersion(): Observable<GithubRelease>
|
suspend fun getLatestVersion(): Observable<GithubRelease>
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue