1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 12:11:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix FileJSBundleProvider conflict issue (#496)

* fix FileJSBundleProvider conflics issue

* udpate
This commit is contained in:
波仔糕
2025-04-30 14:11:50 +08:00
committed by GitHub
parent aa56c2ec0f
commit cea39f1746
5 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
"": { "": {
"name": "harmony_use_pushy", "name": "harmony_use_pushy",
"dependencies": { "dependencies": {
"@react-native-oh/react-native-harmony": "^0.72.43", "@react-native-oh/react-native-harmony": "^0.72.59",
"react": "18.2.0", "react": "18.2.0",
"react-native": "0.72.5", "react-native": "0.72.5",
"react-native-update": "^10.26.4", "react-native-update": "^10.26.4",

View File

@@ -1,4 +1,4 @@
import { FileJSBundleProvider } from 'pushy/src/main/ets/FileJSBundleProvider'; import { PushyFileJSBundleProvider } from 'pushy/src/main/ets/PushyFileJSBundleProvider';
import { ComponentBuilderContext, RNOHCoreContext,RNAbility, import { ComponentBuilderContext, RNOHCoreContext,RNAbility,
MetroJSBundleProvider } from '@rnoh/react-native-openharmony'; MetroJSBundleProvider } from '@rnoh/react-native-openharmony';
import { import {
@@ -65,7 +65,7 @@ struct Index {
// local debug mode // local debug mode
new MetroJSBundleProvider(), new MetroJSBundleProvider(),
// release mode // release mode
new FileJSBundleProvider(this.rnohCoreContext.uiAbilityContext), new PushyFileJSBundleProvider(this.rnohCoreContext.uiAbilityContext),
new ResourceJSBundleProvider(this.rnohCoreContext.uiAbilityContext.resourceManager, 'bundle.harmony.js') new ResourceJSBundleProvider(this.rnohCoreContext.uiAbilityContext.resourceManager, 'bundle.harmony.js')
]), ]),
this.rnohCoreContext.logger), this.rnohCoreContext.logger),

View File

@@ -1,4 +1,4 @@
{ {
"pushy_build_time": "2025-04-12T11:12:43.423Z", "pushy_build_time": "2025-04-30T02:46:33.340Z",
"versionName": "1.0.0" "versionName": "1.0.0"
} }

View File

@@ -15,7 +15,7 @@
"hash": "pushy hash /Users/yanbo.he/Desktop/HarmonyOS/react-native-pushy/Example/harmony_use_pushy/.pushy/output/harmony.1735048297258.ppk" "hash": "pushy hash /Users/yanbo.he/Desktop/HarmonyOS/react-native-pushy/Example/harmony_use_pushy/.pushy/output/harmony.1735048297258.ppk"
}, },
"dependencies": { "dependencies": {
"@react-native-oh/react-native-harmony": "^0.72.43", "@react-native-oh/react-native-harmony": "^0.72.59",
"react": "18.2.0", "react": "18.2.0",
"react-native": "0.72.5", "react-native": "0.72.5",
"react-native-update": "^10.26.4" "react-native-update": "^10.26.4"

View File

@@ -3,7 +3,7 @@ import fileIo from '@ohos.file.fs';
import common from '@ohos.app.ability.common'; import common from '@ohos.app.ability.common';
import { UpdateContext } from './UpdateContext'; import { UpdateContext } from './UpdateContext';
export class FileJSBundleProvider extends JSBundleProvider { export class PushyFileJSBundleProvider extends JSBundleProvider {
private updateContext: UpdateContext; private updateContext: UpdateContext;
private filePath: string = '' private filePath: string = ''