react native多bundle发布

xuqm 05a81e4ff2 refactor(home): 优化首页精品服务模块布局 il y a 4 jours
__tests__ 974696aa4e init il y a 1 mois
android 35acc240ab feat(app): 新增首页轮播图和文章详情功能 il y a 4 jours
bundle 35acc240ab feat(app): 新增首页轮播图和文章详情功能 il y a 4 jours
config 6fe13630ba refactor(bundle): 更新 Android资源保留列表并调整导入路径 il y a 5 jours
ios 67162f6840 Initial commit il y a 1 mois
scripts 2e8734a61f feat(scripts): 重构 diff_pack.sh 用于比较 ZIP 文件 il y a 1 mois
specs 02e9dfea07 feat(update): 实现基础包热更新功能 il y a 1 mois
src 05a81e4ff2 refactor(home): 优化首页精品服务模块布局 il y a 4 jours
.eslintrc.js 67162f6840 Initial commit il y a 1 mois
.gitignore 67162f6840 Initial commit il y a 1 mois
.prettierrc.js 67162f6840 Initial commit il y a 1 mois
.watchmanconfig 67162f6840 Initial commit il y a 1 mois
Gemfile 67162f6840 Initial commit il y a 1 mois
README.md 7d19bba4b8 docs(README): 更新说明部分- 在说明部分添加了第六点内容 il y a 5 jours
babel.config.js 35acc240ab feat(app): 新增首页轮播图和文章详情功能 il y a 4 jours
build.js 974696aa4e init il y a 1 mois
index.js b1f82a5d78 feat(app): 新增主入口和公共上下文 il y a 1 mois
jest.config.js 67162f6840 Initial commit il y a 1 mois
metro.common.config.js 974696aa4e init il y a 1 mois
metro.config.js 67162f6840 Initial commit il y a 1 mois
metro.main.config.js 974696aa4e init il y a 1 mois
package.json 35acc240ab feat(app): 新增首页轮播图和文章详情功能 il y a 4 jours
tsconfig.json b1f82a5d78 feat(app): 新增主入口和公共上下文 il y a 1 mois
yarn.lock 35acc240ab feat(app): 新增首页轮播图和文章详情功能 il y a 4 jours

README.md

1. 项目结构

  • common:公共模块
  • app:首页,基础应用
  • miniapp
    • hospital: 互联网医院(下线)
    • ywq:医网签
    • ……:其它子应用(小程序)

2. 说明

  1. 使用jdk17
  2. 下证等逻辑放在common里面
  3. 方法类工具类放在common里面
  4. 小程序共有的功能点,复用点放在common里面
  5. 避免common引用子级(app、miniapp),造成循环依赖
  6. common里面添加了新的文件,需要在common.ts里面添加import

3. 分包说明

  1. common和app模块在一个包里,miniapp在一个包里
  2. App启动时会默认加载第一个common包,点击进入小程序时,加载第二个包
  3. 打包命令如下:
    1. build-android-common:打基础common包
    2. build-android-buz:打业务包
  4. 先打基础包再打业务包,如果基础包没变化,不需要更新,就不要重新打包,避免无法和线上合并

4. 部分方法类工具类整理

4.1 Toast提示

import {showErrorMessage, showMessage} from "@common/ToastHelper";

showMessage()
showErrorMessage()