From 629cb16eff6c8eadcf510f5e7a179c8a6faf3052 Mon Sep 17 00:00:00 2001
From: kangliang <2352009235@qq.com>
Date: Fri, 19 Sep 2025 15:18:37 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
GesturesConfictPractice/README.md | 53 +++++++++++++++++++
.../main/ets/entryability/EntryAbility.ets | 15 ++++++
.../entrybackupability/EntryBackupAbility.ets | 15 ++++++
.../main/ets/pages/GesturesConflictScene3.ets | 12 ++++-
.../ets/pages/GesturesConflictScene3A.ets | 10 +++-
.../entry/src/main/ets/pages/TestCode.ets | 15 ++++++
6 files changed, 117 insertions(+), 3 deletions(-)
create mode 100644 GesturesConfictPractice/README.md
diff --git a/GesturesConfictPractice/README.md b/GesturesConfictPractice/README.md
new file mode 100644
index 00000000..1e2c303d
--- /dev/null
+++ b/GesturesConfictPractice/README.md
@@ -0,0 +1,53 @@
+# 手势事件冲突解决方案
+
+### 介绍
+
+HarmonyOS应用框架提供了组件复用能力:可复用组件树上移除时,会进入一个回收缓存区,后续创建新组件节点时,会复用缓存区中的节点,节约组件重新创建的时间。
+本工程配套官网[组件复用最佳实践](https://developer.huawei.com/consumer/cn/doc/best-practices/bpta-component-reuse),
+文章介绍如何使用组件复用机制提升应用帧率。
+
+#### 使用说明
+
+1. 点击“减少组件复用的嵌套层级”按钮,进入二级页面“附近的人”, 滑动列表。
+2. 点击“精准控制组件刷新范围”按钮,进入二级页面“附近的人”, 滑动列表。
+3. 点击“使用reuseId标记不同的组件”按钮,进入二级页面“附近的人”, 滑动列表。
+4. 点击“复用组件创建时的@State变量入参”按钮,进入二级页面“附近的人”, 滑动列表。
+
+## 工程目录
+
+```
+├──entry/src/main/ets
+│ ├──common
+│ │ ├──Constants.ets // 公共常量
+│ │ └──GlobalBuilderContext.ets // 缓存全局@Builder
+│ ├──entryability
+│ │ └──EntryAbility.ets // 程序入口类
+│ ├──entrybackupability
+│ │ └──EntryBackupAbility.ets // 自定义应用数据转换和迁移模板类
+│ ├──model
+│ │ ├──BasicDataSource.ets // 数据适配器基类
+│ │ ├──ColorData.ets // 二级页面“文字列表”的数据适配器
+│ │ ├──FriendMomentData.ets // 二级页面“附近的人”/“图文列表”/“网名列表”的数据适配器
+│ │ ├──ItemData.ets // 组件复用问题诊断分析场景的数据类
+│ │ └──ItemDataSource.ets // 组件复用问题诊断分析场景的数据适配器
+│ ├──pages.ets
+│ │ └──Index.ets // 首页
+│ └──view
+│ ├──OneMoment.ets // 二级页面“附近的人”中列表的每条item UI
+│ ├──PageListSlideToHistory.ets // 二级页面“附近的人”UI
+│ ├──UpdaterComponent.ets // 二级页面“文字列表”UI
+│ ├──WithFuncParam.ets // 二级页面“网名列表”UI
+│ └──WithReuseId.ets // 二级页面“图文列表”UI
+└──entry/src/main/resources // 应用资源目录
+```
+
+### 相关权限
+
+不涉及
+
+## 约束与限制
+
+* 本示例仅支持标准系统上运行,支持设备:华为手机。
+* HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。
+* DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。
+* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。
\ No newline at end of file
diff --git a/GesturesConfictPractice/entry/src/main/ets/entryability/EntryAbility.ets b/GesturesConfictPractice/entry/src/main/ets/entryability/EntryAbility.ets
index 8335b769..0f2f8b94 100644
--- a/GesturesConfictPractice/entry/src/main/ets/entryability/EntryAbility.ets
+++ b/GesturesConfictPractice/entry/src/main/ets/entryability/EntryAbility.ets
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * 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-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit';
import { hilog } from '@kit.PerformanceAnalysisKit';
import { window } from '@kit.ArkUI';
diff --git a/GesturesConfictPractice/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets b/GesturesConfictPractice/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
index dc55c03d..b1e21294 100644
--- a/GesturesConfictPractice/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
+++ b/GesturesConfictPractice/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * 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-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
import { hilog } from '@kit.PerformanceAnalysisKit';
import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit';
diff --git a/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene3.ets b/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene3.ets
index 9b70c077..226f4c28 100644
--- a/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene3.ets
+++ b/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene3.ets
@@ -13,6 +13,8 @@
* limitations under the License.
*/
+import { BusinessError } from '@kit.BasicServicesKit';
+import { hilog } from '@kit.PerformanceAnalysisKit';
// [Start gestures_conflict_scene3]
@Entry
@@ -33,9 +35,15 @@ struct GesturesConflictScene3 {
.gesture(
LongPressGesture({ repeat: true })
.onAction((event: GestureEvent) => {
- })// The long press action ends
+ })
+ // The long press action ends
.onActionEnd(() => {
- this.getUIContext().getPromptAction().showToast({ message: 'Long Press' });
+ try {
+ this.getUIContext().getPromptAction().showToast({ message: 'Long Press' });
+ } catch (err) {
+ let error = err as BusinessError;
+ hilog.error(0x0000, 'testTag', `showToast err, code: ${error.code}, mesage: ${error.message}`);
+ }
})
)
}
diff --git a/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene3A.ets b/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene3A.ets
index 03c30d9d..780c8286 100644
--- a/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene3A.ets
+++ b/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene3A.ets
@@ -13,6 +13,9 @@
* limitations under the License.
*/
+import { BusinessError } from '@kit.BasicServicesKit';
+import { hilog } from '@kit.PerformanceAnalysisKit';
+
@Entry
@Component
struct GesturesConflictScene3A {
@@ -34,7 +37,12 @@ struct GesturesConflictScene3A {
.onAction((event: GestureEvent) => {
})
.onActionEnd(() => {
- this.getUIContext().getPromptAction().showToast({ message: 'Long Press' });
+ try {
+ this.getUIContext().getPromptAction().showToast({ message: 'Long Press' });
+ } catch (err) {
+ let error = err as BusinessError;
+ hilog.error(0x0000, 'testTag', `showToast err, code: ${error.code}, mesage: ${error.message}`);
+ }
})
)
// [End gesture_action]
diff --git a/GesturesConfictPractice/entry/src/main/ets/pages/TestCode.ets b/GesturesConfictPractice/entry/src/main/ets/pages/TestCode.ets
index ed677eab..89078ff5 100644
--- a/GesturesConfictPractice/entry/src/main/ets/pages/TestCode.ets
+++ b/GesturesConfictPractice/entry/src/main/ets/pages/TestCode.ets
@@ -1,3 +1,18 @@
+/*
+* Copyright (C) 2024 Huawei Device Co., Ltd.
+* Licensed under the Apache License, Version 2.0 (the "License");
+* 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-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
import { webview } from '@kit.ArkWeb';
@Component
--
Gitee
From 057b2d3e135261feeb1466cba66d258293db9779 Mon Sep 17 00:00:00 2001
From: kangliang <2352009235@qq.com>
Date: Fri, 19 Sep 2025 15:33:22 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
GesturesConfictPractice/README.md | 40 +++++++----------
.../main/ets/pages/GesturesConflictScene8.ets | 44 -------------------
.../entry/src/main/ets/pages/Index.ets | 15 +++++++
3 files changed, 30 insertions(+), 69 deletions(-)
delete mode 100644 GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene8.ets
diff --git a/GesturesConfictPractice/README.md b/GesturesConfictPractice/README.md
index 1e2c303d..7c4fb75e 100644
--- a/GesturesConfictPractice/README.md
+++ b/GesturesConfictPractice/README.md
@@ -2,42 +2,32 @@
### 介绍
-HarmonyOS应用框架提供了组件复用能力:可复用组件树上移除时,会进入一个回收缓存区,后续创建新组件节点时,会复用缓存区中的节点,节约组件重新创建的时间。
-本工程配套官网[组件复用最佳实践](https://developer.huawei.com/consumer/cn/doc/best-practices/bpta-component-reuse),
-文章介绍如何使用组件复用机制提升应用帧率。
+本代码示例展示了多个组件嵌套时同时绑定手势事件,或者同一个组件同时绑定多个手势等场景下,手势冲突问题的解决。
#### 使用说明
-1. 点击“减少组件复用的嵌套层级”按钮,进入二级页面“附近的人”, 滑动列表。
-2. 点击“精准控制组件刷新范围”按钮,进入二级页面“附近的人”, 滑动列表。
-3. 点击“使用reuseId标记不同的组件”按钮,进入二级页面“附近的人”, 滑动列表。
-4. 点击“复用组件创建时的@State变量入参”按钮,进入二级页面“附近的人”, 滑动列表。
+1. 修改EntryAbility.ets文件中windowStage.loadContent('pages/Index')方法的参数,为pages目录下的页面。
+2. 安装应用体验pages目录下不同页面的功能。
## 工程目录
```
├──entry/src/main/ets
-│ ├──common
-│ │ ├──Constants.ets // 公共常量
-│ │ └──GlobalBuilderContext.ets // 缓存全局@Builder
│ ├──entryability
│ │ └──EntryAbility.ets // 程序入口类
│ ├──entrybackupability
-│ │ └──EntryBackupAbility.ets // 自定义应用数据转换和迁移模板类
-│ ├──model
-│ │ ├──BasicDataSource.ets // 数据适配器基类
-│ │ ├──ColorData.ets // 二级页面“文字列表”的数据适配器
-│ │ ├──FriendMomentData.ets // 二级页面“附近的人”/“图文列表”/“网名列表”的数据适配器
-│ │ ├──ItemData.ets // 组件复用问题诊断分析场景的数据类
-│ │ └──ItemDataSource.ets // 组件复用问题诊断分析场景的数据适配器
-│ ├──pages.ets
-│ │ └──Index.ets // 首页
-│ └──view
-│ ├──OneMoment.ets // 二级页面“附近的人”中列表的每条item UI
-│ ├──PageListSlideToHistory.ets // 二级页面“附近的人”UI
-│ ├──UpdaterComponent.ets // 二级页面“文字列表”UI
-│ ├──WithFuncParam.ets // 二级页面“网名列表”UI
-│ └──WithReuseId.ets // 二级页面“图文列表”UI
+│ │ └──EntryBackupAbility.ets // 数据备份恢复类
+│ └──pages
+│ ├──GesturesConflictScene1.ets // 滚动容器嵌套滚动容器事件冲突
+│ ├──GesturesConflictScene2.ets // 使用组合手势同时绑定多个同类型手势冲突解
+│ ├──GesturesConflictScene3.ets // 系统手势和自定义手势之间冲突
+│ ├──GesturesConflictScene3A.ets // 系统手势和自定义手势之间冲突反例
+│ ├──GesturesConflictScene4.ets // 手势事件透传
+│ ├──GesturesConflictScene5.ets // 多点触控场景下手势冲突
+│ ├──GesturesConflictScene6.ets // 动态控制自定义手势是否响应
+│ ├──GesturesConflictScene7.ets // 父组件如何管理子组件手势
+│ ├──Index.ets // 应用首页
+│ └──TestCode.ets // 二级页面“图文列表”UI
└──entry/src/main/resources // 应用资源目录
```
diff --git a/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene8.ets b/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene8.ets
deleted file mode 100644
index cc2704cf..00000000
--- a/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene8.ets
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
-* Copyright (C) 2024 Huawei Device Co., Ltd.
-* Licensed under the Apache License, Version 2.0 (the "License");
-* 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-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-// [Start component_scene4]
-@Entry
-@Component
-struct GesturesConflictScene4 {
- build() {
- Stack() {
- Column()//Underlying Column
- .width('100%')
- .height('100%')
- .backgroundColor(Color.Black)
- .gesture(
- SwipeGesture({ direction: SwipeDirection.Horizontal })//Horizontal swipe gesture
- .onAction((event) => {
- if (event) {
- console.info('Column SwipeGesture');
- }
- })
- )
- Column()//Upper Column
- .width(300)
- .height(100)
- .backgroundColor(Color.Red)
- .hitTestBehavior(HitTestMode.None)
- }
- .width(300)
- .height(300)
- }
-}
-// [End component_scene4]
\ No newline at end of file
diff --git a/GesturesConfictPractice/entry/src/main/ets/pages/Index.ets b/GesturesConfictPractice/entry/src/main/ets/pages/Index.ets
index 9393e00f..7be5d8ee 100644
--- a/GesturesConfictPractice/entry/src/main/ets/pages/Index.ets
+++ b/GesturesConfictPractice/entry/src/main/ets/pages/Index.ets
@@ -1,3 +1,18 @@
+/*
+* Copyright (C) 2024 Huawei Device Co., Ltd.
+* Licensed under the Apache License, Version 2.0 (the "License");
+* 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-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
@Entry
@Component
struct Index {
--
Gitee
From aa962828d202da0640521045ffaa219697989cae Mon Sep 17 00:00:00 2001
From: kangliang <2352009235@qq.com>
Date: Fri, 19 Sep 2025 17:26:00 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
AppColdStart/README.md | 34 +++
.../README.md | 43 ++++
.../code-linter.json5 | 32 ---
.../entry/.gitignore | 6 -
.../entry/src/mock/mock-config.json5 | 2 -
.../src/ohosTest/ets/test/Ability.test.ets | 35 ----
.../entry/src/ohosTest/ets/test/List.test.ets | 5 -
.../entry/src/ohosTest/module.json5 | 13 --
.../entry/src/test/List.test.ets | 5 -
.../entry/src/test/LocalUnit.test.ets | 33 ---
GridComponentLoadSlow/.gitignore | 12 --
GridComponentLoadSlow/README.md | 34 +++
GridComponentLoadSlow/code-linter.json5 | 32 ---
GridComponentLoadSlow/entry/.gitignore | 6 -
.../main/ets/entryability/EntryAbility.ets | 15 ++
.../entrybackupability/EntryBackupAbility.ets | 15 ++
.../entry/src/main/ets/pages/RightIndex.ets | 5 +-
.../entry/src/mock/mock-config.json5 | 2 -
.../src/ohosTest/ets/test/Ability.test.ets | 35 ----
.../entry/src/ohosTest/ets/test/List.test.ets | 5 -
.../entry/src/ohosTest/module.json5 | 11 -
.../entry/src/test/List.test.ets | 5 -
.../entry/src/test/LocalUnit.test.ets | 33 ---
HapAndHarDependHar/.hvigor/cache/meta.json | 2 +-
.../.hvigor/outputs/sync/fileCache.json | 2 +-
.../.hvigor/outputs/sync/output.json | 193 +++++++++++-------
.../.idea/.deveco/module/entry.cache.json | 24 +--
.../.deveco/module/har_common.cache.json | 24 +--
.../.deveco/module/har_library.cache.json | 24 +--
.../.idea/.deveco/project.cache.json | 4 +-
HapAndHarDependHar/.idea/modules.xml | 6 +-
.../.idea/modules/HapAndHarDependHar.iml | 16 +-
.../entry/oh-package-lock.json5 | 7 +-
.../har_common/src/main/ets/utils/Utils.ets | 1 +
.../har_library/oh-package-lock.json5 | 5 +-
.../har_common/src/main/ets/utils/Utils.ets | 1 +
.../har_library/oh-package-lock.json5 | 5 +-
.../har_common/src/main/ets/utils/Utils.ets | 1 +
.../oh_modules/.ohpm/lock.json5 | 16 +-
.../BptaFramePractice/README.md | 38 ++++
.../BptaFramePractice/code-linter.json5 | 32 ---
.../BptaFramePractice/entry/.gitignore | 6 -
.../src/main/ets/components/DiscoverView.ets | 4 -
.../main/ets/entryability/EntryAbility.ets | 15 ++
.../entrybackupability/EntryBackupAbility.ets | 15 ++
.../entry/src/mock/mock-config.json5 | 2 -
.../src/ohosTest/ets/test/Ability.test.ets | 35 ----
.../entry/src/ohosTest/ets/test/List.test.ets | 5 -
.../entry/src/ohosTest/module.json5 | 13 --
.../entry/src/test/List.test.ets | 5 -
.../entry/src/test/LocalUnit.test.ets | 33 ---
51 files changed, 401 insertions(+), 551 deletions(-)
create mode 100644 AppColdStart/README.md
create mode 100644 ArkUI/UI_Component_Performance_Optimization/README.md
delete mode 100644 ArkUI/UI_Component_Performance_Optimization/code-linter.json5
delete mode 100644 ArkUI/UI_Component_Performance_Optimization/entry/.gitignore
delete mode 100644 ArkUI/UI_Component_Performance_Optimization/entry/src/mock/mock-config.json5
delete mode 100644 ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/ets/test/Ability.test.ets
delete mode 100644 ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/ets/test/List.test.ets
delete mode 100644 ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/module.json5
delete mode 100644 ArkUI/UI_Component_Performance_Optimization/entry/src/test/List.test.ets
delete mode 100644 ArkUI/UI_Component_Performance_Optimization/entry/src/test/LocalUnit.test.ets
delete mode 100644 GridComponentLoadSlow/.gitignore
create mode 100644 GridComponentLoadSlow/README.md
delete mode 100644 GridComponentLoadSlow/code-linter.json5
delete mode 100644 GridComponentLoadSlow/entry/.gitignore
delete mode 100644 GridComponentLoadSlow/entry/src/mock/mock-config.json5
delete mode 100644 GridComponentLoadSlow/entry/src/ohosTest/ets/test/Ability.test.ets
delete mode 100644 GridComponentLoadSlow/entry/src/ohosTest/ets/test/List.test.ets
delete mode 100644 GridComponentLoadSlow/entry/src/ohosTest/module.json5
delete mode 100644 GridComponentLoadSlow/entry/src/test/List.test.ets
delete mode 100644 GridComponentLoadSlow/entry/src/test/LocalUnit.test.ets
create mode 100644 PerformanceAnalysis/BptaFramePractice/README.md
delete mode 100644 PerformanceAnalysis/BptaFramePractice/code-linter.json5
delete mode 100644 PerformanceAnalysis/BptaFramePractice/entry/.gitignore
delete mode 100644 PerformanceAnalysis/BptaFramePractice/entry/src/mock/mock-config.json5
delete mode 100644 PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/ets/test/Ability.test.ets
delete mode 100644 PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/ets/test/List.test.ets
delete mode 100644 PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/module.json5
delete mode 100644 PerformanceAnalysis/BptaFramePractice/entry/src/test/List.test.ets
delete mode 100644 PerformanceAnalysis/BptaFramePractice/entry/src/test/LocalUnit.test.ets
diff --git a/AppColdStart/README.md b/AppColdStart/README.md
new file mode 100644
index 00000000..0fc6cb05
--- /dev/null
+++ b/AppColdStart/README.md
@@ -0,0 +1,34 @@
+# 应用冷启动时延优化同源示例代码
+
+### 介绍
+
+本示例代码为最佳实践《应用冷启动时延优化》配套示例代码。
+
+#### 使用说明
+
+不涉及
+
+## 工程目录
+
+```
+├──entry/src/main/ets
+│ ├──entryability
+│ │ └──EntryAbility.ets // 程序入口类
+│ ├──entrybackupability
+│ │ └──EntryBackupAbility.ets // 数据备份恢复类
+│ └──pages
+│ ├──Index.ets // 使用columnStart/columnEnd设置GridItem大小示例:反例
+│ └──RightIndex.ets // 使用GridLayoutOptions设置GridItem大小:正例
+└──entry/src/main/resources // 应用资源目录
+```
+
+### 相关权限
+
+不涉及
+
+## 约束与限制
+
+* 本示例仅支持标准系统上运行,支持设备:华为手机。
+* HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。
+* DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。
+* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。
\ No newline at end of file
diff --git a/ArkUI/UI_Component_Performance_Optimization/README.md b/ArkUI/UI_Component_Performance_Optimization/README.md
new file mode 100644
index 00000000..ae353929
--- /dev/null
+++ b/ArkUI/UI_Component_Performance_Optimization/README.md
@@ -0,0 +1,43 @@
+# UI组件性能优化同源示例代码
+
+### 介绍
+
+本示例代码为最佳实践《UI组件性能优化》配套示例代码。
+
+#### 使用说明
+
+不涉及
+
+## 工程目录
+
+```
+├──entry/src/main/ets
+│ ├──components
+│ │ └──DiscoverView.ets // 程序入口类
+│ ├──entryability
+│ │ └──EntryAbility.ets // 程序入口类
+│ ├──entrybackupability
+│ │ └──EntryBackupAbility.ets // 数据备份恢复类
+│ └──pages
+│ ├──segment.ets // 避免在自定义组件的生命周期内执行高耗时操作:反例1
+│ ├──segment2.ets // 避免在自定义组件的生命周期内执行高耗时操作:正例1
+│ ├──segment3.ets // 避免在自定义组件的生命周期内执行高耗时操作:反例2
+│ ├──segment4.ets // 避免在自定义组件的生命周期内执行高耗时操作:正例2
+│ ├──segment5.ets // 按需注册组件属性同源代码:反例
+│ ├──segment6.ets // 按需注册组件属性同源代码:正例
+│ ├──segment7.ets // 优先使用@Builder方法代替自定义组件:反例
+│ ├──segment8.ets // 优先使用@Builder方法代替自定义组件:正例
+│ └──segment9.ets // 按需注册组件属性同源代码
+└──entry/src/main/resources // 应用资源目录
+```
+
+### 相关权限
+
+不涉及
+
+## 约束与限制
+
+* 本示例仅支持标准系统上运行,支持设备:华为手机。
+* HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。
+* DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。
+* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。
\ No newline at end of file
diff --git a/ArkUI/UI_Component_Performance_Optimization/code-linter.json5 b/ArkUI/UI_Component_Performance_Optimization/code-linter.json5
deleted file mode 100644
index 073990fa..00000000
--- a/ArkUI/UI_Component_Performance_Optimization/code-linter.json5
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "files": [
- "**/*.ets"
- ],
- "ignore": [
- "**/src/ohosTest/**/*",
- "**/src/test/**/*",
- "**/src/mock/**/*",
- "**/node_modules/**/*",
- "**/oh_modules/**/*",
- "**/build/**/*",
- "**/.preview/**/*"
- ],
- "ruleSet": [
- "plugin:@performance/recommended",
- "plugin:@typescript-eslint/recommended"
- ],
- "rules": {
- "@security/no-unsafe-aes": "error",
- "@security/no-unsafe-hash": "error",
- "@security/no-unsafe-mac": "warn",
- "@security/no-unsafe-dh": "error",
- "@security/no-unsafe-dsa": "error",
- "@security/no-unsafe-ecdsa": "error",
- "@security/no-unsafe-rsa-encrypt": "error",
- "@security/no-unsafe-rsa-sign": "error",
- "@security/no-unsafe-rsa-key": "error",
- "@security/no-unsafe-dsa-key": "error",
- "@security/no-unsafe-dh-key": "error",
- "@security/no-unsafe-3des": "error"
- }
-}
\ No newline at end of file
diff --git a/ArkUI/UI_Component_Performance_Optimization/entry/.gitignore b/ArkUI/UI_Component_Performance_Optimization/entry/.gitignore
deleted file mode 100644
index e2713a27..00000000
--- a/ArkUI/UI_Component_Performance_Optimization/entry/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-/node_modules
-/oh_modules
-/.preview
-/build
-/.cxx
-/.test
\ No newline at end of file
diff --git a/ArkUI/UI_Component_Performance_Optimization/entry/src/mock/mock-config.json5 b/ArkUI/UI_Component_Performance_Optimization/entry/src/mock/mock-config.json5
deleted file mode 100644
index 7a73a41b..00000000
--- a/ArkUI/UI_Component_Performance_Optimization/entry/src/mock/mock-config.json5
+++ /dev/null
@@ -1,2 +0,0 @@
-{
-}
\ No newline at end of file
diff --git a/ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/ets/test/Ability.test.ets b/ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/ets/test/Ability.test.ets
deleted file mode 100644
index 85c78f67..00000000
--- a/ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/ets/test/Ability.test.ets
+++ /dev/null
@@ -1,35 +0,0 @@
-import { hilog } from '@kit.PerformanceAnalysisKit';
-import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
-
-export default function abilityTest() {
- describe('ActsAbilityTest', () => {
- // Defines a test suite. Two parameters are supported: test suite name and test suite function.
- beforeAll(() => {
- // Presets an action, which is performed only once before all test cases of the test suite start.
- // This API supports only one parameter: preset action function.
- })
- beforeEach(() => {
- // Presets an action, which is performed before each unit test case starts.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: preset action function.
- })
- afterEach(() => {
- // Presets a clear action, which is performed after each unit test case ends.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: clear action function.
- })
- afterAll(() => {
- // Presets a clear action, which is performed after all test cases of the test suite end.
- // This API supports only one parameter: clear action function.
- })
- it('assertContain', 0, () => {
- // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
- hilog.info(0x0000, 'testTag', '%{public}s', 'it begin');
- let a = 'abc';
- let b = 'b';
- // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
- expect(a).assertContain(b);
- expect(a).assertEqual(a);
- })
- })
-}
\ No newline at end of file
diff --git a/ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/ets/test/List.test.ets b/ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/ets/test/List.test.ets
deleted file mode 100644
index 794c7dc4..00000000
--- a/ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/ets/test/List.test.ets
+++ /dev/null
@@ -1,5 +0,0 @@
-import abilityTest from './Ability.test';
-
-export default function testsuite() {
- abilityTest();
-}
\ No newline at end of file
diff --git a/ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/module.json5 b/ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/module.json5
deleted file mode 100644
index 55725a92..00000000
--- a/ArkUI/UI_Component_Performance_Optimization/entry/src/ohosTest/module.json5
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "module": {
- "name": "entry_test",
- "type": "feature",
- "deviceTypes": [
- "phone",
- "tablet",
- "2in1"
- ],
- "deliveryWithInstall": true,
- "installationFree": false
- }
-}
diff --git a/ArkUI/UI_Component_Performance_Optimization/entry/src/test/List.test.ets b/ArkUI/UI_Component_Performance_Optimization/entry/src/test/List.test.ets
deleted file mode 100644
index bb5b5c37..00000000
--- a/ArkUI/UI_Component_Performance_Optimization/entry/src/test/List.test.ets
+++ /dev/null
@@ -1,5 +0,0 @@
-import localUnitTest from './LocalUnit.test';
-
-export default function testsuite() {
- localUnitTest();
-}
\ No newline at end of file
diff --git a/ArkUI/UI_Component_Performance_Optimization/entry/src/test/LocalUnit.test.ets b/ArkUI/UI_Component_Performance_Optimization/entry/src/test/LocalUnit.test.ets
deleted file mode 100644
index 165fc161..00000000
--- a/ArkUI/UI_Component_Performance_Optimization/entry/src/test/LocalUnit.test.ets
+++ /dev/null
@@ -1,33 +0,0 @@
-import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
-
-export default function localUnitTest() {
- describe('localUnitTest', () => {
- // Defines a test suite. Two parameters are supported: test suite name and test suite function.
- beforeAll(() => {
- // Presets an action, which is performed only once before all test cases of the test suite start.
- // This API supports only one parameter: preset action function.
- });
- beforeEach(() => {
- // Presets an action, which is performed before each unit test case starts.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: preset action function.
- });
- afterEach(() => {
- // Presets a clear action, which is performed after each unit test case ends.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: clear action function.
- });
- afterAll(() => {
- // Presets a clear action, which is performed after all test cases of the test suite end.
- // This API supports only one parameter: clear action function.
- });
- it('assertContain', 0, () => {
- // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
- let a = 'abc';
- let b = 'b';
- // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
- expect(a).assertContain(b);
- expect(a).assertEqual(a);
- });
- });
-}
\ No newline at end of file
diff --git a/GridComponentLoadSlow/.gitignore b/GridComponentLoadSlow/.gitignore
deleted file mode 100644
index d2ff2014..00000000
--- a/GridComponentLoadSlow/.gitignore
+++ /dev/null
@@ -1,12 +0,0 @@
-/node_modules
-/oh_modules
-/local.properties
-/.idea
-**/build
-/.hvigor
-.cxx
-/.clangd
-/.clang-format
-/.clang-tidy
-**/.test
-/.appanalyzer
\ No newline at end of file
diff --git a/GridComponentLoadSlow/README.md b/GridComponentLoadSlow/README.md
new file mode 100644
index 00000000..2c7d6d97
--- /dev/null
+++ b/GridComponentLoadSlow/README.md
@@ -0,0 +1,34 @@
+# Grid组件加载丢帧优化同源示例代码
+
+### 介绍
+
+本示例代码为最佳实践《Grid组件加载丢帧优化》配套示例代码。
+
+#### 使用说明
+
+不涉及
+
+## 工程目录
+
+```
+├──entry/src/main/ets
+│ ├──entryability
+│ │ └──EntryAbility.ets // 程序入口类
+│ ├──entrybackupability
+│ │ └──EntryBackupAbility.ets // 数据备份恢复类
+│ └──pages
+│ ├──Index.ets // 使用columnStart/columnEnd设置GridItem大小示例:反例
+│ └──RightIndex.ets // 使用GridLayoutOptions设置GridItem大小:正例
+└──entry/src/main/resources // 应用资源目录
+```
+
+### 相关权限
+
+不涉及
+
+## 约束与限制
+
+* 本示例仅支持标准系统上运行,支持设备:华为手机。
+* HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。
+* DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。
+* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。
\ No newline at end of file
diff --git a/GridComponentLoadSlow/code-linter.json5 b/GridComponentLoadSlow/code-linter.json5
deleted file mode 100644
index 073990fa..00000000
--- a/GridComponentLoadSlow/code-linter.json5
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "files": [
- "**/*.ets"
- ],
- "ignore": [
- "**/src/ohosTest/**/*",
- "**/src/test/**/*",
- "**/src/mock/**/*",
- "**/node_modules/**/*",
- "**/oh_modules/**/*",
- "**/build/**/*",
- "**/.preview/**/*"
- ],
- "ruleSet": [
- "plugin:@performance/recommended",
- "plugin:@typescript-eslint/recommended"
- ],
- "rules": {
- "@security/no-unsafe-aes": "error",
- "@security/no-unsafe-hash": "error",
- "@security/no-unsafe-mac": "warn",
- "@security/no-unsafe-dh": "error",
- "@security/no-unsafe-dsa": "error",
- "@security/no-unsafe-ecdsa": "error",
- "@security/no-unsafe-rsa-encrypt": "error",
- "@security/no-unsafe-rsa-sign": "error",
- "@security/no-unsafe-rsa-key": "error",
- "@security/no-unsafe-dsa-key": "error",
- "@security/no-unsafe-dh-key": "error",
- "@security/no-unsafe-3des": "error"
- }
-}
\ No newline at end of file
diff --git a/GridComponentLoadSlow/entry/.gitignore b/GridComponentLoadSlow/entry/.gitignore
deleted file mode 100644
index e2713a27..00000000
--- a/GridComponentLoadSlow/entry/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-/node_modules
-/oh_modules
-/.preview
-/build
-/.cxx
-/.test
\ No newline at end of file
diff --git a/GridComponentLoadSlow/entry/src/main/ets/entryability/EntryAbility.ets b/GridComponentLoadSlow/entry/src/main/ets/entryability/EntryAbility.ets
index 508880af..8f77f2c0 100644
--- a/GridComponentLoadSlow/entry/src/main/ets/entryability/EntryAbility.ets
+++ b/GridComponentLoadSlow/entry/src/main/ets/entryability/EntryAbility.ets
@@ -1,3 +1,18 @@
+/*
+* Copyright (C) 2024 Huawei Device Co., Ltd.
+* Licensed under the Apache License, Version 2.0 (the "License");
+* 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-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
import { AbilityConstant, ConfigurationConstant, UIAbility, Want } from '@kit.AbilityKit';
import { hilog } from '@kit.PerformanceAnalysisKit';
import { window } from '@kit.ArkUI';
diff --git a/GridComponentLoadSlow/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets b/GridComponentLoadSlow/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
index 8e4de992..dbca64c9 100644
--- a/GridComponentLoadSlow/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
+++ b/GridComponentLoadSlow/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
@@ -1,3 +1,18 @@
+/*
+* Copyright (C) 2024 Huawei Device Co., Ltd.
+* Licensed under the Apache License, Version 2.0 (the "License");
+* 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-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
import { hilog } from '@kit.PerformanceAnalysisKit';
import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit';
diff --git a/GridComponentLoadSlow/entry/src/main/ets/pages/RightIndex.ets b/GridComponentLoadSlow/entry/src/main/ets/pages/RightIndex.ets
index c9d0703e..b84d7c32 100644
--- a/GridComponentLoadSlow/entry/src/main/ets/pages/RightIndex.ets
+++ b/GridComponentLoadSlow/entry/src/main/ets/pages/RightIndex.ets
@@ -79,7 +79,10 @@ export struct GridExample2 {
build() {
Column({ space: 5 }) {
- Text('使用GridLayoutOptions设置GridItem大小').fontColor(0xCCCCCC).fontSize(9).width('90%')
+ Text('使用GridLayoutOptions设置GridItem大小')
+ .fontColor(0xCCCCCC)
+ .fontSize(9)
+ .width('90%')
Grid(this.scroller, this.layoutOptions) {
LazyForEach(this.datasource, (item: string, index: number) => {
GridItem() {
diff --git a/GridComponentLoadSlow/entry/src/mock/mock-config.json5 b/GridComponentLoadSlow/entry/src/mock/mock-config.json5
deleted file mode 100644
index 7a73a41b..00000000
--- a/GridComponentLoadSlow/entry/src/mock/mock-config.json5
+++ /dev/null
@@ -1,2 +0,0 @@
-{
-}
\ No newline at end of file
diff --git a/GridComponentLoadSlow/entry/src/ohosTest/ets/test/Ability.test.ets b/GridComponentLoadSlow/entry/src/ohosTest/ets/test/Ability.test.ets
deleted file mode 100644
index 85c78f67..00000000
--- a/GridComponentLoadSlow/entry/src/ohosTest/ets/test/Ability.test.ets
+++ /dev/null
@@ -1,35 +0,0 @@
-import { hilog } from '@kit.PerformanceAnalysisKit';
-import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
-
-export default function abilityTest() {
- describe('ActsAbilityTest', () => {
- // Defines a test suite. Two parameters are supported: test suite name and test suite function.
- beforeAll(() => {
- // Presets an action, which is performed only once before all test cases of the test suite start.
- // This API supports only one parameter: preset action function.
- })
- beforeEach(() => {
- // Presets an action, which is performed before each unit test case starts.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: preset action function.
- })
- afterEach(() => {
- // Presets a clear action, which is performed after each unit test case ends.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: clear action function.
- })
- afterAll(() => {
- // Presets a clear action, which is performed after all test cases of the test suite end.
- // This API supports only one parameter: clear action function.
- })
- it('assertContain', 0, () => {
- // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
- hilog.info(0x0000, 'testTag', '%{public}s', 'it begin');
- let a = 'abc';
- let b = 'b';
- // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
- expect(a).assertContain(b);
- expect(a).assertEqual(a);
- })
- })
-}
\ No newline at end of file
diff --git a/GridComponentLoadSlow/entry/src/ohosTest/ets/test/List.test.ets b/GridComponentLoadSlow/entry/src/ohosTest/ets/test/List.test.ets
deleted file mode 100644
index 794c7dc4..00000000
--- a/GridComponentLoadSlow/entry/src/ohosTest/ets/test/List.test.ets
+++ /dev/null
@@ -1,5 +0,0 @@
-import abilityTest from './Ability.test';
-
-export default function testsuite() {
- abilityTest();
-}
\ No newline at end of file
diff --git a/GridComponentLoadSlow/entry/src/ohosTest/module.json5 b/GridComponentLoadSlow/entry/src/ohosTest/module.json5
deleted file mode 100644
index 509a3a28..00000000
--- a/GridComponentLoadSlow/entry/src/ohosTest/module.json5
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "module": {
- "name": "entry_test",
- "type": "feature",
- "deviceTypes": [
- "phone"
- ],
- "deliveryWithInstall": true,
- "installationFree": false
- }
-}
diff --git a/GridComponentLoadSlow/entry/src/test/List.test.ets b/GridComponentLoadSlow/entry/src/test/List.test.ets
deleted file mode 100644
index bb5b5c37..00000000
--- a/GridComponentLoadSlow/entry/src/test/List.test.ets
+++ /dev/null
@@ -1,5 +0,0 @@
-import localUnitTest from './LocalUnit.test';
-
-export default function testsuite() {
- localUnitTest();
-}
\ No newline at end of file
diff --git a/GridComponentLoadSlow/entry/src/test/LocalUnit.test.ets b/GridComponentLoadSlow/entry/src/test/LocalUnit.test.ets
deleted file mode 100644
index 165fc161..00000000
--- a/GridComponentLoadSlow/entry/src/test/LocalUnit.test.ets
+++ /dev/null
@@ -1,33 +0,0 @@
-import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
-
-export default function localUnitTest() {
- describe('localUnitTest', () => {
- // Defines a test suite. Two parameters are supported: test suite name and test suite function.
- beforeAll(() => {
- // Presets an action, which is performed only once before all test cases of the test suite start.
- // This API supports only one parameter: preset action function.
- });
- beforeEach(() => {
- // Presets an action, which is performed before each unit test case starts.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: preset action function.
- });
- afterEach(() => {
- // Presets a clear action, which is performed after each unit test case ends.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: clear action function.
- });
- afterAll(() => {
- // Presets a clear action, which is performed after all test cases of the test suite end.
- // This API supports only one parameter: clear action function.
- });
- it('assertContain', 0, () => {
- // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
- let a = 'abc';
- let b = 'b';
- // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
- expect(a).assertContain(b);
- expect(a).assertEqual(a);
- });
- });
-}
\ No newline at end of file
diff --git a/HapAndHarDependHar/.hvigor/cache/meta.json b/HapAndHarDependHar/.hvigor/cache/meta.json
index 18f86af9..1360b2db 100644
--- a/HapAndHarDependHar/.hvigor/cache/meta.json
+++ b/HapAndHarDependHar/.hvigor/cache/meta.json
@@ -1 +1 @@
-{"compileSdkVersion":"5.0.4(16)","hvigorVersion":"5.16.2","toolChainsVersion":"5.0.4.150"}
+{"compileSdkVersion":"6.0.0(20)","hvigorVersion":"6.0.5","toolChainsVersion":"6.0.0.47"}
diff --git a/HapAndHarDependHar/.hvigor/outputs/sync/fileCache.json b/HapAndHarDependHar/.hvigor/outputs/sync/fileCache.json
index 7aa6aea2..d5e7b910 100644
--- a/HapAndHarDependHar/.hvigor/outputs/sync/fileCache.json
+++ b/HapAndHarDependHar/.hvigor/outputs/sync/fileCache.json
@@ -1 +1 @@
-{"CACHE_SYNC_FILE_HASH":{"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\hvigor\\hvigor-config.json5":"ed91e76a91d79e84e5afa0a9322b4444e6abc4f611f0fdc631fd67623d5fed5b","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\build-profile.json5":"372689807663d9e04b79f03454906bd609dfcd4119507685c552409fbd7154b2","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\hvigorfile.ts":"d06f45b46a59b102bb51ff3dbad67dcc84594f138b6a79a43d3dfb7361dd39c6","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\oh-package.json5":"68432f9732847072805d5baaf7d17e4e3eb164aad77e2ad8a0cc1a4c70b25e92","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build-profile.json5":"8839d039323b1a286ef9339a475c3362fcc151108d462da055c32457737ac8e5","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\hvigorfile.ts":"3c08830fe1bda9281ad9c08fb61d308dc0a91d1448d56dc66ee4c0b36d27a2ca","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\oh-package.json5":"9ce8f0ed8487ea9f414870435dd3f24a76da82d121608e91c1f337972fdc11d2","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build-profile.json5":"cd010d19626ca1a3a7fa23ef90ce21588bb46cc8287dd086657ff180727d77f7","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\hvigorfile.ts":"c8d466428a00198ce37a756c18e0af6533ab7036cd4c9db261ac548cc643e962","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\oh-package.json5":"eeac7b3418329012fd607378a786cba5945c686f9e8d9adca4e1559d5cedb1ca","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build-profile.json5":"3c5909484808caf6a3717798b79dea26aaa3cdab9948844887ad385ac6b015fa","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\hvigorfile.ts":"4ec65cd4aa5540b79f253fc81aa973ef0c4fac67f367b032e9a213fbdea89117","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\oh-package.json5":"6cbb7adda60279e21707d59ea034ca532f6f0fc391327346504c13f23a9ff336","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\.hvigor\\outputs\\sync\\output.json":"337b6c7db8aac45a1c62204249ce204b20e1cbe44e7c259c79eeeecab404f2f0","SDK_LOCATION":"C:/Program Files/Huawei/DevEco Studio/sdk"},"OHPM_INSTALL_FILE_HASH":{"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\oh-package.json5":"68432f9732847072805d5baaf7d17e4e3eb164aad77e2ad8a0cc1a4c70b25e92","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\oh_modules\\.ohpm\\lock.json5":"269eab4430f3d8d96102adc3a074a3b6d4bfe7f30ee31fbbab46c22acab80175","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\oh-package.json5":"9ce8f0ed8487ea9f414870435dd3f24a76da82d121608e91c1f337972fdc11d2","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\oh-package.json5":"eeac7b3418329012fd607378a786cba5945c686f9e8d9adca4e1559d5cedb1ca","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\oh-package.json5":"6cbb7adda60279e21707d59ea034ca532f6f0fc391327346504c13f23a9ff336","C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\oh_modules":true,"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\oh_modules":true,"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\oh_modules":true,"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\oh_modules":false}}
\ No newline at end of file
+{"CACHE_SYNC_FILE_HASH":{"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\hvigor\\hvigor-config.json5":"cb41725891a3a63cc59cc50eeb0871ac75d86c892206d344ddcc7f6aa5b3dd28","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\build-profile.json5":"ae0ba228ee643e3fd520e51cec4ee2cb129e1860eb0706c022dc69bde30406cb","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\hvigorfile.ts":"5fa16f0825e5ac7fbf9ceba45332e1274bcc811db863eb5f365afaa9d8c14ad4","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\oh-package.json5":"e2f85d54ded1649c2bbc9b4a5ad85b6d97d22898576474fe275f3b6f6240f93c","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build-profile.json5":"be8f264d9841a0e122a58b02077bccff57d9155c5f35a70af9f58106b0cee61e","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\hvigorfile.ts":"193d54dc45ddda429a8484031fa5770091c83ef3da76a34fc6b6ca9baf9b6af7","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\oh-package.json5":"38ef6519a84a9d25b3c03ef3cefaa71cdc049423776c9be6e4af36dde9489399","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build-profile.json5":"7c55cfeed8b764aefc0be24ee1712ff8ac59b817da7df727f2702ce41cbc021b","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\hvigorfile.ts":"81214c875f6f4987c2e79300122d41022c650217e714d4f38767c6f36f6c07e3","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\oh-package.json5":"0af97868a297d93bed294534dfb98a105e1b6e86b035b2f3b543d588bdd14244","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build-profile.json5":"7c55cfeed8b764aefc0be24ee1712ff8ac59b817da7df727f2702ce41cbc021b","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\hvigorfile.ts":"81214c875f6f4987c2e79300122d41022c650217e714d4f38767c6f36f6c07e3","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\oh-package.json5":"58481d13adcf1db3ebf11798973927507f95f1ea11559bf4a43b97b2a9c72b07","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\.hvigor\\outputs\\sync\\output.json":"021bf6e88d92be5fa109bf97b23de757778b8b6a5e70bb42a3140a153f3d4ef5","SDK_LOCATION":"D:/Program Files/Huawei/DevEco Studio/sdk"},"OHPM_INSTALL_FILE_HASH":{"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\oh-package.json5":"e2f85d54ded1649c2bbc9b4a5ad85b6d97d22898576474fe275f3b6f6240f93c","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\oh_modules\\.ohpm\\lock.json5":"29c08cde47ec18974ef805cf252ac4d2dd7b94c4d7b990dfeffa558d72a27aa4","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\oh-package.json5":"38ef6519a84a9d25b3c03ef3cefaa71cdc049423776c9be6e4af36dde9489399","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\oh-package.json5":"0af97868a297d93bed294534dfb98a105e1b6e86b035b2f3b543d588bdd14244","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\oh-package.json5":"58481d13adcf1db3ebf11798973927507f95f1ea11559bf4a43b97b2a9c72b07","D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\oh_modules":true,"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\oh_modules":true,"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\oh_modules":true,"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\oh_modules":false}}
\ No newline at end of file
diff --git a/HapAndHarDependHar/.hvigor/outputs/sync/output.json b/HapAndHarDependHar/.hvigor/outputs/sync/output.json
index 52db4d76..4e41aafd 100644
--- a/HapAndHarDependHar/.hvigor/outputs/sync/output.json
+++ b/HapAndHarDependHar/.hvigor/outputs/sync/output.json
@@ -1,53 +1,49 @@
{
"ohos-module-entry": {
"SELECT_TARGET": "default",
- "MODULE_BUILD_DIR": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build",
- "DEPENDENCY_INFO": {
- "har_library": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library",
- "har_common": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common"
- },
+ "MODULE_BUILD_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build",
"TARGETS": {
"default": {
- "SOURCE_ROOT": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\src\\main",
+ "SOURCE_ROOT": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\src\\main",
"RESOURCES_PATH": [
- "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\src\\main\\resources"
+ "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\src\\main\\resources"
],
"BUILD_PATH": {
- "OUTPUT_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\outputs\\default",
- "INTERMEDIA_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates",
- "JS_ASSETS_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out\\default",
- "JS_LITE_ASSETS_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out_lite\\default",
- "RES_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\default",
- "RES_PROFILE_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
- "ETS_SUPER_VISUAL_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule",
- "JS_SUPER_VISUAL_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\default\\default@CompileJS\\jsbundle",
- "WORKER_LOADER": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader\\default\\loader.json",
- "MANIFEST_JSON": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\manifest\\default",
- "OUTPUT_METADATA_JSON": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
- "SOURCE_MAP_DIR": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\source_map\\default"
+ "OUTPUT_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\outputs\\default",
+ "INTERMEDIA_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates",
+ "JS_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out\\default",
+ "JS_LITE_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out_lite\\default",
+ "RES_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\default",
+ "RES_PROFILE_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
+ "ETS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule",
+ "JS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\default\\default@CompileJS\\jsbundle",
+ "WORKER_LOADER": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader\\default\\loader.json",
+ "MANIFEST_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\manifest\\default",
+ "OUTPUT_METADATA_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
+ "SOURCE_MAP_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\source_map\\default"
},
"BUILD_OPTION": {
"debuggable": true
}
},
"ohosTest": {
- "SOURCE_ROOT": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\src\\ohosTest",
+ "SOURCE_ROOT": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\src\\ohosTest",
"RESOURCES_PATH": [
- "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\src\\ohosTest\\resources"
+ "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\src\\ohosTest\\resources"
],
"BUILD_PATH": {
- "OUTPUT_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\outputs\\ohosTest",
- "INTERMEDIA_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates",
- "JS_ASSETS_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out\\ohosTest",
- "JS_LITE_ASSETS_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out_lite\\ohosTest",
- "RES_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\ohosTest",
- "RES_PROFILE_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\ohosTest\\resources\\base\\profile",
- "ETS_SUPER_VISUAL_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileArkTS\\esmodule",
- "JS_SUPER_VISUAL_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileJS\\jsbundle",
- "WORKER_LOADER": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader\\ohosTest\\loader.json",
- "MANIFEST_JSON": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\manifest\\ohosTest",
- "OUTPUT_METADATA_JSON": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\hap_metadata\\ohosTest\\output_metadata.json",
- "SOURCE_MAP_DIR": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\source_map\\ohosTest"
+ "OUTPUT_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\outputs\\ohosTest",
+ "INTERMEDIA_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates",
+ "JS_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out\\ohosTest",
+ "JS_LITE_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out_lite\\ohosTest",
+ "RES_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\ohosTest",
+ "RES_PROFILE_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\ohosTest\\resources\\base\\profile",
+ "ETS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileArkTS\\esmodule",
+ "JS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileJS\\jsbundle",
+ "WORKER_LOADER": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader\\ohosTest\\loader.json",
+ "MANIFEST_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\manifest\\ohosTest",
+ "OUTPUT_METADATA_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\hap_metadata\\ohosTest\\output_metadata.json",
+ "SOURCE_MAP_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\source_map\\ohosTest"
},
"BUILD_OPTION": {
"debuggable": true
@@ -98,29 +94,49 @@
},
"ohos-module-har_library": {
"SELECT_TARGET": "default",
- "MODULE_BUILD_DIR": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build",
- "DEPENDENCY_INFO": {
- "har_common": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common"
- },
+ "MODULE_BUILD_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build",
"TARGETS": {
"default": {
- "SOURCE_ROOT": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\src\\main",
+ "SOURCE_ROOT": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\src\\main",
+ "RESOURCES_PATH": [
+ "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\src\\main\\resources"
+ ],
+ "BUILD_PATH": {
+ "OUTPUT_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\outputs\\default",
+ "INTERMEDIA_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates",
+ "JS_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out\\default",
+ "JS_LITE_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out_lite\\default",
+ "RES_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\default",
+ "RES_PROFILE_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
+ "ETS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\default\\default@HarCompileArkTS\\esmodule",
+ "JS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\default\\default@HarCompileJS\\jsbundle",
+ "WORKER_LOADER": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader\\default\\loader.json",
+ "MANIFEST_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\manifest\\default",
+ "OUTPUT_METADATA_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
+ "SOURCE_MAP_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\source_map\\default"
+ },
+ "BUILD_OPTION": {
+ "debuggable": true
+ }
+ },
+ "ohosTest": {
+ "SOURCE_ROOT": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\src\\ohosTest",
"RESOURCES_PATH": [
- "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\src\\main\\resources"
+ "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\src\\ohosTest\\resources"
],
"BUILD_PATH": {
- "OUTPUT_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\outputs\\default",
- "INTERMEDIA_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates",
- "JS_ASSETS_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out\\default",
- "JS_LITE_ASSETS_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out_lite\\default",
- "RES_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\default",
- "RES_PROFILE_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
- "ETS_SUPER_VISUAL_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\default\\default@HarCompileArkTS\\esmodule",
- "JS_SUPER_VISUAL_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\default\\default@HarCompileJS\\jsbundle",
- "WORKER_LOADER": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader\\default\\loader.json",
- "MANIFEST_JSON": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\manifest\\default",
- "OUTPUT_METADATA_JSON": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
- "SOURCE_MAP_DIR": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\source_map\\default"
+ "OUTPUT_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\outputs\\ohosTest",
+ "INTERMEDIA_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates",
+ "JS_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out\\ohosTest",
+ "JS_LITE_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out_lite\\ohosTest",
+ "RES_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\ohosTest",
+ "RES_PROFILE_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\ohosTest\\resources\\base\\profile",
+ "ETS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileArkTS\\esmodule",
+ "JS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileJS\\jsbundle",
+ "WORKER_LOADER": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader\\ohosTest\\loader.json",
+ "MANIFEST_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\manifest\\ohosTest",
+ "OUTPUT_METADATA_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\hap_metadata\\ohosTest\\output_metadata.json",
+ "SOURCE_MAP_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\source_map\\ohosTest"
},
"BUILD_OPTION": {
"debuggable": true
@@ -174,27 +190,49 @@
},
"ohos-module-har_common": {
"SELECT_TARGET": "default",
- "MODULE_BUILD_DIR": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build",
- "DEPENDENCY_INFO": {},
+ "MODULE_BUILD_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build",
"TARGETS": {
"default": {
- "SOURCE_ROOT": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\src\\main",
+ "SOURCE_ROOT": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\src\\main",
+ "RESOURCES_PATH": [
+ "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\src\\main\\resources"
+ ],
+ "BUILD_PATH": {
+ "OUTPUT_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\outputs\\default",
+ "INTERMEDIA_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates",
+ "JS_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out\\default",
+ "JS_LITE_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out_lite\\default",
+ "RES_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\default",
+ "RES_PROFILE_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
+ "ETS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\default\\default@HarCompileArkTS\\esmodule",
+ "JS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\default\\default@HarCompileJS\\jsbundle",
+ "WORKER_LOADER": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader\\default\\loader.json",
+ "MANIFEST_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\manifest\\default",
+ "OUTPUT_METADATA_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
+ "SOURCE_MAP_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\source_map\\default"
+ },
+ "BUILD_OPTION": {
+ "debuggable": true
+ }
+ },
+ "ohosTest": {
+ "SOURCE_ROOT": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\src\\ohosTest",
"RESOURCES_PATH": [
- "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\src\\main\\resources"
+ "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\src\\ohosTest\\resources"
],
"BUILD_PATH": {
- "OUTPUT_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\outputs\\default",
- "INTERMEDIA_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates",
- "JS_ASSETS_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out\\default",
- "JS_LITE_ASSETS_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out_lite\\default",
- "RES_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\default",
- "RES_PROFILE_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
- "ETS_SUPER_VISUAL_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\default\\default@HarCompileArkTS\\esmodule",
- "JS_SUPER_VISUAL_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\default\\default@HarCompileJS\\jsbundle",
- "WORKER_LOADER": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader\\default\\loader.json",
- "MANIFEST_JSON": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\manifest\\default",
- "OUTPUT_METADATA_JSON": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
- "SOURCE_MAP_DIR": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\source_map\\default"
+ "OUTPUT_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\outputs\\ohosTest",
+ "INTERMEDIA_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates",
+ "JS_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out\\ohosTest",
+ "JS_LITE_ASSETS_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out_lite\\ohosTest",
+ "RES_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\ohosTest",
+ "RES_PROFILE_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\ohosTest\\resources\\base\\profile",
+ "ETS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileArkTS\\esmodule",
+ "JS_SUPER_VISUAL_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileJS\\jsbundle",
+ "WORKER_LOADER": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader\\ohosTest\\loader.json",
+ "MANIFEST_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\manifest\\ohosTest",
+ "OUTPUT_METADATA_JSON": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\hap_metadata\\ohosTest\\output_metadata.json",
+ "SOURCE_MAP_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\source_map\\ohosTest"
},
"BUILD_OPTION": {
"debuggable": true
@@ -248,15 +286,15 @@
},
"ohos-project": {
"SELECT_PRODUCT_NAME": "default",
- "MODULE_BUILD_DIR": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\build",
+ "MODULE_BUILD_DIR": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\build",
"BUNDLE_NAME": "com.example.coldstart",
"BUILD_PATH": {
- "OUTPUT_PATH": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\build\\outputs\\default"
+ "OUTPUT_PATH": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\build\\outputs\\default"
},
"MODULES": [
{
"name": "entry",
- "srcPath": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry",
+ "srcPath": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry",
"targets": [
{
"name": "default",
@@ -265,17 +303,17 @@
]
}
],
- "belongProjectPath": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar"
+ "belongProjectPath": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar"
},
{
"name": "har_library",
- "srcPath": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library",
- "belongProjectPath": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar"
+ "srcPath": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library",
+ "belongProjectPath": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar"
},
{
"name": "har_common",
- "srcPath": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common",
- "belongProjectPath": "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar"
+ "srcPath": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common",
+ "belongProjectPath": "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar"
}
],
"PROFILE_OPT": {
@@ -285,7 +323,8 @@
{
"name": "default",
"signingConfig": "default",
- "compatibleSdkVersion": "5.0.0(12)",
+ "compatibleSdkVersion": "5.0.5(17)",
+ "targetSdkVersion": "5.0.5(17)",
"runtimeOS": "HarmonyOS"
}
],
@@ -327,7 +366,7 @@
"hvigor.keepDependency": true
},
"OVERALL_PROJECT_PATHS": [
- "C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar"
+ "D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar"
],
"BUILD_CACHE_DIR": ""
},
diff --git a/HapAndHarDependHar/.idea/.deveco/module/entry.cache.json b/HapAndHarDependHar/.idea/.deveco/module/entry.cache.json
index e06b420c..56a52218 100644
--- a/HapAndHarDependHar/.idea/.deveco/module/entry.cache.json
+++ b/HapAndHarDependHar/.idea/.deveco/module/entry.cache.json
@@ -5,18 +5,18 @@
"BuildOptions":{
"SELECT_BUILD_TARGET":"default",
"BUILD_PATH":{
- "OUTPUT_METADATA_JSON":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
- "OUTPUT_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\outputs\\default",
- "RES_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\default",
- "ETS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule",
- "JS_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out\\default",
- "SOURCE_MAP_DIR":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\source_map\\default",
- "INTERMEDIA_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates",
- "RES_PROFILE_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
- "WORKER_LOADER":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader\\default\\loader.json",
- "MANIFEST_JSON":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\manifest\\default",
- "JS_LITE_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out_lite\\default",
- "JS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\default\\default@CompileJS\\jsbundle"
+ "OUTPUT_METADATA_JSON":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
+ "OUTPUT_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\outputs\\default",
+ "RES_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\default",
+ "ETS_SUPER_VISUAL_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule",
+ "JS_ASSETS_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out\\default",
+ "SOURCE_MAP_DIR":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\source_map\\default",
+ "INTERMEDIA_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates",
+ "RES_PROFILE_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
+ "WORKER_LOADER":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader\\default\\loader.json",
+ "MANIFEST_JSON":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\manifest\\default",
+ "JS_LITE_ASSETS_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\intermediates\\loader_out_lite\\default",
+ "JS_SUPER_VISUAL_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\entry\\build\\default\\cache\\default\\default@CompileJS\\jsbundle"
}
}
}
\ No newline at end of file
diff --git a/HapAndHarDependHar/.idea/.deveco/module/har_common.cache.json b/HapAndHarDependHar/.idea/.deveco/module/har_common.cache.json
index ccdfe1db..a01cb107 100644
--- a/HapAndHarDependHar/.idea/.deveco/module/har_common.cache.json
+++ b/HapAndHarDependHar/.idea/.deveco/module/har_common.cache.json
@@ -5,18 +5,18 @@
"BuildOptions":{
"SELECT_BUILD_TARGET":"default",
"BUILD_PATH":{
- "OUTPUT_METADATA_JSON":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
- "OUTPUT_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\outputs\\default",
- "RES_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\default",
- "ETS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\default\\default@HarCompileArkTS\\esmodule",
- "JS_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out\\default",
- "SOURCE_MAP_DIR":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\source_map\\default",
- "INTERMEDIA_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates",
- "RES_PROFILE_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
- "WORKER_LOADER":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader\\default\\loader.json",
- "MANIFEST_JSON":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\manifest\\default",
- "JS_LITE_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out_lite\\default",
- "JS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\default\\default@HarCompileJS\\jsbundle"
+ "OUTPUT_METADATA_JSON":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
+ "OUTPUT_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\outputs\\default",
+ "RES_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\default",
+ "ETS_SUPER_VISUAL_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\default\\default@HarCompileArkTS\\esmodule",
+ "JS_ASSETS_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out\\default",
+ "SOURCE_MAP_DIR":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\source_map\\default",
+ "INTERMEDIA_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates",
+ "RES_PROFILE_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
+ "WORKER_LOADER":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader\\default\\loader.json",
+ "MANIFEST_JSON":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\manifest\\default",
+ "JS_LITE_ASSETS_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\intermediates\\loader_out_lite\\default",
+ "JS_SUPER_VISUAL_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_common\\build\\default\\cache\\default\\default@HarCompileJS\\jsbundle"
}
}
}
\ No newline at end of file
diff --git a/HapAndHarDependHar/.idea/.deveco/module/har_library.cache.json b/HapAndHarDependHar/.idea/.deveco/module/har_library.cache.json
index 7c4d405a..0285ca83 100644
--- a/HapAndHarDependHar/.idea/.deveco/module/har_library.cache.json
+++ b/HapAndHarDependHar/.idea/.deveco/module/har_library.cache.json
@@ -5,18 +5,18 @@
"BuildOptions":{
"SELECT_BUILD_TARGET":"default",
"BUILD_PATH":{
- "OUTPUT_METADATA_JSON":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
- "OUTPUT_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\outputs\\default",
- "RES_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\default",
- "ETS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\default\\default@HarCompileArkTS\\esmodule",
- "JS_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out\\default",
- "SOURCE_MAP_DIR":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\source_map\\default",
- "INTERMEDIA_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates",
- "RES_PROFILE_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
- "WORKER_LOADER":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader\\default\\loader.json",
- "MANIFEST_JSON":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\manifest\\default",
- "JS_LITE_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out_lite\\default",
- "JS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\default\\default@HarCompileJS\\jsbundle"
+ "OUTPUT_METADATA_JSON":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
+ "OUTPUT_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\outputs\\default",
+ "RES_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\default",
+ "ETS_SUPER_VISUAL_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\default\\default@HarCompileArkTS\\esmodule",
+ "JS_ASSETS_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out\\default",
+ "SOURCE_MAP_DIR":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\source_map\\default",
+ "INTERMEDIA_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates",
+ "RES_PROFILE_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
+ "WORKER_LOADER":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader\\default\\loader.json",
+ "MANIFEST_JSON":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\manifest\\default",
+ "JS_LITE_ASSETS_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\intermediates\\loader_out_lite\\default",
+ "JS_SUPER_VISUAL_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\har_library\\build\\default\\cache\\default\\default@HarCompileJS\\jsbundle"
}
}
}
\ No newline at end of file
diff --git a/HapAndHarDependHar/.idea/.deveco/project.cache.json b/HapAndHarDependHar/.idea/.deveco/project.cache.json
index 3df030e9..9581e1e1 100644
--- a/HapAndHarDependHar/.idea/.deveco/project.cache.json
+++ b/HapAndHarDependHar/.idea/.deveco/project.cache.json
@@ -1,6 +1,6 @@
{
"CommonInfo":{
- "project.ide.version":"5.0.11.100",
+ "project.ide.version":"6.0.0.848",
"current.select.product":"default",
"current.select.buildMode":"",
"crossplatform.projectType":""
@@ -9,7 +9,7 @@
"SELECT_BUILD_PRODUCT":"default",
"BUNDLE_NAME":"com.example.coldstart",
"BUILD_PATH":{
- "OUTPUT_PATH":"C:\\Users\\fy\\Desktop\\newproject\\5.15new10\\BestPracticeSnippets\\HapAndHarDependHar\\build\\outputs\\default"
+ "OUTPUT_PATH":"D:\\toGit\\BestPracticeSnippets\\HapAndHarDependHar\\build\\outputs\\default"
},
"SELECT_BUILD_MODE":""
}
diff --git a/HapAndHarDependHar/.idea/modules.xml b/HapAndHarDependHar/.idea/modules.xml
index faccfc5b..174ab391 100644
--- a/HapAndHarDependHar/.idea/modules.xml
+++ b/HapAndHarDependHar/.idea/modules.xml
@@ -3,9 +3,9 @@
-
-
-
+
+
+
\ No newline at end of file
diff --git a/HapAndHarDependHar/.idea/modules/HapAndHarDependHar.iml b/HapAndHarDependHar/.idea/modules/HapAndHarDependHar.iml
index c2374d61..999bca03 100644
--- a/HapAndHarDependHar/.idea/modules/HapAndHarDependHar.iml
+++ b/HapAndHarDependHar/.idea/modules/HapAndHarDependHar.iml
@@ -32,24 +32,24 @@
-
+
-
-
+
+
+
+
-
+
-
-
-
-
+
+
diff --git a/HapAndHarDependHar/entry/oh-package-lock.json5 b/HapAndHarDependHar/entry/oh-package-lock.json5
index 231608a0..693078bc 100644
--- a/HapAndHarDependHar/entry/oh-package-lock.json5
+++ b/HapAndHarDependHar/entry/oh-package-lock.json5
@@ -1,6 +1,7 @@
{
"meta": {
- "stableOrder": true
+ "stableOrder": true,
+ "enableUnifiedLockfile": false
},
"lockfileVersion": 3,
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
@@ -12,13 +13,13 @@
"har_common@../har_common": {
"name": "har_common",
"version": "1.0.0",
- "resolved": "../har_common",
+ "resolved": "",
"registryType": "local"
},
"har_library@../har_library": {
"name": "har_library",
"version": "1.0.0",
- "resolved": "../har_library",
+ "resolved": "",
"registryType": "local",
"dependencies": {
"har_common": "file:../har_common"
diff --git a/HapAndHarDependHar/entry/oh_modules/har_common/src/main/ets/utils/Utils.ets b/HapAndHarDependHar/entry/oh_modules/har_common/src/main/ets/utils/Utils.ets
index 4742ef51..df7da42f 100644
--- a/HapAndHarDependHar/entry/oh_modules/har_common/src/main/ets/utils/Utils.ets
+++ b/HapAndHarDependHar/entry/oh_modules/har_common/src/main/ets/utils/Utils.ets
@@ -18,6 +18,7 @@
*/
// [Start large_number]
+// har_common/src/main/ets/utils/Utils.ets
const LARGE_NUMBER = 100000000;
function func(): number {
diff --git a/HapAndHarDependHar/entry/oh_modules/har_library/oh-package-lock.json5 b/HapAndHarDependHar/entry/oh_modules/har_library/oh-package-lock.json5
index 587ad773..80997756 100644
--- a/HapAndHarDependHar/entry/oh_modules/har_library/oh-package-lock.json5
+++ b/HapAndHarDependHar/entry/oh_modules/har_library/oh-package-lock.json5
@@ -1,6 +1,7 @@
{
"meta": {
- "stableOrder": true
+ "stableOrder": true,
+ "enableUnifiedLockfile": false
},
"lockfileVersion": 3,
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
@@ -11,7 +12,7 @@
"har_common@../har_common": {
"name": "har_common",
"version": "1.0.0",
- "resolved": "../har_common",
+ "resolved": "",
"registryType": "local"
}
}
diff --git a/HapAndHarDependHar/entry/oh_modules/har_library/oh_modules/har_common/src/main/ets/utils/Utils.ets b/HapAndHarDependHar/entry/oh_modules/har_library/oh_modules/har_common/src/main/ets/utils/Utils.ets
index 4742ef51..df7da42f 100644
--- a/HapAndHarDependHar/entry/oh_modules/har_library/oh_modules/har_common/src/main/ets/utils/Utils.ets
+++ b/HapAndHarDependHar/entry/oh_modules/har_library/oh_modules/har_common/src/main/ets/utils/Utils.ets
@@ -18,6 +18,7 @@
*/
// [Start large_number]
+// har_common/src/main/ets/utils/Utils.ets
const LARGE_NUMBER = 100000000;
function func(): number {
diff --git a/HapAndHarDependHar/har_library/oh-package-lock.json5 b/HapAndHarDependHar/har_library/oh-package-lock.json5
index 587ad773..80997756 100644
--- a/HapAndHarDependHar/har_library/oh-package-lock.json5
+++ b/HapAndHarDependHar/har_library/oh-package-lock.json5
@@ -1,6 +1,7 @@
{
"meta": {
- "stableOrder": true
+ "stableOrder": true,
+ "enableUnifiedLockfile": false
},
"lockfileVersion": 3,
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
@@ -11,7 +12,7 @@
"har_common@../har_common": {
"name": "har_common",
"version": "1.0.0",
- "resolved": "../har_common",
+ "resolved": "",
"registryType": "local"
}
}
diff --git a/HapAndHarDependHar/har_library/oh_modules/har_common/src/main/ets/utils/Utils.ets b/HapAndHarDependHar/har_library/oh_modules/har_common/src/main/ets/utils/Utils.ets
index 4742ef51..df7da42f 100644
--- a/HapAndHarDependHar/har_library/oh_modules/har_common/src/main/ets/utils/Utils.ets
+++ b/HapAndHarDependHar/har_library/oh_modules/har_common/src/main/ets/utils/Utils.ets
@@ -18,6 +18,7 @@
*/
// [Start large_number]
+// har_common/src/main/ets/utils/Utils.ets
const LARGE_NUMBER = 100000000;
function func(): number {
diff --git a/HapAndHarDependHar/oh_modules/.ohpm/lock.json5 b/HapAndHarDependHar/oh_modules/.ohpm/lock.json5
index ad44038f..ddfb1a85 100644
--- a/HapAndHarDependHar/oh_modules/.ohpm/lock.json5
+++ b/HapAndHarDependHar/oh_modules/.ohpm/lock.json5
@@ -52,19 +52,19 @@
}
},
"packages": {
- "har_library@file:har_library": {
- "storePath": "har_library",
- "dependencies": {
- "har_common": "har_common"
- },
+ "har_common@file:har_common": {
+ "storePath": "har_common",
+ "dependencies": {},
"dynamicDependencies": {},
"dev": false,
"dynamic": false,
"maskedByOverrideDependencyMap": false
},
- "har_common@file:har_common": {
- "storePath": "har_common",
- "dependencies": {},
+ "har_library@file:har_library": {
+ "storePath": "har_library",
+ "dependencies": {
+ "har_common": "har_common"
+ },
"dynamicDependencies": {},
"dev": false,
"dynamic": false,
diff --git a/PerformanceAnalysis/BptaFramePractice/README.md b/PerformanceAnalysis/BptaFramePractice/README.md
new file mode 100644
index 00000000..aa81059a
--- /dev/null
+++ b/PerformanceAnalysis/BptaFramePractice/README.md
@@ -0,0 +1,38 @@
+# 帧率问题分析同源示例代码
+
+### 介绍
+
+本示例代码为最佳实践《帧率问题分析》配套示例代码。
+
+#### 使用说明
+
+不涉及
+
+## 工程目录
+
+```
+├──entry/src/main/ets
+│ ├──components
+│ │ └──DiscoverView.ets // 程序入口类
+│ ├──entryability
+│ │ └──EntryAbility.ets // 程序入口类
+│ ├──entrybackupability
+│ │ └──EntryBackupAbility.ets // 数据备份恢复类
+│ └──pages
+│ ├──Index.ets // 自定义动画丢帧问题示例代码:优化前
+│ ├──page2.ets // 自定义动画丢帧问题示例代码:优化后
+│ ├──page3.ets // 布局嵌套过深示例代码
+│ └──page4.ets // 布局嵌套过深示例代码:子组件
+└──entry/src/main/resources // 应用资源目录
+```
+
+### 相关权限
+
+不涉及
+
+## 约束与限制
+
+* 本示例仅支持标准系统上运行,支持设备:华为手机。
+* HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。
+* DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。
+* HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。
\ No newline at end of file
diff --git a/PerformanceAnalysis/BptaFramePractice/code-linter.json5 b/PerformanceAnalysis/BptaFramePractice/code-linter.json5
deleted file mode 100644
index 073990fa..00000000
--- a/PerformanceAnalysis/BptaFramePractice/code-linter.json5
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "files": [
- "**/*.ets"
- ],
- "ignore": [
- "**/src/ohosTest/**/*",
- "**/src/test/**/*",
- "**/src/mock/**/*",
- "**/node_modules/**/*",
- "**/oh_modules/**/*",
- "**/build/**/*",
- "**/.preview/**/*"
- ],
- "ruleSet": [
- "plugin:@performance/recommended",
- "plugin:@typescript-eslint/recommended"
- ],
- "rules": {
- "@security/no-unsafe-aes": "error",
- "@security/no-unsafe-hash": "error",
- "@security/no-unsafe-mac": "warn",
- "@security/no-unsafe-dh": "error",
- "@security/no-unsafe-dsa": "error",
- "@security/no-unsafe-ecdsa": "error",
- "@security/no-unsafe-rsa-encrypt": "error",
- "@security/no-unsafe-rsa-sign": "error",
- "@security/no-unsafe-rsa-key": "error",
- "@security/no-unsafe-dsa-key": "error",
- "@security/no-unsafe-dh-key": "error",
- "@security/no-unsafe-3des": "error"
- }
-}
\ No newline at end of file
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/.gitignore b/PerformanceAnalysis/BptaFramePractice/entry/.gitignore
deleted file mode 100644
index e2713a27..00000000
--- a/PerformanceAnalysis/BptaFramePractice/entry/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-/node_modules
-/oh_modules
-/.preview
-/build
-/.cxx
-/.test
\ No newline at end of file
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/components/DiscoverView.ets b/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/components/DiscoverView.ets
index 6fec824b..8c5e056b 100644
--- a/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/components/DiscoverView.ets
+++ b/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/components/DiscoverView.ets
@@ -13,10 +13,6 @@
* limitations under the License.
*/
-/*
-* 最佳实践: 分析帧率问题
-*/
-
// [Start discover_view]
@Component
struct DiscoverView {
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/entryability/EntryAbility.ets b/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/entryability/EntryAbility.ets
index 508880af..8f77f2c0 100644
--- a/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/entryability/EntryAbility.ets
+++ b/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/entryability/EntryAbility.ets
@@ -1,3 +1,18 @@
+/*
+* Copyright (C) 2024 Huawei Device Co., Ltd.
+* Licensed under the Apache License, Version 2.0 (the "License");
+* 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-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
import { AbilityConstant, ConfigurationConstant, UIAbility, Want } from '@kit.AbilityKit';
import { hilog } from '@kit.PerformanceAnalysisKit';
import { window } from '@kit.ArkUI';
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets b/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
index 8e4de992..dbca64c9 100644
--- a/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
+++ b/PerformanceAnalysis/BptaFramePractice/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
@@ -1,3 +1,18 @@
+/*
+* Copyright (C) 2024 Huawei Device Co., Ltd.
+* Licensed under the Apache License, Version 2.0 (the "License");
+* 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-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
import { hilog } from '@kit.PerformanceAnalysisKit';
import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit';
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/src/mock/mock-config.json5 b/PerformanceAnalysis/BptaFramePractice/entry/src/mock/mock-config.json5
deleted file mode 100644
index 7a73a41b..00000000
--- a/PerformanceAnalysis/BptaFramePractice/entry/src/mock/mock-config.json5
+++ /dev/null
@@ -1,2 +0,0 @@
-{
-}
\ No newline at end of file
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/ets/test/Ability.test.ets b/PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/ets/test/Ability.test.ets
deleted file mode 100644
index 85c78f67..00000000
--- a/PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/ets/test/Ability.test.ets
+++ /dev/null
@@ -1,35 +0,0 @@
-import { hilog } from '@kit.PerformanceAnalysisKit';
-import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
-
-export default function abilityTest() {
- describe('ActsAbilityTest', () => {
- // Defines a test suite. Two parameters are supported: test suite name and test suite function.
- beforeAll(() => {
- // Presets an action, which is performed only once before all test cases of the test suite start.
- // This API supports only one parameter: preset action function.
- })
- beforeEach(() => {
- // Presets an action, which is performed before each unit test case starts.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: preset action function.
- })
- afterEach(() => {
- // Presets a clear action, which is performed after each unit test case ends.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: clear action function.
- })
- afterAll(() => {
- // Presets a clear action, which is performed after all test cases of the test suite end.
- // This API supports only one parameter: clear action function.
- })
- it('assertContain', 0, () => {
- // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
- hilog.info(0x0000, 'testTag', '%{public}s', 'it begin');
- let a = 'abc';
- let b = 'b';
- // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
- expect(a).assertContain(b);
- expect(a).assertEqual(a);
- })
- })
-}
\ No newline at end of file
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/ets/test/List.test.ets b/PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/ets/test/List.test.ets
deleted file mode 100644
index 794c7dc4..00000000
--- a/PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/ets/test/List.test.ets
+++ /dev/null
@@ -1,5 +0,0 @@
-import abilityTest from './Ability.test';
-
-export default function testsuite() {
- abilityTest();
-}
\ No newline at end of file
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/module.json5 b/PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/module.json5
deleted file mode 100644
index 55725a92..00000000
--- a/PerformanceAnalysis/BptaFramePractice/entry/src/ohosTest/module.json5
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "module": {
- "name": "entry_test",
- "type": "feature",
- "deviceTypes": [
- "phone",
- "tablet",
- "2in1"
- ],
- "deliveryWithInstall": true,
- "installationFree": false
- }
-}
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/src/test/List.test.ets b/PerformanceAnalysis/BptaFramePractice/entry/src/test/List.test.ets
deleted file mode 100644
index bb5b5c37..00000000
--- a/PerformanceAnalysis/BptaFramePractice/entry/src/test/List.test.ets
+++ /dev/null
@@ -1,5 +0,0 @@
-import localUnitTest from './LocalUnit.test';
-
-export default function testsuite() {
- localUnitTest();
-}
\ No newline at end of file
diff --git a/PerformanceAnalysis/BptaFramePractice/entry/src/test/LocalUnit.test.ets b/PerformanceAnalysis/BptaFramePractice/entry/src/test/LocalUnit.test.ets
deleted file mode 100644
index 165fc161..00000000
--- a/PerformanceAnalysis/BptaFramePractice/entry/src/test/LocalUnit.test.ets
+++ /dev/null
@@ -1,33 +0,0 @@
-import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
-
-export default function localUnitTest() {
- describe('localUnitTest', () => {
- // Defines a test suite. Two parameters are supported: test suite name and test suite function.
- beforeAll(() => {
- // Presets an action, which is performed only once before all test cases of the test suite start.
- // This API supports only one parameter: preset action function.
- });
- beforeEach(() => {
- // Presets an action, which is performed before each unit test case starts.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: preset action function.
- });
- afterEach(() => {
- // Presets a clear action, which is performed after each unit test case ends.
- // The number of execution times is the same as the number of test cases defined by **it**.
- // This API supports only one parameter: clear action function.
- });
- afterAll(() => {
- // Presets a clear action, which is performed after all test cases of the test suite end.
- // This API supports only one parameter: clear action function.
- });
- it('assertContain', 0, () => {
- // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
- let a = 'abc';
- let b = 'b';
- // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
- expect(a).assertContain(b);
- expect(a).assertEqual(a);
- });
- });
-}
\ No newline at end of file
--
Gitee