diff --git a/AppColdStart/README.md b/AppColdStart/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..0fc6cb05b85ef0700d0b9a7a158aec80414b39a2
--- /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 0000000000000000000000000000000000000000..ae35392938271bd95de9edda8f16fe92f6332892
--- /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 073990fa45394e1f8e85d85418ee60a8953f9b99..0000000000000000000000000000000000000000
--- 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 e2713a2779c5a3e0eb879efe6115455592caeea5..0000000000000000000000000000000000000000
--- 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 7a73a41bfdf76d6f793007240d80983a52f15f97..0000000000000000000000000000000000000000
--- 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 85c78f67579d6e31b5f5aeea463e216b9b141048..0000000000000000000000000000000000000000
--- 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 794c7dc4ed66bd98fa3865e07922906e2fcef545..0000000000000000000000000000000000000000
--- 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 55725a929993a8a18b3808d41ef037759440488b..0000000000000000000000000000000000000000
--- 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 bb5b5c3731e283dd507c847560ee59bde477bbc7..0000000000000000000000000000000000000000
--- 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 165fc1615ee8618b4cb6a622f144a9a707eee99f..0000000000000000000000000000000000000000
--- 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/GesturesConfictPractice/README.md b/GesturesConfictPractice/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..7c4fb75edc409f67fd95d7e8f6eb9e864c7db7ec
--- /dev/null
+++ b/GesturesConfictPractice/README.md
@@ -0,0 +1,43 @@
+# 手势事件冲突解决方案
+
+### 介绍
+
+本代码示例展示了多个组件嵌套时同时绑定手势事件,或者同一个组件同时绑定多个手势等场景下,手势冲突问题的解决。
+
+#### 使用说明
+
+1. 修改EntryAbility.ets文件中windowStage.loadContent('pages/Index')方法的参数,为pages目录下的页面。
+2. 安装应用体验pages目录下不同页面的功能。
+
+## 工程目录
+
+```
+├──entry/src/main/ets
+│ ├──entryability
+│ │ └──EntryAbility.ets // 程序入口类
+│ ├──entrybackupability
+│ │ └──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 // 应用资源目录
+```
+
+### 相关权限
+
+不涉及
+
+## 约束与限制
+
+* 本示例仅支持标准系统上运行,支持设备:华为手机。
+* 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 8335b7692d4cac1f8b5d78ce7bc1c45a453d563e..0f2f8b94aa24b0a50e272270e4e18b6df93ac5fd 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 dc55c03d3eea7ce53d5346c732a39ce9bf5267e1..b1e212947256c5533c7b06285a597c94f840a6e3 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 9b70c077211f48459162bd3c0fa8ae7fb3f453c6..226f4c281ef1e5132543ca1c552742990dc66e53 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 03c30d9d5a7de468db7f98f5f587bcb65b35c00e..780c8286c4bd5445ac4aa19211a3e0ebce7b5924 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/GesturesConflictScene8.ets b/GesturesConfictPractice/entry/src/main/ets/pages/GesturesConflictScene8.ets
deleted file mode 100644
index cc2704cf2854090941186c2812b3c77c244d66e7..0000000000000000000000000000000000000000
--- 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 9393e00f3990f2da833746e03f7fc066e15766bc..7be5d8ee091b9112a9c0893e73676ec00b2cd8a5 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 {
diff --git a/GesturesConfictPractice/entry/src/main/ets/pages/TestCode.ets b/GesturesConfictPractice/entry/src/main/ets/pages/TestCode.ets
index ed677eabb5d8f14181e01a291e3bf5ec74a3558e..89078ff58cdd5d849f3e734bb6eced297f3359d0 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
diff --git a/GridComponentLoadSlow/.gitignore b/GridComponentLoadSlow/.gitignore
deleted file mode 100644
index d2ff20141ceed86d87c0ea5d99481973005bab2b..0000000000000000000000000000000000000000
--- 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 0000000000000000000000000000000000000000..2c7d6d979361e9e10444d25f4f4286a7fd30cf9b
--- /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 073990fa45394e1f8e85d85418ee60a8953f9b99..0000000000000000000000000000000000000000
--- 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 e2713a2779c5a3e0eb879efe6115455592caeea5..0000000000000000000000000000000000000000
--- 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 508880af8c33aa838016d1cd4b2c68be2f447540..8f77f2c010da1215f4cc3c69181b763e093bde2e 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 8e4de99282050bad799ac892eb85ac5449364a51..dbca64c90dd87b1e9f5a339cb0178a5495f78af3 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 c9d0703e0084599d65186e0dfcc926f9ef8633c0..b84d7c324813c6de9a1c1841fac2504cf28356a4 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 7a73a41bfdf76d6f793007240d80983a52f15f97..0000000000000000000000000000000000000000
--- 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 85c78f67579d6e31b5f5aeea463e216b9b141048..0000000000000000000000000000000000000000
--- 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 794c7dc4ed66bd98fa3865e07922906e2fcef545..0000000000000000000000000000000000000000
--- 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 509a3a28a3e6be8d7f98cc563fa8195657d77d1d..0000000000000000000000000000000000000000
--- 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 bb5b5c3731e283dd507c847560ee59bde477bbc7..0000000000000000000000000000000000000000
--- 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 165fc1615ee8618b4cb6a622f144a9a707eee99f..0000000000000000000000000000000000000000
--- 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 18f86af95573be1ca58a8494f7aac0c780d0dfac..1360b2dbb29f98881beead7e162fb2e185454a53 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 7aa6aea27f2be5f199cca65e4e239e7422a006b0..d5e7b9107b214bd7867080cf30d1b2970a41dccc 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 52db4d7677bcf85f0b3de9ac538f6bdb0910ba90..4e41aafddafa82ea9049d01d119ffde5ea35a7e2 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 e06b420c8e4b4e99a1e37347e58afbd6ef2f8c22..56a5221800b803a8bfc70b0e4c91999c9bd3b99f 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 ccdfe1db15fa8a254a528c917e6af1b6ed6a5d17..a01cb10792f67b78d994d99747a2f1f8e90327b6 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 7c4d405a1de25d38223f990d1f4cfbfe0f15da56..0285ca8338230a7f611b321947464ac97c36f22a 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 3df030e90966f8ce3724f591a626772d3ac652ca..9581e1e1883102c2f9f9aace8d5766ced028ea42 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 faccfc5b6d5f95cbb14c1a740483d2a501325f8c..174ab3910b73fc7bd36cced182b268fad6859bb6 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 c2374d61aac50ab4ac8824f19011f78f118ce553..999bca034a4103a65c8e3ca56dab4602d016ed6b 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 231608a0756149b5af6a398afea23f308409a2e5..693078bc860d94884310724a94c40fa355da1c9e 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 4742ef515534d31b3afec2ebe7d4d8e9d0c5cc30..df7da42fbb590a57b1872f8d823fd66672baea05 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 587ad773b07c8bbd8891d9da47d8eccef105c449..80997756525f69154f109e8866a4fd1af88b2702 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 4742ef515534d31b3afec2ebe7d4d8e9d0c5cc30..df7da42fbb590a57b1872f8d823fd66672baea05 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 587ad773b07c8bbd8891d9da47d8eccef105c449..80997756525f69154f109e8866a4fd1af88b2702 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 4742ef515534d31b3afec2ebe7d4d8e9d0c5cc30..df7da42fbb590a57b1872f8d823fd66672baea05 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 ad44038f8d695b06caeac6a0ab32d1b5ca0f3f68..ddfb1a8569ff40fa5e8e083caad13784407cf989 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 0000000000000000000000000000000000000000..aa81059aed16d30b46581d80c10f68cc089ea399
--- /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 073990fa45394e1f8e85d85418ee60a8953f9b99..0000000000000000000000000000000000000000
--- 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 e2713a2779c5a3e0eb879efe6115455592caeea5..0000000000000000000000000000000000000000
--- 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 6fec824bc87911f854d245bca5704ff4711216dd..8c5e056be824f5af9e26770c10f8f65e8f07617e 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 508880af8c33aa838016d1cd4b2c68be2f447540..8f77f2c010da1215f4cc3c69181b763e093bde2e 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 8e4de99282050bad799ac892eb85ac5449364a51..dbca64c90dd87b1e9f5a339cb0178a5495f78af3 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 7a73a41bfdf76d6f793007240d80983a52f15f97..0000000000000000000000000000000000000000
--- 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 85c78f67579d6e31b5f5aeea463e216b9b141048..0000000000000000000000000000000000000000
--- 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 794c7dc4ed66bd98fa3865e07922906e2fcef545..0000000000000000000000000000000000000000
--- 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 55725a929993a8a18b3808d41ef037759440488b..0000000000000000000000000000000000000000
--- 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 bb5b5c3731e283dd507c847560ee59bde477bbc7..0000000000000000000000000000000000000000
--- 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 165fc1615ee8618b4cb6a622f144a9a707eee99f..0000000000000000000000000000000000000000
--- 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