- 移除 keep.xml 文件,清理不必要的资源 - 重构 ReactHostHelper 类,简化 loadBundle 方法 - 更新 MultipleReactActivityDelegate 类,使用本地文件路径加载 bundle - 修改 NavigationManager 类,优化活动跳转逻辑 - 新增 FileHelper 工具类,用于文件操作 - 更新 BuzActivity 类,使用 NavigationHelper.routerName 作为组件名称- 修改 MainApplication 类,使用本地文件路径加载 bundle - 在 MainActivity 布局中添加按钮- 更新 package.json,添加 androidRelease 脚本
64 行
3.5 KiB
JSON
64 行
3.5 KiB
JSON
{
|
|
"name": "YiwangxinMultip",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"android": "react-native run-android --active-arch-only",
|
|
"androidRelease": "react-native run-android --active-arch-only --mode=release",
|
|
"ios": "react-native run-ios",
|
|
"lint": "eslint .",
|
|
"start": "react-native start",
|
|
"test": "jest",
|
|
"build-android-common": "react-native bundle --platform android --dev false --entry-file src/common/common.ts --bundle-output bundle/android/common.android.bundle --assets-dest ./bundle/android --config metro.common.config.js --minify true --reset-cache",
|
|
"build-android-app": "react-native bundle --platform android --dev false --entry-file src/app/app.ts --bundle-output bundle/android/app.android.bundle --assets-dest ./bundle/android --config metro.main.config.js --minify true --reset-cache",
|
|
"build-android-ywq": "react-native bundle --platform android --dev false --entry-file src/ywq/ywq.ts --bundle-output ./bundle/android/ywq.android.bundle --assets-dest ./bundle/android --config metro.main.config.js --minify true --reset-cache",
|
|
"build-android-hospital": "react-native bundle --platform android --dev false --entry-file src/hospital/hospital.ts --bundle-output bundle/android/hospital.android.bundle --assets-dest ./bundle/android --config metro.main.config.js --minify true --reset-cache",
|
|
|
|
"build-ios-common": "react-native bundle --platform ios --dev false --entry-file src/common/common.ts --bundle-output bundle/ios/common.ios.bundle --assets-dest ./bundle/ios --config metro.common.config.js --minify true --reset-cache",
|
|
"build-ios-app": "react-native bundle --platform ios --dev false --entry-file src/app/app.ts --bundle-output bundle/ios/app.ios.bundle --assets-dest ./bundle/ios --config metro.main.config.js --minify true --reset-cache",
|
|
"build-ios-ywq": "react-native bundle --platform ios --dev false --entry-file src/ywq/ywq.ts --bundle-output ./bundle/ios/ywq.ios.bundle --assets-dest ./bundle/ios --config metro.main.config.js --minify true --reset-cache",
|
|
"build-ios-hospital": "react-native bundle --platform ios --dev false --entry-file src/hospital/hospital.ts --bundle-output bundle/ios/hospital.ios.bundle --assets-dest ./bundle/ios --config metro.main.config.js --minify true --reset-cache"
|
|
},
|
|
"codegenConfig": {
|
|
"name": "SpecManager",
|
|
"type": "modules",
|
|
"jsSrcsDir": "specs",
|
|
"android": {
|
|
"javaPackageName": "com.trust.ywx.specs"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@react-native-async-storage/async-storage": "^2.2.0",
|
|
"@react-native/new-app-screen": "0.80.1",
|
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
"react": "19.1.0",
|
|
"react-native": "0.80.1",
|
|
"react-native-device-info": "^14.0.4",
|
|
"react-native-storage": "^1.0.1",
|
|
"react-native-toast-message": "^2.3.3"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.25.2",
|
|
"@babel/preset-env": "^7.25.3",
|
|
"@babel/runtime": "^7.25.0",
|
|
"@react-native-community/cli": "19.0.0",
|
|
"@react-native-community/cli-platform-android": "19.0.0",
|
|
"@react-native-community/cli-platform-ios": "19.0.0",
|
|
"@react-native/babel-preset": "0.80.1",
|
|
"@react-native/eslint-config": "0.80.1",
|
|
"@react-native/metro-config": "0.80.1",
|
|
"@react-native/typescript-config": "0.80.1",
|
|
"@types/jest": "^29.5.13",
|
|
"@types/react": "^19.1.0",
|
|
"@types/react-test-renderer": "^19.1.0",
|
|
"eslint": "^8.19.0",
|
|
"jest": "^29.6.3",
|
|
"prettier": "2.8.8",
|
|
"react-test-renderer": "19.1.0",
|
|
"typescript": "5.0.4"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
}
|
|
}
|