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