Model based validation library for Android
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
gradle/wrapper init Feb 15, 2018
validator
.gitignore init Feb 15, 2018
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

AndroidValidator

Model based validation library for Android written in kotlin

Kotlin sample usage: (Column info is not part of validator it is from Room library)

Validation:

Model in java:

All validated fields have to have standard getters

Import:

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
      ...
      maven { url 'https://jitpack.io' }
    }
  }

Add the dependency

  dependencies {
            ...
            compile 'com.github.gregor9494:AndroidValidator:1.0.6'
    }

If you fell gratefull for my work you can buy me a cup of coffee

PayPal.Me/GregorAndroidDevelop