From 485caba5f8497f617f2266dfdfcbeaaf8bea26ed Mon Sep 17 00:00:00 2001 From: omer358 Date: Sun, 23 Jun 2024 03:10:01 +0400 Subject: [PATCH] resolves #6 --- .idea/appInsightsSettings.xml | 8 +- .idea/deploymentTargetSelector.xml | 17 +- .../repository/PeopleRepositoryImplTest.kt | 8 +- .../rememberme/data/PeopleRepositoryImpl.kt | 2 +- .../com/example/rememberme/di/AppModule.kt | 4 +- .../domain/repository/PeopleRepository.kt | 2 +- .../domain/usecases/people/InsertNewPerson.kt | 13 ++ .../domain/usecases/people/PeopleUseCases.kt | 3 +- .../presentation/addperson/AddPersonEvents.kt | 11 ++ .../presentation/addperson/AddPersonScreen.kt | 175 ++++++++++++++++++ .../addperson/AddPersonUiState.kt | 11 ++ .../addperson/AddPersonViewModel.kt | 76 ++++++++ .../common/composables/CustomButton.kt | 40 ++++ .../composables/CustomOutLinedTextField.kt | 46 +++++ .../composables}/PeopleListItem.kt | 2 +- .../presentation/navgraph/NavGraph.kt | 10 +- .../peopleList/PeopleListScreen.kt | 15 +- 17 files changed, 417 insertions(+), 26 deletions(-) create mode 100644 app/src/main/java/com/example/rememberme/domain/usecases/people/InsertNewPerson.kt create mode 100644 app/src/main/java/com/example/rememberme/presentation/addperson/AddPersonEvents.kt create mode 100644 app/src/main/java/com/example/rememberme/presentation/addperson/AddPersonScreen.kt create mode 100644 app/src/main/java/com/example/rememberme/presentation/addperson/AddPersonUiState.kt create mode 100644 app/src/main/java/com/example/rememberme/presentation/addperson/AddPersonViewModel.kt create mode 100644 app/src/main/java/com/example/rememberme/presentation/common/composables/CustomButton.kt create mode 100644 app/src/main/java/com/example/rememberme/presentation/common/composables/CustomOutLinedTextField.kt rename app/src/main/java/com/example/rememberme/presentation/{composable => common/composables}/PeopleListItem.kt (97%) diff --git a/.idea/appInsightsSettings.xml b/.idea/appInsightsSettings.xml index 371f2e2..130bcfc 100644 --- a/.idea/appInsightsSettings.xml +++ b/.idea/appInsightsSettings.xml @@ -8,10 +8,10 @@