From a4a2b29287d579362f360e1f5eb10baef36b2f79 Mon Sep 17 00:00:00 2001 From: junhg Date: Thu, 19 Jun 2025 14:22:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BC=BA=E5=9F=BAL0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: junhg --- examples/StrengthenTest/build-profile.json5 | 13 ------------- examples/StrengthenTest/code-linter.json5 | 15 +-------------- .../StrengthenTest/entry/build-profile.json5 | 13 ------------- examples/StrengthenTest/entry/hvigorfile.ts | 13 ------------- examples/StrengthenTest/entry/oh-package.json5 | 12 ------------ .../entrybackupability/EntryBackupAbility.ets | 16 ---------------- .../entry/src/main/ets/pages/AnimationTest.ets | 2 +- .../src/main/ets/pages/BindContentCoverTest.ets | 5 +---- .../entry/src/main/ets/pages/BindSheetTest.ets | 5 +---- .../entry/src/main/ets/pages/CanvasTest.ets | 3 +-- .../entry/src/main/ets/pages/FocusTest.ets | 3 +-- .../entry/src/main/ets/pages/GestureTest.ets | 11 ++--------- .../entry/src/main/ets/pages/Grid001Test.ets | 3 +-- .../entry/src/main/ets/pages/Grid002Test.ets | 2 +- .../entry/src/main/ets/pages/Image002Test.ets | 8 ++------ .../src/main/ets/pages/NodeContainerTest.ets | 2 +- .../main/ets/pages/ObservedObjectLinkTest.ets | 2 +- .../entry/src/main/ets/pages/ShapeTest.ets | 4 +--- .../entry/src/main/ets/pages/VideoTest.ets | 2 -- .../src/main/resources/base/element/string.json | 4 ---- .../StrengthenTest/hvigor/hvigor-config.json5 | 13 ------------- examples/StrengthenTest/oh-package-lock.json5 | 13 ------------- examples/StrengthenTest/oh-package.json5 | 12 ------------ 23 files changed, 15 insertions(+), 161 deletions(-) delete mode 100644 examples/StrengthenTest/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets diff --git a/examples/StrengthenTest/build-profile.json5 b/examples/StrengthenTest/build-profile.json5 index 6cc6113734b..7178fe08b38 100644 --- a/examples/StrengthenTest/build-profile.json5 +++ b/examples/StrengthenTest/build-profile.json5 @@ -1,16 +1,3 @@ -/* - * Copyright (c) 2023 Your Company Name - * Licensed under the Apache License, Version 2.0 (the"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-20 - * Unless required by applicable or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY, either express or implied. - * the License for the specific language governing permissions and - * limitations under the License. - */ - { "app": { "signingConfigs": [], diff --git a/examples/StrengthenTest/code-linter.json5 b/examples/StrengthenTest/code-linter.json5 index 3bbf096b451..073990fa453 100644 --- a/examples/StrengthenTest/code-linter.json5 +++ b/examples/StrengthenTest/code-linter.json5 @@ -1,17 +1,4 @@ -/* - * Copyright (c) 2023 Your Company Name - * Licensed under the Apache License, Version 2.0 (the"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-20 - * Unless required by applicable or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY, either express or implied. - * the License for the specific language governing permissions and - * limitations under the License. - */ - - { +{ "files": [ "**/*.ets" ], diff --git a/examples/StrengthenTest/entry/build-profile.json5 b/examples/StrengthenTest/entry/build-profile.json5 index c85392d0191..4d611879c79 100644 --- a/examples/StrengthenTest/entry/build-profile.json5 +++ b/examples/StrengthenTest/entry/build-profile.json5 @@ -1,16 +1,3 @@ -/* - * Copyright (c) 2023 Your Company Name - * Licensed under the Apache License, Version 2.0 (the"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-20 - * Unless required by applicable or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY, either express or implied. - * the License for the specific language governing permissions and - * limitations under the License. - */ - { "apiType": "stageMode", "buildOption": { diff --git a/examples/StrengthenTest/entry/hvigorfile.ts b/examples/StrengthenTest/entry/hvigorfile.ts index 81156ddc634..b0e3a1ab98a 100644 --- a/examples/StrengthenTest/entry/hvigorfile.ts +++ b/examples/StrengthenTest/entry/hvigorfile.ts @@ -1,16 +1,3 @@ -/* - * Copyright (c) 2023 Your Company Name - * Licensed under the Apache License, Version 2.0 (the"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-20 - * Unless required by applicable or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY, either express or implied. - * the License for the specific language governing permissions and - * limitations under the License. - */ - import { hapTasks } from '@ohos/hvigor-ohos-plugin'; export default { diff --git a/examples/StrengthenTest/entry/oh-package.json5 b/examples/StrengthenTest/entry/oh-package.json5 index fadf4eb1653..248c3b7541a 100644 --- a/examples/StrengthenTest/entry/oh-package.json5 +++ b/examples/StrengthenTest/entry/oh-package.json5 @@ -1,15 +1,3 @@ -/* - * Copyright (c) 2023 Your Company Name - * Licensed under the Apache License, Version 2.0 (the"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-20 - * Unless required by applicable or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY, either express or implied. - * the License for the specific language governing permissions and - * limitations under the License. - */ { "name": "entry", "version": "1.0.0", diff --git a/examples/StrengthenTest/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets b/examples/StrengthenTest/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets deleted file mode 100644 index 8e4de992820..00000000000 --- a/examples/StrengthenTest/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets +++ /dev/null @@ -1,16 +0,0 @@ -import { hilog } from '@kit.PerformanceAnalysisKit'; -import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit'; - -const DOMAIN = 0x0000; - -export default class EntryBackupAbility extends BackupExtensionAbility { - async onBackup() { - hilog.info(DOMAIN, 'testTag', 'onBackup ok'); - await Promise.resolve(); - } - - async onRestore(bundleVersion: BundleVersion) { - hilog.info(DOMAIN, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion)); - await Promise.resolve(); - } -} \ No newline at end of file diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/AnimationTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/AnimationTest.ets index e1e776d61cc..40ea259e0a9 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/AnimationTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/AnimationTest.ets @@ -1,4 +1,4 @@ -// import { +import { memo, __memo_context_type, __memo_id_type, diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/BindContentCoverTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/BindContentCoverTest.ets index 0ab3c5cbe0b..42e26368026 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/BindContentCoverTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/BindContentCoverTest.ets @@ -65,10 +65,7 @@ import { ClickEvent, UserView , Builder, - NavDestination, - NavPathStack, - NavDestinationContext, - Callback + NavDestinationContext } from '@ohos.arkui.component' // TextAttribute should be insert by ui-plugins import { UIContext } from '@ohos.arkui.UIContext'; diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/BindSheetTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/BindSheetTest.ets index 39f57545312..8f020b855b5 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/BindSheetTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/BindSheetTest.ets @@ -42,10 +42,7 @@ import { ClickEvent, UserView , Builder, - NavDestination, - NavPathStack, - NavDestinationContext, - Callback + NavDestinationContext } from '@ohos.arkui.component' // TextAttribute should be insert by ui-plugins import { UIContext } from '@ohos.arkui.UIContext'; diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/CanvasTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/CanvasTest.ets index 2d8fbd23485..3d2cd4ac3d9 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/CanvasTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/CanvasTest.ets @@ -42,8 +42,7 @@ import { UserView, NavDestination, NavPathStack, - NavDestinationContext, - Callback + NavDestinationContext } from '@ohos.arkui.component' // TextAttribute should be insert by ui-plugins import hilog from '@ohos.hilog' diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/FocusTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/FocusTest.ets index 21e0412a38f..97ba6e232fc 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/FocusTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/FocusTest.ets @@ -54,8 +54,7 @@ import { PointerStyle, NavDestination, NavPathStack, - NavDestinationContext, - Callback + NavDestinationContext } from '@ohos.arkui.component' // TextAttribute should be insert by ui-plugins import hilog from '@ohos.hilog' diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/GestureTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/GestureTest.ets index 96a1334702a..f4f8c61843b 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/GestureTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/GestureTest.ets @@ -35,13 +35,6 @@ import { PanDirection, Row, GestureInfo, - Text, - TextAttribute, - Column, Component, - Button, - ButtonAttribute, - ClickEvent, - UserView, NavDestination, NavPathStack, NavDestinationContext, @@ -57,8 +50,8 @@ export struct GestureTest { panOptionNormal: PanGestureOptions = new PanGestureOptions({ fingers: 2, distance: 5, - direction: Pan.Horizontal, - isFingerCount: true + direction: PanDirection.Horizontal, + isFingerCountLimited: true }) panOptionAbnormal: PanGestureOptions = new PanGestureOptions({ diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/Grid001Test.ets b/examples/StrengthenTest/entry/src/main/ets/pages/Grid001Test.ets index c1d46a9ebb7..a505f31feaa 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/Grid001Test.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/Grid001Test.ets @@ -33,7 +33,6 @@ import { ForEach, Scroller, TextAlign, - Color, NavDestination, NavPathStack, NavDestinationContext, @@ -63,7 +62,7 @@ export struct Grid001Test { @State gridItemStyle: GridItemStyle = GridItemStyle.NONE; @State enableScrollInteraction: boolean = true; scroller: Scroller = new Scroller() - @State numbers: Array = ['0', '1', '2', '3', '4', '5', '6',', '8', '9', '10', '11', '12', '13', '14', '15']; + @State numbers: Array = ['0', '1', '2', '3', '4', '5', '6','7', '8', '9', '10', '11', '12', '13', '14', '15']; build() { NavDestination() { diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/Grid002Test.ets b/examples/StrengthenTest/entry/src/main/ets/pages/Grid002Test.ets index 946af59feea..cb0bcb091aa 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/Grid002Test.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/Grid002Test.ets @@ -39,7 +39,7 @@ import hilog from '@ohos.hilog' @Component export struct Grid002Test { - @State numbers: string[] = ["0", "1", "2", "3 "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "5"]; + @State numbers: string[] = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"]; build() { NavDestination() { diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/Image002Test.ets b/examples/StrengthenTest/entry/src/main/ets/pages/Image002Test.ets index cf7bc7c0767..6f0cf8c7c46 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/Image002Test.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/Image002Test.ets @@ -85,16 +85,12 @@ export struct Image002Test { @State pixelmap: PixelMap | string = '' aboutToAppear() { - 从配置文件或数据库中读取图片地址 + // 从配置文件或数据库中读取图片地址 this.pixelmap = this.getConfiguredImageUrl(); } getConfiguredImageUrl(): string { - return $r('app.string.image_url') - } - - aboutToAppear() { - + return 'http://p0.meituan.net/content/9543e34f59c343282a8f83926f72f585173498.jpg.webp@289w_289h_1e_1l' } build() { diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/NodeContainerTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/NodeContainerTest.ets index 9fd09c35827..74a0ae38e12 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/NodeContainerTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/NodeContainerTest.ets @@ -103,7 +103,7 @@ class MyNodeController extends NodeController { @Entry @Component export struct NodeContainerTest { - private controllerArray: Array = [] + private controllerArray: Array = new Array() @State idx: number = 0 @State flag: boolean = true diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/ObservedObjectLinkTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/ObservedObjectLinkTest.ets index 27a793e5ca6..6bc8f0f2b2f 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/ObservedObjectLinkTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/ObservedObjectLinkTest.ets @@ -32,7 +32,7 @@ import hilog from '@ohos.hilog' @Observed class Info { - private id: number = 0; + public id: number = 0; private name: string = ''; constructor(id?: number) { diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/ShapeTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/ShapeTest.ets index 10d07003c62..b066e13053c 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/ShapeTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/ShapeTest.ets @@ -49,14 +49,12 @@ import { Line, LineOptions, LineAttribute, - Length, LineCapStyle, LineJoinStyle, Shape, ShapeAttribute, PolygonOptions, - PolygonAttribute, - PolygonCanvasAttribute, + PolygonAttribute, Polygon, Polyline, PolylineOptions, diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/VideoTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/VideoTest.ets index 5a97182c337..b5e736f9aea 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/VideoTest.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/VideoTest.ets @@ -1,4 +1,3 @@ -import { import { memo, __memo_context_type, @@ -35,7 +34,6 @@ import { PlaybackInfo, FullscreenInfo, PreparedInfo, - Callback, PixelMap, Video, VideoOptions, diff --git a/examples/StrengthenTest/entry/src/main/resources/base/element/string.json b/examples/StrengthenTest/entry/src/main/resources/base/element/string.json index 11777dafa75..7b66f36056a 100644 --- a/examples/StrengthenTest/entry/src/main/resources/base/element/string.json +++ b/examples/StrengthenTest/entry/src/main/resources/base/element/string.json @@ -19,10 +19,6 @@ { "name": "mytitle", "value": "Hello World" - }, - { - "name": "image_url", - "value": "http://p0.meituan.net/content/9543e34f59c343282a8f83926f72f585173498.jpg.webp@289w_289h_1e_1l" } ] } \ No newline at end of file diff --git a/examples/StrengthenTest/hvigor/hvigor-config.json5 b/examples/StrengthenTest/hvigor/hvigor-config.json5 index e648ce994b2..8b8ff50618d 100644 --- a/examples/StrengthenTest/hvigor/hvigor-config.json5 +++ b/examples/StrengthenTest/hvigor/hvigor-config.json5 @@ -1,16 +1,3 @@ -/* - * Copyright (c) 2023 Your Company Name - * Licensed under the Apache License, Version 2.0 (the"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-20 - * Unless required by applicable or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY, either express or implied. - * the License for the specific language governing permissions and - * limitations under the License. - */ - { "modelVersion": "6.0.0", "dependencies": { diff --git a/examples/StrengthenTest/oh-package-lock.json5 b/examples/StrengthenTest/oh-package-lock.json5 index 62d34e93e83..8a843eec55a 100644 --- a/examples/StrengthenTest/oh-package-lock.json5 +++ b/examples/StrengthenTest/oh-package-lock.json5 @@ -1,16 +1,3 @@ -/* - * Copyright (c) 2023 Your Company Name - * Licensed under the Apache License, Version 2.0 (the"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-20 - * Unless required by applicable or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY, either express or implied. - * the License for the specific language governing permissions and - * limitations under the License. - */ - { "meta": { "stableOrder": true, diff --git a/examples/StrengthenTest/oh-package.json5 b/examples/StrengthenTest/oh-package.json5 index f1e83bef366..9078423b924 100644 --- a/examples/StrengthenTest/oh-package.json5 +++ b/examples/StrengthenTest/oh-package.json5 @@ -1,15 +1,3 @@ -/* - * Copyright (c) 2023 Your Company Name - * Licensed under the Apache License, Version 2.0 (the"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-20 - * Unless required by applicable or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY, either express or implied. - * the License for the specific language governing permissions and - * limitations under the License. - */ { "modelVersion": "6.0.0", "description": "Please describe the basic information.", -- Gitee From 78630b61d6dc286cead74e776eb58a62bd18ce33 Mon Sep 17 00:00:00 2001 From: junhg Date: Thu, 19 Jun 2025 14:42:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=BC=BA=E5=9F=BAL0=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: junhg --- .../StrengthenTest/entry/src/main/ets/pages/Image002Test.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/Image002Test.ets b/examples/StrengthenTest/entry/src/main/ets/pages/Image002Test.ets index 6f0cf8c7c46..cc1bbf5100e 100644 --- a/examples/StrengthenTest/entry/src/main/ets/pages/Image002Test.ets +++ b/examples/StrengthenTest/entry/src/main/ets/pages/Image002Test.ets @@ -90,7 +90,7 @@ export struct Image002Test { } getConfiguredImageUrl(): string { - return 'http://p0.meituan.net/content/9543e34f59c343282a8f83926f72f585173498.jpg.webp@289w_289h_1e_1l' + return '' } build() { -- Gitee