From a4905e7226367bcbf2bb1aff30dcb1bfa0523353 Mon Sep 17 00:00:00 2001 From: lvmeng <848755140@qq.com> Date: Thu, 29 Jan 2026 18:51:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=8E=A5=E5=8F=A3=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deploymentTargetSelector.xml | 4 +- app/build.gradle.kts | 6 +- app/release/baselineProfiles/1/app-release.dm | Bin 3176 -> 0 bytes .../dish/match/adapter/SeasoningCellTool.kt | 134 ------- .../shuwei/dish/match/base/BaseActivity.kt | 32 +- .../com/shuwei/dish/match/base/BaseApp.kt | 8 +- .../com/shuwei/dish/match/base/GlobalData.kt | 22 ++ .../{BottomDialog.kt => FoodSearchDialog.kt} | 198 ++++++---- ...tomDialog2.kt => SeasoningSearchDialog.kt} | 208 +++++++--- .../dish/match/entity/CookFoodEntity.kt | 4 + .../dish/match/entity/CookFoodGoodsEntity.kt | 8 +- .../dish/match/entity/SeasoningEntity.kt | 15 +- .../com/shuwei/dish/match/http/HttpClient.kt | 140 +++---- .../com/shuwei/dish/match/http/HttpUtil.kt | 366 +++++++++--------- .../com/shuwei/dish/match/http/UrlConfig.kt | 43 +- .../com/shuwei/dish/match/net/ApiRequest.kt | 118 ++++++ .../com/shuwei/dish/match/net/ApiService.kt | 121 ++++++ .../com/shuwei/dish/match/net/ApiService2.kt | 68 ++++ .../com/shuwei/dish/match/net/ErrorType.kt | 19 + .../dish/match/net/ExceptionInterceptor.kt | 40 ++ .../com/shuwei/dish/match/net/HttpManager.kt | 80 ++++ .../com/shuwei/dish/match/net/NetViewModel.kt | 141 +++++++ .../dish/match/net/RequestInterceptor.kt | 22 ++ .../com/shuwei/dish/match/net/RespData.kt | 9 + .../dish/match/ui/DeviceConfigActivity.kt | 9 +- .../dish/match/ui/DishSamplingActivity.kt | 6 +- .../dish/match/ui/FoodSearchActivity.kt | 115 ++++-- .../com/shuwei/dish/match/ui/HomeActivity.kt | 2 - .../com/shuwei/dish/match/ui/InitActivity.kt | 93 +++-- .../dish/match/ui/PrepareCookActivity.kt | 183 +++++---- .../dish/match/ui/SamplingListActivity.kt | 105 ++--- .../dish/match/ui/SelectDishActivity.kt | 25 +- .../dish/match/ui/SubmitFoodActivity.kt | 106 ++--- .../match/ui/fragment/DishListFragment.kt | 127 +++--- .../com/shuwei/dish/match/utils/WeightUtil.kt | 3 +- .../main/res/drawable/shape_edit_cursor.xml | 6 + .../res/layout/activity_device_setting.xml | 216 ----------- .../res/layout/activity_dish_sampling.xml | 7 +- app/src/main/res/layout/activity_init.xml | 5 +- .../main/res/layout/activity_prepare_cook.xml | 18 +- app/src/main/res/layout/activity_sampling.xml | 5 +- .../main/res/layout/activity_submit_dish.xml | 173 --------- .../main/res/layout/activity_submit_food.xml | 31 +- ...ottom_sheet.xml => dialog_food_search.xml} | 9 +- ...sheet2.xml => dialog_seasoning_search.xml} | 15 +- .../res/layout/fragment_dish_sampling.xml | 281 -------------- .../res/layout/fragment_sampling_list.xml | 105 ----- .../main/res/layout/layout_food_remind.xml | 12 +- app/src/main/res/layout/layout_grid.xml | 1 + app/src/main/res/values/themes.xml | 5 +- 50 files changed, 1753 insertions(+), 1716 deletions(-) delete mode 100644 app/release/baselineProfiles/1/app-release.dm delete mode 100644 app/src/main/java/com/shuwei/dish/match/adapter/SeasoningCellTool.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/base/GlobalData.kt rename app/src/main/java/com/shuwei/dish/match/dialog/{BottomDialog.kt => FoodSearchDialog.kt} (51%) rename app/src/main/java/com/shuwei/dish/match/dialog/{BottomDialog2.kt => SeasoningSearchDialog.kt} (53%) create mode 100644 app/src/main/java/com/shuwei/dish/match/net/ApiRequest.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/net/ApiService.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/net/ApiService2.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/net/ErrorType.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/net/ExceptionInterceptor.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/net/HttpManager.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/net/NetViewModel.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/net/RequestInterceptor.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/net/RespData.kt create mode 100644 app/src/main/res/drawable/shape_edit_cursor.xml delete mode 100644 app/src/main/res/layout/activity_device_setting.xml delete mode 100644 app/src/main/res/layout/activity_submit_dish.xml rename app/src/main/res/layout/{dialog_bottom_sheet.xml => dialog_food_search.xml} (93%) rename app/src/main/res/layout/{dialog_bottom_sheet2.xml => dialog_seasoning_search.xml} (93%) delete mode 100644 app/src/main/res/layout/fragment_dish_sampling.xml delete mode 100644 app/src/main/res/layout/fragment_sampling_list.xml diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index 98a7c53..3511968 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,10 +4,10 @@