How to upgrade to Retrofit2 from Retrofit1.X?
Please follow changes in Pull: https://github.com/RajuSE/android-mvp/pull/1/commits
void customSnackBar(String text, int color) { | |
Snackbar mSnackbar = Snackbar.make(mRelativeLayout, text, Snackbar.LENGTH_LONG); | |
// get snackbar view | |
View mView = mSnackbar.getView(); | |
mView.setBackgroundResource(color); | |
// get textview inside snackbar view | |
TextView textview = (TextView) mView.findViewById(android.support.design.R.id.snackbar_text); |
apply plugin: 'com.jfrog.bintray' | |
version = libraryVersion | |
task sourcesJar(type: Jar) { | |
from android.sourceSets.main.java.srcDirs | |
classifier = 'sources' | |
} | |
task javadoc(type: Javadoc) { |
How to upgrade to Retrofit2 from Retrofit1.X?
Please follow changes in Pull: https://github.com/RajuSE/android-mvp/pull/1/commits
How to add rxjava2 to Retrofit2?
Please follow changes in commit: https://github.com/RajuSE/android-mvp/commit/d0131b14dccda27fba4f8bbda3e06aee98eae5ac
class AppUtils{//Get fields in build.gradle | |
public static boolean getFeatureFlag(){ | |
return BuildConfig.FLAG_FEATURE; | |
} | |
public static String getAdmboBannerId(){ | |
return BuildConfig.ADMOB_BANNERADS_ID; | |
} | |
} |