{"id":27966465,"url":"https://github.com/techery/viewvalidators","last_synced_at":"2025-08-10T07:14:22.121Z","repository":{"id":75020421,"uuid":"46276579","full_name":"techery/ViewValidators","owner":"techery","description":null,"archived":false,"fork":false,"pushed_at":"2015-11-17T11:57:16.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T20:18:53.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-16T13:35:09.000Z","updated_at":"2015-11-16T13:52:48.000Z","dependencies_parsed_at":"2023-03-09T11:06:57.711Z","dependency_job_id":null,"html_url":"https://github.com/techery/ViewValidators","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techery%2FViewValidators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techery%2FViewValidators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techery%2FViewValidators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techery%2FViewValidators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techery","download_url":"https://codeload.github.com/techery/ViewValidators/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252949223,"owners_count":21830154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T20:18:56.077Z","updated_at":"2025-05-07T20:18:56.665Z","avatar_url":"https://github.com/techery.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ViewValidators\nViewValidators is an useful library based on rxJava for performance validation functional in several steps!\nDuring validation ViewValidations can control the state (enable/disable) of the view by `SimpleEnabledValidationSubscriber`\nor check the correctness of the data with time delay (`InputValidatorComposer`)\n\n# Available functional:\n1  String Validator \u003cbr /\u003e\n2  Email Validator \u003cbr /\u003e\n3  Phone Validator \u003cbr /\u003e\n4  Length Validator \u003cbr /\u003e\n5  Equality Validator \u003cbr /\u003e\n6  Non Empty Validator \u003cbr /\u003e\n7  Empty Validator \u003cbr /\u003e\n8  Empty Or Validator \u003cbr /\u003e\n9  All Valid Validator \u003cbr /\u003e\n10 First Wrong Validator \u003cbr /\u003e\n11 All Invalid Validator \u003cbr /\u003e\n\n# Sample\n``` groovy\nformValidator = new FormValidator();\nformValidator\n     .add(WidgetValidators.emailValidator(RxTextView.textChangeEvents(emailView).skip(1))\n                .withError(\"Incorrect email\")\n                .result())\n     .compose(new InputValidatorComposer\u003cValidationResult\u003e())\n     .compose(this.\u003cValidationResult\u003ebindToLifecycle())\n     .subscribe(new SimpleTextValidationSubscriber());\n     \nformValidator\n     .add(WidgetValidators.lengthValidator(RxTextView.textChangeEvents(passwordView), Validations.GTELengthValidation.of(minLength))\n                .withError(\"Incorrect password\")\n                .result())\n     .compose(new InputValidatorComposer\u003cValidationResult\u003e(TIME_DELAY_IN_MILLISECONDS))\n     .compose(this.\u003cValidationResult\u003ebindToLifecycle())\n     .subscribe(new SimpleTextValidationSubscriber());\n     \nformValidator.allCombined(signInButton)\n             .startWith(ValidationResult.of(ValidationResult.ValidationStatus.ERROR, signInButton))\n             .subscribe(new SimpleEnabledValidationSubscriber());\n```\n             \n# Installation\n``` groovy\nbuildscript {\n    repositories {\n        jcenter()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:1.1.3'\n        classpath 'com.github.dcendents:android-maven-plugin:1.2'\n    }\n}\n...\napply plugin: 'com.android.application'\napply plugin: 'com.neenbedankt.android-apt'\n...\nrepositories {\n    jcenter()\n    maven { url \"https://jitpack.io\" }\n}\n\ndependencies {\n    compile 'com.github.techery:ViewValidators:0.1.2'\n    ...\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechery%2Fviewvalidators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechery%2Fviewvalidators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechery%2Fviewvalidators/lists"}