Version 0.0.3
library to validate input from user input especially in the authentication section
use Gradle:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.renaldysa18:Validator:Version'
}
Or Maven:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.renaldysa18</groupId>
<artifactId>Validator</artifactId>
<version>Version</version>
</dependency>
How to use this library //initializing class validator val validator = Validator()
after that you can use this library by calling the method you need
list of method :
- validasiLoginWithEmail
- validasiLoginWithUsername
- validasiSignUp (there are three choices)
example
validator.validasiLoginWithEmail(email, password){
result: Boolean, message: String ->
if(result){
//do the right stuff
} else {
//use the return message to find out the error
}
}
Renaldy SJP :)
This is not an official Google product.