diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/README.md b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/README.md
index c5e10694158daa2aae8351b33e44693c4a141dad..27103e4d481be0835d1ca2d4f2f1a52e0cd59c0b 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/README.md
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/README.md
@@ -10,8 +10,8 @@
### 效果预览
-| 执行结果图 |
-| ------------------------------------------------------------ |
+| 执行结果图 |
+| ---------------------------------------------------------------- |
|
|
### 使用说明
@@ -25,61 +25,73 @@
```
entry/src/
├── main
+ │ ├── cpp
+ │ │ ├── types
+ │ │ │ ├── libentry
+ │ │ │ │ ├── Index.d.ts // 提供JS侧的接口方法
+ │ │ │ │ ├── oh-package.json5 // 将index.d.ts与cpp文件关联
+ │ │ ├── CMakeLists.txt // 配置CMake打包参数
+ │ │ ├── napi_init.cpp
│ ├── ets
│ │ ├── entryability
│ │ ├── entrybackupability
│ │ ├── pages
- │ │ ├── Index.ets // 动态加载示例代码
+ │ │ │ ├── Index.ets // 动态加载示例代码
+ │ │ │ └── Calc.ets
+ │ │ ├── utils
+ │ │ └── Calc.ets
+ │ │ ├── Calc.ets
│ ├── module.json5
│ └── resources
├── ohosTest
│ ├── ets
│ │ └── test
- │ │ ├── Ability.test.ets
+ │ │ ├── Ability.test.ets
│ │ ├── DynamicImport.test.ets // 自动化测试代码
│ │ └── List.test.ets
- har1 // har1模块函数实现
+ har1 // har1模块函数实现
├── src
│ ├── main
│ │ ├── ets
│ │ │ ├── utils
- │ │ │ │ └── Calc.ets
- │ │ │ └── components
+ │ │ │ │ └── Calc.ets
+ │ │ │ └── components
│ │ │ │ └── MainPage.ets
- har2 // har1模块函数实现
+ ├── Index.ets
+ har2 // har2模块函数实现
├── src
│ ├── main
│ │ ├── ets
│ │ │ ├── utils
- │ │ │ │ └── Calc.ets
- │ │ │ └── components
+ │ │ │ │ └── Calc.ets
+ │ │ │ └── components
│ │ │ │ └── MainPage.ets
- ├── index.ets
- harlibrary // harlibrary模块函数实现
+ ├── Index.ets
+ harlibrary // harlibrary模块函数实现
├── src
│ ├── main
│ │ ├── ets
│ │ │ ├── utils
- │ │ │ │ └── Calc.ets
- │ │ │ └── components
+ │ │ │ │ └── Calc.ets
+ │ │ │ └── components
│ │ │ │ └── MainPage.ets
- ├── index.ets
- myHar // myHar模块函数实现
+ ├── Index.ets
+ myHar // myHar模块函数实现
├── src
│ ├── main
- │ │ ├── ets
- │ │ │ └── components
+ │ │ ├── ets
+ │ │ │ └── components
│ │ │ │ └── MainPage.ets
- ├── index.ets
- myHsp // myHsp模块函数实现
+ ├── Index.ets
+ myHsp // myHsp模块函数实现
├── src
│ ├── main
- │ │ ├── ets
- │ │ │ ├── pages
+ │ │ ├── ets
+ │ │ │ ├── pages
│ │ │ │ └── Index.ets
│ │ │ └── utils
- │ │ │ │ └── Calc.ets
- ├── index.ets
+ │ │ │ │ └── Calc.ets
+ ├── Index.ets
```
### 相关权限
@@ -94,18 +106,18 @@ entry/src/
1.本示例仅支持标准系统上运行, 支持设备:RK3568。
-2.本示例为Stage模型,支持API14版本SDK,版本号:5.0.2.57,镜像版本号:OpenHarmony_5.0.2.58。
+2.本示例为Stage模型,支持API20版本SDK,版本号:6.0.0.34,镜像版本号:OpenHarmony_6.0.0.34。
-3.本示例需要使用DevEco Studio 5.0.1 Release (Build Version: 5.0.5.306, built on December 6, 2024)及以上版本才可编译运行。
+3.本示例需要使用DevEco Studio 6.0.0及以上版本才可编译运行。
### 下载
如需单独下载本工程,执行如下命令:
-````
+```
git init
git config core.sparsecheckout true
echo code/DocsSample/ArkTs/ArkTSRuntime/ArkTSModule/DynamicImport > .git/info/sparse-checkout
git remote add origin https://gitee.com/openharmony/applications_app_samples.git
git pull origin master
-````
\ No newline at end of file
+```
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/build-profile.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/build-profile.json5
index a8c3e30b26de45cd34e18bd4d08b63b9f2052517..2fe3b50e8695e861a4e9d6d7e5b50ff6f27a4987 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/build-profile.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/build-profile.json5
@@ -20,9 +20,9 @@
{
"name": "default",
"signingConfig": "default",
- "compileSdkVersion": 14,
- "compatibleSdkVersion": 14,
- "targetSdkVersion": 14,
+ "compileSdkVersion": 20,
+ "compatibleSdkVersion": 20,
+ "targetSdkVersion": 20,
"runtimeOS": "OpenHarmony",
"buildOption": {
"strictMode": {
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/hvigor/hvigor-config.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/hvigor/hvigor-config.json5
index cef74543b1f97c82275e4bf3434b162395bff2eb..41416014a500c7fcdc4573d9cced7f4c0600fb0c 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/hvigor/hvigor-config.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/hvigor/hvigor-config.json5
@@ -14,7 +14,7 @@
*/
{
- "modelVersion": "5.0.1",
+ "modelVersion": "6.0.0",
"dependencies": {
},
"execution": {
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/oh-package.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/oh-package.json5
index eaef52736f22c14e04fca386ba01611ab32a7e4a..f0e48242c9d9daeccc84ba56914420525d501068 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/oh-package.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/DynamicImport/oh-package.json5
@@ -14,7 +14,7 @@
*/
{
- "modelVersion": "5.0.1",
+ "modelVersion": "6.0.0",
"description": "Please describe the basic information.",
"dependencies": {
},
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/README.md b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/README.md
index e3ee2fcaaaa3a3adccb38a2f08685696904d357a..2003e72710bf80473d1f5ed33f9724627fbc7e03 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/README.md
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/README.md
@@ -8,8 +8,8 @@
### 效果预览
-| 首页 | 点击HAP加载系统库模块按钮后 | 点击HAP加载Native库按钮后 |
-| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
+| 首页 | 点击HAP加载系统库模块按钮后 | 点击HAP加载Native库按钮后 |
+| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
|
|
|
|
### 使用说明
@@ -33,13 +33,13 @@ entry/src/
│ │ ├── entryability
│ │ ├── entrybackupability
│ │ ├── pages
- │ │ ├── Index.ets // 同步方式动态加载native模块
+ │ │ ├── Index.ets // 同步方式动态加载native模块
│ ├── module.json5
│ └── resources
├── ohosTest
│ ├── ets
│ │ └── test
- │ │ ├── Ability.test.ets
+ │ │ ├── Ability.test.ets
│ │ ├── JsApisLoadNativeModule.test.ets // 自动化测试代码
│ │ └── List.test
```
@@ -56,18 +56,18 @@ entry/src/
1.本示例仅支持标准系统上运行, 支持设备:RK3568。
-2.本示例为Stage模型,支持API14版本SDK,版本号:5.0.2.57,镜像版本号:OpenHarmony_5.0.2.58。
+2.本示例为Stage模型,支持API20版本SDK,版本号:6.0.0.34,镜像版本号:OpenHarmony_6.0.0.34。
-3.本示例需要使用DevEco Studio 5.0.1 Release (Build Version: 5.0.5.306, built on December 6, 2024)及以上版本才可编译运行。
+3.本示例需要使用DevEco Studio 6.0.0及以上版本才可编译运行。
### 下载
如需单独下载本工程,执行如下命令:
-````
+```
git init
git config core.sparsecheckout true
echo code/DocsSample/ArkTs/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule > .git/info/sparse-checkout
git remote add origin https://gitee.com/openharmony/applications_app_samples.git
git pull origin master
-````
\ No newline at end of file
+```
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/build-profile.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/build-profile.json5
index df8b8004f9207069a86cc1b12716cdcdb73f9072..7c4f128306ac57da77c2c55a82800becc40eaf0b 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/build-profile.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/build-profile.json5
@@ -20,9 +20,9 @@
{
"name": "default",
"signingConfig": "default",
- "compileSdkVersion": 14,
- "compatibleSdkVersion": 14,
- "targetSdkVersion": 14,
+ "compileSdkVersion": 20,
+ "compatibleSdkVersion": 20,
+ "targetSdkVersion": 20,
"runtimeOS": "OpenHarmony",
"buildOption": {
"strictMode": {
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/hvigor/hvigor-config.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/hvigor/hvigor-config.json5
index b839e9394547af5fced4e6e694d628c9a12b5b35..8335aa4055e40579689d08a538b0607fde05ba71 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/hvigor/hvigor-config.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/hvigor/hvigor-config.json5
@@ -14,7 +14,7 @@
*/
{
- "modelVersion": "5.0.0",
+ "modelVersion": "6.0.0",
"dependencies": {
},
"execution": {
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/oh-package.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/oh-package.json5
index 95bf2b62b5bab47507f62693edb088f7f4cf9a12..40ca744c6d6349b0622626cac2dc4380fc2ce54b 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/oh-package.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/JsApisLoadNativeModule/oh-package.json5
@@ -14,7 +14,7 @@
*/
{
- "modelVersion": "5.0.0",
+ "modelVersion": "6.0.0",
"description": "Please describe the basic information.",
"dependencies": {
},
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/README.md b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/README.md
index 4f92135947e6df7266389745c8efc84e40a8c4e8..b7924346cfd21f75e73e8561daa70672918a88b4 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/README.md
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/README.md
@@ -8,8 +8,8 @@
### 效果预览
-| 首页 | 依次点击按钮后结果图 |
-| ------------------------------------------------------------ | ------------------------------------------------------------ |
+| 首页 | 依次点击按钮后结果图 |
+| ------------------------------------------------------------- | ------------------------------------------------------------- |
|
|
|
### 使用说明
@@ -27,21 +27,21 @@ entry/src/
│ │ ├── entryability
│ │ ├── entrybackupability
│ │ ├── pages
- │ │ ├── A.ets
- │ │ ├── A_ns.ets
- │ │ ├── B.ets
- │ │ ├── C.ets
- │ │ ├── fail_example.ets
- │ │ ├── Index.ets // 延迟加载
- │ │ ├── middle.ets
- │ │ ├── mod1.ets
- │ │ ├── mod2.ets
+ │ │ ├── A.ets
+ │ │ ├── A_ns.ets
+ │ │ ├── B.ets
+ │ │ ├── C.ets
+ │ │ ├── fail_example.ets
+ │ │ ├── main.ets // 延迟加载
+ │ │ ├── middle.ets
+ │ │ ├── mod1.ets
+ │ │ ├── mod2.ets
│ ├── module.json5
│ └── resources
├── ohosTest
│ ├── ets
│ │ └── test
- │ │ ├── Ability.test.ets
+ │ │ ├── Ability.test.ets
│ │ ├── LazyImport.test.ets // 自动化测试代码
│ │ └── List.test
```
@@ -58,18 +58,18 @@ entry/src/
1.本示例仅支持标准系统上运行, 支持设备:RK3568。
-2.本示例为Stage模型,支持API14版本SDK,版本号:5.0.2.57,镜像版本号:OpenHarmony_5.0.2.58。
+2.本示例为Stage模型,支持API20版本SDK,版本号:6.0.0.34,镜像版本号:OpenHarmony_6.0.0.34。
-3.本示例需要使用DevEco Studio 5.0.1 Release (Build Version: 5.0.5.306, built on December 6, 2024)及以上版本才可编译运行。
+3.本示例需要使用DevEco Studio 6.0.0及以上版本才可编译运行。
### 下载
如需单独下载本工程,执行如下命令:
-````
+```
git init
git config core.sparsecheckout true
echo code/DocsSample/ArkTs/ArkTSRuntime/ArkTSModule/LazyImport > .git/info/sparse-checkout
git remote add origin https://gitee.com/openharmony/applications_app_samples.git
git pull origin master
-````
\ No newline at end of file
+```
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/build-profile.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/build-profile.json5
index df8b8004f9207069a86cc1b12716cdcdb73f9072..7c4f128306ac57da77c2c55a82800becc40eaf0b 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/build-profile.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/build-profile.json5
@@ -20,9 +20,9 @@
{
"name": "default",
"signingConfig": "default",
- "compileSdkVersion": 14,
- "compatibleSdkVersion": 14,
- "targetSdkVersion": 14,
+ "compileSdkVersion": 20,
+ "compatibleSdkVersion": 20,
+ "targetSdkVersion": 20,
"runtimeOS": "OpenHarmony",
"buildOption": {
"strictMode": {
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/entry/src/main/ets/pages/main.ets b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/entry/src/main/ets/pages/main.ets
index 31fe7cfc716a1a936e3a93b758596c4a53d79c8e..200e844963350e0005ba0574be0c6c715389a3de 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/entry/src/main/ets/pages/main.ets
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/entry/src/main/ets/pages/main.ets
@@ -72,7 +72,7 @@ struct Index {
console.info(res.c);
}).catch((e: Error) => {
hilog.error(0x0000, '[Sample_LazyImport]', 'Test Assert error: %{public}s', e.toString());
- this.message = 'Not advisable to use one error: ' + e.toString();
+ this.message = 'Not advisable to use one error: ' + e.name;
})
})
Button('Not advisable to use two')
@@ -83,7 +83,7 @@ struct Index {
console.info(res.ns.c);
}).catch((e: Error) => {
hilog.error(0x0000, '[Sample_LazyImport]', 'Test Assert error: %{public}s', e.toString());
- this.message = 'Not advisable to use two error: ' + e.toString();
+ this.message = 'Not advisable to use two error: ' + e.name;
})
})
Text(this.message)
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/entry/src/ohosTest/ets/test/LazyImport.test.ets b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/entry/src/ohosTest/ets/test/LazyImport.test.ets
index f1288468bfa55b76e65de412b18570f7551fa68b..e239024bfcc6a1af7be97fa7e08bc02f2bf59093 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/entry/src/ohosTest/ets/test/LazyImport.test.ets
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/entry/src/ohosTest/ets/test/LazyImport.test.ets
@@ -59,11 +59,11 @@ export default function lazyImportTest() {
await button4.click();
await driver.delayMs(1000);
- await driver.assertComponentExist(ON.text('Not advisable to use one error: ReferenceError: c is not initialized'));
+ await driver.assertComponentExist(ON.text('Not advisable to use one error: ReferenceError'));
await button5.click();
await driver.delayMs(1000);
- await driver.assertComponentExist(ON.text('Not advisable to use two error: ReferenceError: module environment is undefined'));
+ await driver.assertComponentExist(ON.text('Not advisable to use two error: ReferenceError'));
console.info('uitest: testLazyImport001 end');
done();
})
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/hvigor/hvigor-config.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/hvigor/hvigor-config.json5
index f8c80644cad05d55ccae44a856e78d6e81630488..8335aa4055e40579689d08a538b0607fde05ba71 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/hvigor/hvigor-config.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/hvigor/hvigor-config.json5
@@ -14,7 +14,7 @@
*/
{
- "modelVersion": "5.0.1",
+ "modelVersion": "6.0.0",
"dependencies": {
},
"execution": {
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/oh-package.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/oh-package.json5
index 7b54e25c410e3435ec6ec128c734470f679294ad..40ca744c6d6349b0622626cac2dc4380fc2ce54b 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/oh-package.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/LazyImport/oh-package.json5
@@ -14,7 +14,7 @@
*/
{
- "modelVersion": "5.0.1",
+ "modelVersion": "6.0.0",
"description": "Please describe the basic information.",
"dependencies": {
},
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/README.md b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/README.md
index a62807bdc703087590799d4c2a22bc1d394de774..5e1af3594e62b0ee6777cccf88f9a833b8d6b37b 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/README.md
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/README.md
@@ -10,8 +10,8 @@
### 效果预览
-| 首页 |
-| ------------------------------------------------------------ |
+| 首页 |
+| -------------------------------------------------------------------------- |
|
|
### 使用说明
@@ -29,19 +29,22 @@ entry/src/
│ │ ├── entryability
│ │ ├── entrybackupability
│ │ ├── pages
- │ │ ├── LazyImportChangeExecutionOrder // 延迟加载改变模块执行顺序
- │ │ ├── ModifyGlobalObject // 修改全局对象
- │ │ ├── ModifyingGlobalVariables // 修改内置全局变量或原型链
- │ │ ├── ModifyTheApplicationLevelArkUI // 修改应用级ArkUI组件的状态变量信息
- │ │ ├── TopCodeModification // 模块执行顶层代码
- │ │ └── Index.ets // 首页
+ │ │ | ├── LazyImportChangeExecutionOrder // 延迟加载改变模块执行顺序
+ │ │ | ├── ModifyGlobalObject // 修改全局对象
+ │ │ | ├── ModifyingGlobalVariables // 修改内置全局变量或原型链
+ │ │ | ├── ModifyTheApplicationLevelArkUI // 修改应用级ArkUI组件的状态变量信息
+ │ │ | ├── TopCodeModification // 模块执行顶层代码
+ │ │ | └── Index.ets // 首页
+ │ │ ├── util
+ │ │ ├── CommonButton.ets
+ │ │ └── resource.ets
│ ├── module.json5
│ └── resources
├── ohosTest
│ ├── ets
│ │ └── test
- │ │ ├── Ability.test.ets
- │ │ ├── ModuleLoadingSideEffects.test.ets // 自动化测试代码
+ │ │ ├── Ability.test.ets
+ │ │ ├── ModuleLoadingSideEffects.test.ets // 自动化测试代码
│ │ └── List.test
```
@@ -57,18 +60,18 @@ entry/src/
1.本示例仅支持标准系统上运行, 支持设备:RK3568。
-2.本示例为Stage模型,支持API14版本SDK,版本号:5.0.2.57,镜像版本号:OpenHarmony_5.0.2.58。
+2.本示例为Stage模型,支持API20版本SDK,版本号:6.0.0.34,镜像版本号:OpenHarmony_6.0.0.34。
-3.本示例需要使用DevEco Studio 5.0.1 Release (Build Version: 5.0.5.306, built on December 6, 2024)及以上版本才可编译运行。
+3.本示例需要使用DevEco Studio 6.0.0及以上版本才可编译运行。
### 下载
如需单独下载本工程,执行如下命令:
-````
+```
git init
git config core.sparsecheckout true
echo code/DocsSample/ArkTs/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects > .git/info/sparse-checkout
git remote add origin https://gitee.com/openharmony/applications_app_samples.git
git pull origin master
-````
\ No newline at end of file
+```
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/build-profile.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/build-profile.json5
index df8b8004f9207069a86cc1b12716cdcdb73f9072..7c4f128306ac57da77c2c55a82800becc40eaf0b 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/build-profile.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/build-profile.json5
@@ -20,9 +20,9 @@
{
"name": "default",
"signingConfig": "default",
- "compileSdkVersion": 14,
- "compatibleSdkVersion": 14,
- "targetSdkVersion": 14,
+ "compileSdkVersion": 20,
+ "compatibleSdkVersion": 20,
+ "targetSdkVersion": 20,
"runtimeOS": "OpenHarmony",
"buildOption": {
"strictMode": {
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/hvigor/hvigor-config.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/hvigor/hvigor-config.json5
index cef74543b1f97c82275e4bf3434b162395bff2eb..41416014a500c7fcdc4573d9cced7f4c0600fb0c 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/hvigor/hvigor-config.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/hvigor/hvigor-config.json5
@@ -14,7 +14,7 @@
*/
{
- "modelVersion": "5.0.1",
+ "modelVersion": "6.0.0",
"dependencies": {
},
"execution": {
diff --git a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/oh-package.json5 b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/oh-package.json5
index eaef52736f22c14e04fca386ba01611ab32a7e4a..f0e48242c9d9daeccc84ba56914420525d501068 100755
--- a/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/oh-package.json5
+++ b/code/DocsSample/ArkTS/ArkTSRuntime/ArkTSModule/ModuleLoadingSideEffects/oh-package.json5
@@ -14,7 +14,7 @@
*/
{
- "modelVersion": "5.0.1",
+ "modelVersion": "6.0.0",
"description": "Please describe the basic information.",
"dependencies": {
},