diff --git a/build-profile.json5 b/build-profile.json5 index 16b292c5f260998564de2632affee564eed38fcf..af7a4bf39f1b64fd0be8b0e8356653f5164c10c0 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -4,8 +4,8 @@ { "name": "default", "signingConfig": "default", - "compileSdkVersion": 10, - "compatibleSdkVersion": 10 + "compileSdkVersion": 12, + "compatibleSdkVersion": 12 } ], "signingConfigs": [ diff --git a/common/src/main/ets/default/bean/MenuInfo.ts b/common/src/main/ets/default/bean/MenuInfo.ts index 5809a17499cf5da391e272081bae4607ff3e4107..70196373d4407ac926347a994e9038efe20fe896 100644 --- a/common/src/main/ets/default/bean/MenuInfo.ts +++ b/common/src/main/ets/default/bean/MenuInfo.ts @@ -47,12 +47,12 @@ export class MenuInfo { /** * shortcut icon Id */ - shortcutIconId = CommonConstants.INVALID_VALUE; + shortcutIconId: number | undefined = CommonConstants.INVALID_VALUE; /** * shortcut label Id */ - shortcutLabelId = CommonConstants.INVALID_VALUE; + shortcutLabelId: number | undefined = CommonConstants.INVALID_VALUE; /** * bundleName diff --git a/feature/appcenter/src/main/ets/default/layout/AppGridLayout.ets b/feature/appcenter/src/main/ets/default/layout/AppGridLayout.ets index 13eefe77aba1d3c453c0c0b24ce68b2e14593fb0..33dbc979ead7dac7631b3e2cef0d4f7630190ee0 100644 --- a/feature/appcenter/src/main/ets/default/layout/AppGridLayout.ets +++ b/feature/appcenter/src/main/ets/default/layout/AppGridLayout.ets @@ -106,9 +106,13 @@ export struct AppGridLayout { menu.bundleName = value.bundleName; menu.moduleName = value.moduleName; menu.onMenuClick = () => { - this.mAppGridViewModel.jumpTo( - value.wants[0].targetAbility, value.wants[0].targetBundle, value.wants[0].targetModule - ); + if (value.wants) { + this.mAppGridViewModel.jumpTo( + value.wants[0].targetAbility, value.wants[0].targetBundle, value.wants[0].targetModule + ); + } else { + Log.showError(TAG, 'value.wants is undefined or empty'); + } }; value.bundleName == appInfo.bundleName && value.moduleName == appInfo.moduleName && menuInfoList.push(menu); }); diff --git a/hvigor/hvigor-config.json5 b/hvigor/hvigor-config.json5 index 122677b194bc767301ef00a87a4b93c45562fe31..e75281b258e8cec776a34fd96a3c117c58afb9cb 100644 --- a/hvigor/hvigor-config.json5 +++ b/hvigor/hvigor-config.json5 @@ -1,6 +1,6 @@ { - "hvigorVersion": "3.0.9", + "hvigorVersion": "3.0.2", "dependencies": { - "@ohos/hvigor-ohos-plugin": "3.0.9" + "@ohos/hvigor-ohos-plugin": "3.0.2" } } \ No newline at end of file diff --git a/oh-package.json5 b/oh-package.json5 index 9ab36ac23f8b14df7c7ffe74d571607a50a676ec..cbed796d4b1b8c781dee0c4030a101906b17a322 100644 --- a/oh-package.json5 +++ b/oh-package.json5 @@ -1,9 +1,10 @@ { + "modelVersion": "5.0.1", "devDependencies": { "@ohos/hypium": "1.0.6" }, "name": "launcher", "description": "", "version": "1.0.0", - "dependencies": {} -} + "dependencies": {}, +} \ No newline at end of file