diff --git a/examples/StrengthenTest/build-profile.json5 b/examples/StrengthenTest/build-profile.json5 index 6cc6113734bca1196377b3941807fe56d29b6fc7..7178fe08b386249b64b2c1afbd1e9844aa959548 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 3bbf096b45158f55d53a2fa430111eac67adda8b..073990fa45394e1f8e85d85418ee60a8953f9b99 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 c85392d0191dda748580edae51080ff89b8e8bea..4d611879c7913fb0610c686e2399258ab3a6dad1 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 81156ddc63414bb6aa88171c993472012f405d11..b0e3a1ab98a91bc918d6404b2413111a5011f14a 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 fadf4eb16534049297174e8bc80574fa2312fc78..248c3b7541a589682a250f86a6d3ecf7414d2d6a 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 8e4de99282050bad799ac892eb85ac5449364a51..0000000000000000000000000000000000000000 --- 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 e1e776d61cc19fbc9e53cff6c07cab532e1218a7..40ea259e0a972078ce44457e6e8624c6d4a02d79 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 0ab3c5cbe0bd961555a091ab86aba7afe312846a..42e26368026839d39ee01511e72bfaa87aee2825 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 39f575453129162adf1a75ef1795c21115c96eae..8f020b855b52d1332da58ec9cebfe053a0c72643 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 2d8fbd234857deaa27b5b5cd7899d5bc76aff6b6..3d2cd4ac3d94e427ed95c16baade93bab32c5eae 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 21e0412a38f6575ad6c2a7cf7ec6b683724aa5b3..97ba6e232fcfd92998f4f4a5c6250c8ed98d720d 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 96a1334702a73c09e00a48b86085c97d7b581454..f4f8c61843b03baa6fde95d5fb39f040d6116371 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 c1d46a9ebb78058834d41d5a5fe5a946c4532e22..a505f31feaaefe59a52661346a71101be5149932 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 946af59feea2587bb033872401c63fb73a171931..cb0bcb091aa9afb27737e91bac6d20408fbc935e 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 cf7bc7c07670817ca603c16da353bd537a3672aa..cc1bbf5100e88d6271f8588d80c8c0cce8fbc213 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 '' } build() { diff --git a/examples/StrengthenTest/entry/src/main/ets/pages/NodeContainerTest.ets b/examples/StrengthenTest/entry/src/main/ets/pages/NodeContainerTest.ets index 9fd09c3582744279828f2a6cfc6386791607414e..74a0ae38e12b810c631be5b3a45337cda4b2a0f3 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 27a793e5ca6a57e52f1e919a6d349f1812b3000c..6bc8f0f2b2f53fc9576ee1bf7e4245545d9dc5f3 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 10d07003c62ef5caed0fd852e0deabb8cd882f55..b066e13053c7016de15d0696e5aa6de12179469c 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 5a97182c337770746fe8f1866b979874eb9f5ad7..b5e736f9aeaf69de78544c5f39ccbb7df80a07d9 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 11777dafa750ea472ebf11f27a99d6e735dee7f6..7b66f36056a95e106abbcaff5468f545408ca1fe 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 e648ce994b20d6d9be7785367a868699a696d3da..8b8ff50618d906cdaffd93cf2eb4e3310114ec84 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 62d34e93e83f7801ba92b790adc1faa1cfc51ed1..8a843eec55ad0e799213f9517ccacc26716f195e 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 f1e83bef366be42a554c10641e58cf98fef24201..9078423b92455be93fe594caab52e6db63fc4028 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.",