You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a code inside androidx.fragment.app.Fragment
@Password(min = 3)
EditText etPassword;
After init validation
validator = new Validator(this);
validator.setValidationMode(Validator.Mode.IMMEDIATE);
validator.setValidationListener(this);
And on validator.validate(); I receive:
SaripaarViolationException: 'com.mobsandgeeks.saripaar.rule.PasswordRule' should have a single-argument constructor that accepts a 'com.mobsandgeeks.saripaar.annotation.Password' instance.
Pls help to fix
The text was updated successfully, but these errors were encountered:
IMO It is most probably because of the instantiateRule() method in Reflector.java class, which throws this violation error when trying to create the validation rule with any available public constructors through reflection.
I tried debugging this and found that no constructors are returned, even after adding a public constructor to my Annotation Rule class.
This only happens when I'm using proguard, but I've added these lines to my proguard.pro file: -keep class com.mobsandgeeks.saripaar.** {*;} -dontwarn com.mobsandgeeks.saripaar.**
Still this is happening.
Can some help here?
I have a code inside androidx.fragment.app.Fragment
After init validation
And on validator.validate(); I receive:
Pls help to fix
The text was updated successfully, but these errors were encountered: