Unable to use in java project ?
drmkraja opened this issue · 2 comments
drmkraja commented
It shows as NonEmptyRule cannot be resolved...
.addField(firstNameEt, NonEmptyRule(R.string.error_empty_first_name))
Dhaval2404 commented
@drmkraja It seems to be working fine for me.
Here is the syntax for Java.
FormValidator.Companion.getInstance()
.addField(firstNameEt, new NonEmptyRule(R.string.error_empty_first_name))
.validate();
drmkraja commented
Since I'm new to Kotlin, I was Unable to solve it. Now it is working thank you