From 81758cf3400fb5aa31962ed6bdf8963cf307f61e Mon Sep 17 00:00:00 2001 From: Sergio De la torre Date: Tue, 10 Sep 2024 07:19:28 +0200 Subject: [PATCH] feat: refactorResponse refs #7827 --- .idea/appInsightsSettings.xml | 11 +- .idea/workspace.xml | 235 ++++++++++++------ app/build.gradle | 4 +- .../java/es/verdnatura/di/viewModelModule.kt | 5 - .../java/es/verdnatura/domain/SalixService.kt | 6 +- .../presentation/common/GeneralAdapter.kt | 58 +++-- .../presentation/common/UICallbacks.kt | 16 +- .../presentation/common/UtilFunctions.kt | 19 +- .../ajustes/fragment/AjustesFragment.kt | 6 +- .../articulo/adapter/ItemProposalAdapter.kt | 6 +- .../articulo/fragment/ItemCardFragment.kt | 8 +- .../articulo/fragment/ItemCardViewModel.kt | 27 +- .../buffer/fragment/BufferLoadFragment.kt | 2 +- .../buffer/fragment/adapter/BufferAdapter.kt | 14 +- .../buscaritem/adapter/LocationAdapter.kt | 4 +- .../category/ChangeCategoryFragment.kt | 18 +- .../category/ChangeCategoryViewModel.kt | 25 +- .../reubication/adapter/ReubicatorAdapter.kt | 5 +- .../adapter/ReubicatorPlacementAdapter.kt | 5 +- .../ubication/ClaimUbicationFragment.kt | 4 +- .../collection/adapter/PlacementAdapter.kt | 4 +- .../feature/collection/adapter/SaleAdapter.kt | 4 +- .../collection/adapter/SaleAdapterNew.kt | 4 +- .../collection/fragment/CollectionFragment.kt | 11 +- .../fragment/CollectionFragmentPicker.kt | 53 ++-- .../fragment/CollectionFragmentPickerNew.kt | 8 +- .../CollectionFragmentPickerPreviousNew.kt | 8 +- .../fragment/CollectionFragmentPreChecker.kt | 18 +- .../CollectionFragmentPreCheckerNew.kt | 9 +- .../fragment/CollectionViewModel.kt | 26 +- .../fragment/ControlVehiculoFragment.kt | 2 +- .../fragment/ControlVehiculoViewModel.kt | 23 +- .../delivery/activity/SignedActivity.kt | 2 +- .../delivery/fragments/RoutesFragment.kt | 31 ++- .../delivery/fragments/SummaryFragment.kt | 2 +- .../delivery/fragments/TicketsFragment.kt | 16 +- .../delivery/viewmodels/DeliveryViewModel.kt | 10 +- .../diadeventa/adapter/DayOfSaleAdapter.kt | 4 +- .../fragment/HistoricoArticuloFragment.kt | 2 +- .../adapter/ItemShelvingLogAdapter.kt | 5 +- .../fragment/shelvingLogFragment.kt | 2 +- .../inventario/adapter/InventoryAdapter.kt | 10 +- .../adapter/InventoryParkingAdapter.kt | 11 +- .../inventario/fragment/InventaryFragment.kt | 2 +- .../inventario/fragment/InventaryViewModel.kt | 25 +- .../feature/login/adapter/WorkFormAdapter.kt | 13 +- .../feature/login/fragment/LoginFragment.kt | 60 +++-- .../feature/login/fragment/LoginViewModel.kt | 3 - .../feature/main/activity/MainActivity.kt | 106 ++++---- .../packaging/adapter/ItemSupplierAdapter.kt | 2 +- .../packaging/adapter/ListImageAdapter.kt | 2 +- .../packaging/fragment/ObservFragment.kt | 4 +- .../fragment/PackagingCountFragment.kt | 66 ++--- .../packaging/fragment/SupplierFragment.kt | 4 +- .../model/ItemExpeditionTruckVO.kt | 8 +- .../feature/paletizador/model/ItemPalletVO.kt | 7 +- .../feature/paletizador/model/ItemScanVO.kt | 24 +- .../parking/fragment/ParkingFragment.kt | 21 +- .../parking/fragment/ParkingViewModel.kt | 7 +- .../feature/photos/fragment/PhotosFragment.kt | 48 ++-- .../precontrol/PreControladorFragment.kt | 11 +- .../precontrol/PreControladorViewModel.kt | 45 ---- .../presacador/adapter/PreSacadorAdapter.kt | 2 +- .../presacador/fragment/EndSacadorFragment.kt | 4 +- .../fragment/PreSacadorViewModel.kt | 11 +- .../SectorCollectionReserveFragment.kt | 4 +- .../view/feature/qr/QrFragment.kt | 17 +- .../roadmap/fragment/StopMapListFragment.kt | 38 +-- .../sacador/fragment/SacadorViewModel.kt | 2 - .../fragment/showticket/ShowTicketFragment.kt | 10 +- .../feature/sacador/model/TicketItemVO.kt | 8 +- .../ubicador/adapter/UbicadorAdapter.kt | 5 +- .../ubicador/adapter/UbicadorAdapterNew.kt | 6 +- .../fragment/AutomaticAddItemFragment.kt | 20 +- .../fragment/AutomaticAddItemViewModel.kt | 43 +--- .../ubicador/fragment/UbicadorFragmentNew.kt | 120 +++++---- .../ubicador/fragment/UbicadorViewModel.kt | 103 +++----- .../fragment/PackingMistakeFragment.kt | 2 +- .../fragment/WorkermistakeFragment.kt | 23 +- .../workermistake/model/mistakeWorkerType.kt | 15 +- app/src/main/res/values-es/strings.xml | 4 +- app/src/main/res/values-fr/strings.xml | 4 +- app/src/main/res/values-pt/strings.xml | 4 +- app/src/main/res/values/strings.xml | 5 +- 84 files changed, 778 insertions(+), 873 deletions(-) delete mode 100644 app/src/main/java/es/verdnatura/presentation/view/feature/precontrol/PreControladorViewModel.kt diff --git a/.idea/appInsightsSettings.xml b/.idea/appInsightsSettings.xml index cbb5825e..66b54b89 100644 --- a/.idea/appInsightsSettings.xml +++ b/.idea/appInsightsSettings.xml @@ -35,7 +35,16 @@ + +