Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.flipboxstudio:mvvm-starter:'
}
dependencies {
implementation("com.github.flipboxstudio:mvvm-starter:")
}
<dependency>
<groupId>com.github.flipboxstudio</groupId>
<artifactId>mvvm-starter</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.flipboxstudio" % "mvvm-starter" % ""
:dependencies [[com.github.flipboxstudio/mvvm-starter ""]]
A starter project for Android MVVM Project with DataBinding Library and RxJava 2
This repository will no longer be maintained. Further development will happen in Modular Starter using the latest and more scalable approach
You can create new project using our project generator here MVVM Starter Generator - by using our generator you can save the hassle of renaming every package reference & changing folder structure manually. Just input your App & Package name and extract the downloaded file for your future development
--
Libraries used :
com.squareup.retrofit2:retrofit:2.3.0
com.github.bumptech.glide:glide:4.0.0-RC1
pub.devrel:easypermissions:0.4.3
com.orhanobut:hawk:2.0.1
appcompat
, design support
, data binding
, etc )com.github.flipboxstudio:sosoito:v1.0.3
com.github.Ilhasoft:data-binding-validator:1.1.0
io.reactivex.rxjava2:rxandroid:2.0.1
& io.reactivex.rxjava2:rxjava:2.1.2
--
Setup included :
viewmodels
packagehttps://jsonplaceholder.typicode.com
AuthActivity
as Fragments ContainerLoginFragment
as Login UI with data binding validationForgotPasswordFragment
as Forgot Password UIRetrofitErrorAdapter
to handle retrofit throwable errorUser
as dummy object representationRecyclerViewActivity
for detailsViewPagerActivity
for detailsEasyPermissions
colors.xml
styles.xml
CustomTextView
on utils
package and custom attribute on attrs.xml
Maybe
dev
for development variables and prod
for production environment variables