diff --git a/Example/harmony_use_pushy/bun.lock b/Example/harmony_use_pushy/bun.lock index 1c1a638..ab8dd2a 100644 --- a/Example/harmony_use_pushy/bun.lock +++ b/Example/harmony_use_pushy/bun.lock @@ -4,7 +4,7 @@ "": { "name": "harmony_use_pushy", "dependencies": { - "@react-native-oh/react-native-harmony": "^0.72.43", + "@react-native-oh/react-native-harmony": "^0.72.59", "react": "18.2.0", "react-native": "0.72.5", "react-native-update": "^10.26.4", diff --git a/Example/harmony_use_pushy/harmony/entry/src/main/ets/pages/Index.ets b/Example/harmony_use_pushy/harmony/entry/src/main/ets/pages/Index.ets index 90ec87d..76767d9 100644 --- a/Example/harmony_use_pushy/harmony/entry/src/main/ets/pages/Index.ets +++ b/Example/harmony_use_pushy/harmony/entry/src/main/ets/pages/Index.ets @@ -1,4 +1,4 @@ -import { FileJSBundleProvider } from 'pushy/src/main/ets/FileJSBundleProvider'; +import { PushyFileJSBundleProvider } from 'pushy/src/main/ets/PushyFileJSBundleProvider'; import { ComponentBuilderContext, RNOHCoreContext,RNAbility, MetroJSBundleProvider } from '@rnoh/react-native-openharmony'; import { @@ -65,7 +65,7 @@ struct Index { // local debug mode new MetroJSBundleProvider(), // release mode - new FileJSBundleProvider(this.rnohCoreContext.uiAbilityContext), + new PushyFileJSBundleProvider(this.rnohCoreContext.uiAbilityContext), new ResourceJSBundleProvider(this.rnohCoreContext.uiAbilityContext.resourceManager, 'bundle.harmony.js') ]), this.rnohCoreContext.logger), diff --git a/Example/harmony_use_pushy/harmony/entry/src/main/resources/rawfile/meta.json b/Example/harmony_use_pushy/harmony/entry/src/main/resources/rawfile/meta.json index e7272e1..7c3ad72 100644 --- a/Example/harmony_use_pushy/harmony/entry/src/main/resources/rawfile/meta.json +++ b/Example/harmony_use_pushy/harmony/entry/src/main/resources/rawfile/meta.json @@ -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" } \ No newline at end of file diff --git a/Example/harmony_use_pushy/package.json b/Example/harmony_use_pushy/package.json index 3263db0..64890de 100644 --- a/Example/harmony_use_pushy/package.json +++ b/Example/harmony_use_pushy/package.json @@ -15,7 +15,7 @@ "hash": "pushy hash /Users/yanbo.he/Desktop/HarmonyOS/react-native-pushy/Example/harmony_use_pushy/.pushy/output/harmony.1735048297258.ppk" }, "dependencies": { - "@react-native-oh/react-native-harmony": "^0.72.43", + "@react-native-oh/react-native-harmony": "^0.72.59", "react": "18.2.0", "react-native": "0.72.5", "react-native-update": "^10.26.4" diff --git a/harmony/src/main/ets/FileJSBundleProvider.ets b/harmony/src/main/ets/PushyFileJSBundleProvider.ets similarity index 96% rename from harmony/src/main/ets/FileJSBundleProvider.ets rename to harmony/src/main/ets/PushyFileJSBundleProvider.ets index 59d5ac0..8e5f346 100644 --- a/harmony/src/main/ets/FileJSBundleProvider.ets +++ b/harmony/src/main/ets/PushyFileJSBundleProvider.ets @@ -3,7 +3,7 @@ import fileIo from '@ohos.file.fs'; import common from '@ohos.app.ability.common'; import { UpdateContext } from './UpdateContext'; -export class FileJSBundleProvider extends JSBundleProvider { +export class PushyFileJSBundleProvider extends JSBundleProvider { private updateContext: UpdateContext; private filePath: string = ''