This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.** { *; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Constructor Class | |
public AboutFragment() { | |
} | |
// New Instance Constructor | |
public static AboutFragment newInstance() { | |
AboutFragment fragment = new AboutFragment(); | |
Bundle args = new Bundle(); | |
fragment.setArguments(args); | |
return fragment; | |
} |
NewerOlder