diff --git a/config/index.js b/config/index.js index 63aac3c..e45b6a4 100644 --- a/config/index.js +++ b/config/index.js @@ -92,7 +92,12 @@ const config = { } } }, - harmony: require('./harmony.json'), + harmony: { + compiler: "vite", + projectPath: process.env.HARMONY_PROJECT_PATH || 'dist', + hapName: "entry", + name: "default" + }, rn: { appName: 'taroDemo', output: { diff --git a/package.json b/package.json index af5e962..d33e8b8 100644 --- a/package.json +++ b/package.json @@ -49,14 +49,17 @@ "@react-native-async-storage/async-storage": "~1.21.0", "@react-native-camera-roll/camera-roll": "~7.2.2", "@react-native-clipboard/clipboard": "~1.13.2", + "@react-native-community/cli-platform-android": "^12.3.0", "@react-native-community/geolocation": "~3.1.0", "@react-native-community/netinfo": "~11.2.1", "@react-native-community/slider": "~4.4.4", "@react-native-masked-view/masked-view": "~0.3.1", "@react-native-picker/picker": "~2.6.1", + "@react-native/gradle-plugin": "^0.73.0", "@shopify/flash-list": "^1.3.1", "@shopify/react-native-skia": "0.1.222", "@tarojs/components": "4.0.0-canary.6", + "@tarojs/components-advanced": "4.0.0-canary.6", "@tarojs/components-rn": "4.0.0-canary.6", "@tarojs/helper": "4.0.0-canary.6", "@tarojs/plugin-framework-react": "4.0.0-canary.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c5bfd96..8aa27e7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,6 +25,9 @@ dependencies: '@react-native-clipboard/clipboard': specifier: ~1.13.2 version: 1.13.2(react-native@0.73.1)(react@18.2.0) + '@react-native-community/cli-platform-android': + specifier: ^12.3.0 + version: 12.3.0 '@react-native-community/geolocation': specifier: ~3.1.0 version: 3.1.0(react-native@0.73.1)(react@18.2.0) @@ -40,6 +43,9 @@ dependencies: '@react-native-picker/picker': specifier: ~2.6.1 version: 2.6.1(react-native@0.73.1)(react@18.2.0) + '@react-native/gradle-plugin': + specifier: ^0.73.0 + version: 0.73.4 '@shopify/flash-list': specifier: ^1.3.1 version: 1.6.3(@babel/runtime@7.23.7)(react-native@0.73.1)(react@18.2.0) @@ -49,6 +55,9 @@ dependencies: '@tarojs/components': specifier: 4.0.0-canary.6 version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) + '@tarojs/components-advanced': + specifier: 4.0.0-canary.6 + version: 4.0.0-canary.6(@types/react@18.2.46)(react@18.2.0)(rollup@2.75.6) '@tarojs/components-rn': specifier: 4.0.0-canary.6 version: 4.0.0-canary.6(@babel/preset-env@7.23.7)(@react-native-camera-roll/camera-roll@7.2.2)(@react-native-community/segmented-control@2.2.2)(@react-native-community/slider@4.4.4)(@react-native-masked-view/masked-view@0.3.1)(@react-native-picker/picker@2.6.1)(expo-av@13.10.1)(expo-barcode-scanner@12.9.2)(expo-camera@14.0.1)(expo@50.0.0-preview.7)(react-native-gesture-handler@2.14.0)(react-native-pager-view@6.2.3)(react-native-safe-area-context@4.8.2)(react-native-screens@3.29.0)(react-native-svg@14.1.0)(react-native-webview@13.6.4)(react-native@0.73.1)(react@18.2.0) @@ -19350,7 +19359,7 @@ packages: /read-package-json@2.1.2: resolution: {integrity: sha512-D1KmuLQr6ZSJS0tW8hf3WGpRlwszJOXZ3E8Yd/DNRaM5d+1wVRZdHlpGBLAuovjr28LbWvjpWkBHMxpRGGjzNA==} dependencies: - glob: 7.1.2 + glob: 7.2.3 json-parse-even-better-errors: 2.3.1 normalize-package-data: 2.5.0 npm-normalize-package-bin: 1.0.1