mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-22 00:01:11 +01:00
25 lines
677 B
Java
25 lines
677 B
Java
package app.revanced.twitch.api;
|
|
|
|
import retrofit2.Retrofit;
|
|
|
|
public class RetrofitClient {
|
|
|
|
private static RetrofitClient instance = null;
|
|
private final PurpleAdblockApi purpleAdblockApi;
|
|
|
|
private RetrofitClient() {
|
|
Retrofit retrofit = new Retrofit.Builder().baseUrl("http://localhost" /* dummy */).build();
|
|
purpleAdblockApi = retrofit.create(PurpleAdblockApi.class);
|
|
}
|
|
|
|
public static synchronized RetrofitClient getInstance() {
|
|
if (instance == null) {
|
|
instance = new RetrofitClient();
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
public PurpleAdblockApi getPurpleAdblockApi() {
|
|
return purpleAdblockApi;
|
|
}
|
|
} |