Skip to content

Instantly share code, notes, and snippets.

View mbobiosio's full-sized avatar
🎯
Focusing

Mbuodile Obiosio mbobiosio

🎯
Focusing
View GitHub Profile
public class ApiUtil {
public final static String BASE_URL = "";
private static Retrofit retrofit = null;
public static OkHttpClient getOkHttpClient() {
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
return new OkHttpClient.Builder()
.addInterceptor(interceptor)
private ArrayList<WeekModel> mDataList = new ArrayList<>();
//Implementation in use
private void fetchData() {
mDisposable.add(mWeekService.getLessons()
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.map(new Function<WeekResponse, List<WeekModel>>() {
@Override
public List<WeekModel> apply(
# Optimizations
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-dontwarn org.jaudiotagger.**
-dontwarn java.lang.invoke.*
-dontwarn **$$Lambda$*
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
@mbobiosio
mbobiosio / Fragment New Instance
Last active May 31, 2018 08:51
Fragment NewInstance
//Constructor Class
public AboutFragment() {
}
// New Instance Constructor
public static AboutFragment newInstance() {
AboutFragment fragment = new AboutFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}