This is an Android Studio MVVM template. Template contains folows components architectures: Project, Activity, Fragment, List implementation. Also used folows libraries and plugins: RxJava2, Dagger, Calligraphy, FastAndroidNetworking, Glide, EventBus, EasyPrefs, Gson, Realm and plugin Lombok.
- Insert Android Studio path into android_studio_path;
- Run the install script (setup.sh) at the root of this repository.
- Copy
MvvmProject
directory to$ANDROID_STUDIO_DIR/plugins/android/lib/templates/activities/
; - Copy
MvvmActivity
,MvvmFragment
andMvvmListAdapter
directories to$ANDROID_STUDIO_DIR/plugins/android/lib/templates/other/
; - Overwrite the original file
$ANDROID_STUDIO_DIR/plugins/android/lib/templates/gradle-projects/NewAndroidModule/root/shared_macros.ftl
with a new fileshared_macros.ftl
; - Overwrite the original file
$ANDROID_STUDIO_DIR/plugins/android/lib/templates/gradle-projects/NewAndroidModule/root/build.gradle.ftl
with a new filebuild.gradle.ftl
.