From 18d6ec6961aba1450daa36261531930f29a8b375 Mon Sep 17 00:00:00 2001 From: doteq Date: Thu, 27 Feb 2020 00:10:11 +0100 Subject: [PATCH] Add account recover (#635) --- .idea/codeStyles/Project.xml | 3 - app/build.gradle | 4 +- .../repositories/recover/RecoverRemote.kt | 19 ++ .../repositories/recover/RecoverRepository.kt | 26 ++ .../ui/modules/login/LoginActivity.kt | 8 +- .../ui/modules/login/LoginErrorHandler.kt | 3 + .../wulkanowy/ui/modules/login/LoginModule.kt | 5 + .../ui/modules/login/LoginPresenter.kt | 8 +- .../login/advanced/LoginAdvancedFragment.kt | 45 +-- .../modules/login/form/LoginFormFragment.kt | 9 +- .../modules/login/form/LoginFormPresenter.kt | 4 + .../ui/modules/login/form/LoginFormView.kt | 2 + .../login/recover/LoginRecoverFragment.kt | 209 ++++++++++++++ .../login/recover/LoginRecoverPresenter.kt | 157 ++++++++++ .../modules/login/recover/LoginRecoverView.kt | 54 ++++ .../login/recover/RecoverErrorHandler.kt | 32 +++ .../main/res/layout/fragment_login_form.xml | 22 +- .../res/layout/fragment_login_recover.xml | 272 ++++++++++++++++++ app/src/main/res/values-pl/strings.xml | 8 +- app/src/main/res/values-ru/strings.xml | 6 + app/src/main/res/values/strings.xml | 6 + 21 files changed, 867 insertions(+), 35 deletions(-) create mode 100644 app/src/main/java/io/github/wulkanowy/data/repositories/recover/RecoverRemote.kt create mode 100644 app/src/main/java/io/github/wulkanowy/data/repositories/recover/RecoverRepository.kt create mode 100644 app/src/main/java/io/github/wulkanowy/ui/modules/login/recover/LoginRecoverFragment.kt create mode 100644 app/src/main/java/io/github/wulkanowy/ui/modules/login/recover/LoginRecoverPresenter.kt create mode 100644 app/src/main/java/io/github/wulkanowy/ui/modules/login/recover/LoginRecoverView.kt create mode 100644 app/src/main/java/io/github/wulkanowy/ui/modules/login/recover/RecoverErrorHandler.kt create mode 100644 app/src/main/res/layout/fragment_login_recover.xml diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 15a4246b..d66c3361 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,9 +1,6 @@