From 60f7298498f7480a3204c39ebc4fe33c17456e3b Mon Sep 17 00:00:00 2001 From: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> Date: Wed, 6 Aug 2025 02:58:16 +0000 Subject: [PATCH 1/6] update README.md. Signed-off-by: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1922cd..d25556a 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,8 @@ 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 -2. HarmonyOS系统:HarmonyOS NEXT Developer Beta1及以上。 +2. HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。 -3. DevEco Studio版本:DevEco Studio NEXT Developer Beta1及以上。 +3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS NEXT Developer Beta1 SDK及以上。 \ No newline at end of file +4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 \ No newline at end of file -- Gitee From d1b5a18a6284e6b99dae19d6174bf2a91085c63e Mon Sep 17 00:00:00 2001 From: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> Date: Wed, 6 Aug 2025 02:58:35 +0000 Subject: [PATCH 2/6] update README.en.md. Signed-off-by: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> --- README.en.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.en.md b/README.en.md index 5f53dd9..61ec428 100644 --- a/README.en.md +++ b/README.en.md @@ -49,8 +49,8 @@ N/A 1. The sample app is supported only on Huawei phones running the standard system. -2. The HarmonyOS version must be HarmonyOS NEXT Developer Beta1 or later. +2. The HarmonyOS version must be HarmonyOS 5.0.5 Release or later. -3. The DevEco Studio version must be DevEco Studio NEXT Developer Beta1 or later. +3. The DevEco Studio version must be DevEco Studio 5.0.5 Release or later. -4. The HarmonyOS SDK version must be HarmonyOS NEXT Developer Beta1 or later. +4. The HarmonyOS SDK version must be HarmonyOS 5.0.5 Release SDK or later. -- Gitee From a0b822c607d61c39259f442181883b26d9e4318e Mon Sep 17 00:00:00 2001 From: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> Date: Wed, 6 Aug 2025 02:58:53 +0000 Subject: [PATCH 3/6] update oh-package.json5. Signed-off-by: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> --- oh-package.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oh-package.json5 b/oh-package.json5 index 43d048d..c39bd0a 100644 --- a/oh-package.json5 +++ b/oh-package.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.0", + "modelVersion": "5.0.5", "name": "nestedlist", "version": "1.0.0", "description": "Please describe the basic information.", -- Gitee From 9ed6b57a3e83d1659dea22dcc63ce0adf63d51a8 Mon Sep 17 00:00:00 2001 From: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> Date: Wed, 6 Aug 2025 02:59:09 +0000 Subject: [PATCH 4/6] update build-profile.json5. Signed-off-by: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> --- build-profile.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-profile.json5 b/build-profile.json5 index c033ce4..5916880 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -5,7 +5,7 @@ { "name": "default", "signingConfig": "default", - "compatibleSdkVersion": "5.0.0(12)", + "compatibleSdkVersion": "5.0.5(17)", "runtimeOS": "HarmonyOS", } ], -- Gitee From 00d0208435722df1363913af85f620c0395444a5 Mon Sep 17 00:00:00 2001 From: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> Date: Wed, 6 Aug 2025 02:59:34 +0000 Subject: [PATCH 5/6] update hvigor/hvigor-config.json5. Signed-off-by: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> --- hvigor/hvigor-config.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hvigor/hvigor-config.json5 b/hvigor/hvigor-config.json5 index f70ecd4..a2a2e37 100644 --- a/hvigor/hvigor-config.json5 +++ b/hvigor/hvigor-config.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.0", + "modelVersion": "5.0.5", "dependencies": { } } \ No newline at end of file -- Gitee From a320b9a6bd5283475c75e9deb2b2267f6a4cb749 Mon Sep 17 00:00:00 2001 From: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> Date: Wed, 6 Aug 2025 03:00:38 +0000 Subject: [PATCH 6/6] update entry/src/main/ets/pages/Index.ets. Signed-off-by: ZhangQ <12903047+zq-kexin@user.noreply.gitee.com> --- entry/src/main/ets/pages/Index.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index b2e99b7..5952601 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -34,11 +34,11 @@ struct Index { aboutToAppear(): void { this.classifyList = new ClassifyViewModel().getClassifyModelList(); - window.getLastWindow(getContext(this)).then((windowStage: window.Window) => { + window.getLastWindow(this.getUIContext().getHostContext()).then((windowStage: window.Window) => { let area = windowStage.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM); - this.topArea = px2vp(area.topRect.height); + this.topArea = this.getUIContext().px2vp(area.topRect.height); let bottom = windowStage.getWindowAvoidArea(window.AvoidAreaType.TYPE_NAVIGATION_INDICATOR); - this.bottomArea = px2vp(bottom.bottomRect.height); + this.bottomArea = this.getUIContext().px2vp(bottom.bottomRect.height); if (this.topArea > 0) { windowStage.setWindowLayoutFullScreen(true); } @@ -69,7 +69,7 @@ struct Index { right: $r('app.float.image_margin_right') }) .onClick(() => { - router.back(); + this.getUIContext().getRouter().back(); }) Text($r('app.string.title')) -- Gitee