Explorar o código

refactor(bundle): 更新 Android资源保留列表并调整导入路径

- 更新 keep.xml 文件,添加新的 drawable 资源
- 修改 env.ts 和 envUtils.ts 中的导入路径
- 移除 common.ts 中的冗余导入- 添加多个新模块的导入,包括工具类、界面组件和上下文管理
xuqm hai 4 días
pai
achega
6fe13630ba

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
bundle/android/common/common.android.bundle


+ 1 - 1
bundle/android/common/raw/keep.xml

@@ -1 +1 @@
-<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@drawable/src_common_assets_images_common_arrow_back,@drawable/node_modules_reactnavigation_elements_lib_module_assets_searchicon,@drawable/node_modules_reactnavigation_elements_lib_module_assets_backicon,@drawable/node_modules_reactnavigation_elements_lib_module_assets_backiconmask,@drawable/node_modules_reactnavigation_elements_lib_module_assets_clearicon,@drawable/node_modules_reactnavigation_elements_lib_module_assets_closeicon" />
+<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@drawable/src_common_assets_images_common_appicon,@drawable/src_common_assets_images_common_arrow_back,@drawable/src_app_assets_images_common_common_clear,@drawable/src_app_assets_images_common_common_radio_button_selected,@drawable/src_app_assets_images_common_common_radio_button_unselected,@drawable/node_modules_reactnavigation_elements_lib_module_assets_searchicon,@drawable/node_modules_reactnavigation_elements_lib_module_assets_backicon,@drawable/node_modules_reactnavigation_elements_lib_module_assets_backiconmask,@drawable/node_modules_reactnavigation_elements_lib_module_assets_clearicon,@drawable/node_modules_reactnavigation_elements_lib_module_assets_closeicon,@drawable/src_app_assets_images_login_login_logo,@drawable/src_app_assets_images_login_login_phone_number,@drawable/src_app_assets_images_login_login_sms_code,@drawable/src_app_assets_images_login_login_username,@drawable/src_app_assets_images_login_login_password,@drawable/src_app_assets_images_login_login_invitation_code,@drawable/src_app_assets_images_login_login_id_card,@drawable/src_app_assets_images_common_common_logo" />

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
config/bundleCommonInfo.json


+ 17 - 1
src/common/common.ts

@@ -1,4 +1,3 @@
-
 export const version_common = '1.0.0';
 export const version_code = 1;
 
@@ -19,3 +18,20 @@ import '@common/components/Alert.tsx';
 import '@common/components/BottomSheet.tsx';
 import '@common/components/HeaderBackImage.tsx';
 import '@common/components/Spinner.tsx';
+// 工具
+import '@common/utils/commonUtils.ts';
+import '@common/utils/md5';
+// 界面
+import '@common/screens/webview/WebViewScreen';
+// context
+import '@common/contexts/AuthContext';
+import '@common/contexts/CommonContext';
+import '@common/contexts/useAuth';
+import '@common/contexts/useCommon';
+// 常量定义
+import '@common/constants/index';
+import '@common/constants/types';
+import '@common/constants/values';
+// 网络工具
+import '@common/api/useApi';
+import '@common/api/usePageApi';

+ 1 - 1
src/common/env/env.ts

@@ -1,4 +1,4 @@
-import {RequiredCommonInfo} from '@app/contexts/CommonContext';
+import { RequiredCommonInfo } from '@common/contexts/CommonContext.tsx';
 
 type Env = {
   env: RequiredCommonInfo['env'];

+ 1 - 1
src/common/env/envUtils.ts

@@ -1,5 +1,5 @@
-import {RequiredCommonInfo} from '@app/contexts/CommonContext';
 import ENV from '@common/env/env.ts';
+import { RequiredCommonInfo } from '@common/contexts/CommonContext.tsx';
 
 /**
  * @description: 直接根据环境类型获得环境的配置

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio