package me.devsaki.hentoid.retrofit;

import java.util.List;

import io.reactivex.Single;
import me.devsaki.hentoid.viewholders.GitHubRelease;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.http.GET;

public class GithubServer {

    private final static String GITHUB_BASE_URL = "https://api.github.com/repos/avluis/Hentoid/";

    public static final Api API = new Retrofit.Builder()
            .baseUrl(GITHUB_BASE_URL)
            .addCallAdapterFactory(RxJava2CallAdapterFactory.createAsync())
            .addConverterFactory(GsonConverterFactory.create())
            .build()
            .create(Api.class);

    public interface Api {

        @GET("releases")
        Single<List<GitHubRelease.Struct>> getReleases();
    }
}

@@ -83,16 +83,70 @@
 Single;%0A
+import me.devsaki.hentoid.util.OkHttpClientSingleton;%0A
 import m
@@ -582,16 +582,73 @@
 SE_URL)%0A
+            .client(OkHttpClientSingleton.getInstance())%0A
         

Use OkHttp