diff --git a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/.gitignore b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d2ff20141ceed86d87c0ea5d99481973005bab2b --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/.gitignore @@ -0,0 +1,12 @@ +/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/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/README.md b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/README.md index 49a67185d9f7abfd7cd463396049930f02a20f50..3385f24ecfd2171ab3f8b4d9f771c3f284e29671 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/README.md +++ b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/README.md @@ -61,9 +61,9 @@ entry/src/main/ets/ 1.本示例仅支持标准系统上运行, 支持设备:2in1。 -2.本示例为Stage模型,支持API Version 20及以上版本SDK。 +2.本示例为Stage模型,支持API Version 17及以上版本SDK。 -3.本示例需要使用DevEco Studio 6.0.0 Release及以上版本才可编译运行。 +3.本示例需要使用DevEco Studio 5.0.5 Release及以上版本才可编译运行。 ### 下载 diff --git a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/build-profile.json5 b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/build-profile.json5 index 724b825f1ee429691a14b6b6d138c70fd7c56db9..23ced1f5aff1f7beab5a394b12862801020a643a 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/build-profile.json5 +++ b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/build-profile.json5 @@ -20,9 +20,7 @@ { "name": "default", "signingConfig": "default", - "compileSdkVersion": "6.0.0(20)", - "compatibleSdkVersion": "6.0.0(20)", - "targetSdkVersion": "6.0.0(20)", + "compatibleSdkVersion": "5.0.5(17)", "runtimeOS": "HarmonyOS", "buildOption": { "strictMode": { diff --git a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/entry/src/main/ets/entryability/EntryAbility.ets b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/entry/src/main/ets/entryability/EntryAbility.ets index 518efcd23f096b3280bc52c217678064c9eae2b6..f88585fb570fcf8a262c2474bbb91e5f6537760c 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/entry/src/main/ets/entryability/EntryAbility.ets +++ b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/entry/src/main/ets/entryability/EntryAbility.ets @@ -55,7 +55,7 @@ export default class EntryAbility extends UIAbility { hilog.info(DOMAIN, TAG, `Succeeded in changing the window size.`); }); // 3.为悬浮窗加载对应的目标页面。 - windowClass.setUIContent('pages/page4', (err: BusinessError) => { + windowClass.setUIContent('pages/Index', (err: BusinessError) => { let errCode: number = err.code; if (errCode) { hilog.error(DOMAIN, TAG, `Failed to load the content. Cause: ${JSON.stringify(err)}`); @@ -73,14 +73,6 @@ export default class EntryAbility extends UIAbility { }); }); // 4.销毁悬浮窗。当不再需要悬浮窗时,可根据具体实现逻辑,使用destroy对其进行销毁。 - windowClass.destroyWindow((err: BusinessError) => { - let errCode: number = err.code; - if (errCode) { - hilog.error(DOMAIN, TAG, `Failed to destroy the window. Cause: ${JSON.stringify(err)}`); - return; - } - hilog.info(DOMAIN, TAG, `Succeeded in destroying the window.`); - }); }); } }; diff --git a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/hvigor/hvigor-config.json5 b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/hvigor/hvigor-config.json5 index 3b057578a1bb4d591ee53054e39ab0154fc2e43a..14db5630fbede927541c0bf282186268a1712c7c 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/hvigor/hvigor-config.json5 +++ b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/hvigor/hvigor-config.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "dependencies": { }, "execution": { diff --git a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/oh-package.json5 b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/oh-package.json5 index 837c0ff9f35a6bb9eea849fead7955c19bcdec8d..f49df8123ed66dd9a5e8570de141ab1f3af92773 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/oh-package.json5 +++ b/ArkUIKit/ArkUIWindowSamples/CreateFloatWindow/oh-package.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "description": "Please describe the basic information.", "dependencies": { }, diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/.gitignore b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d2ff20141ceed86d87c0ea5d99481973005bab2b --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/.gitignore @@ -0,0 +1,12 @@ +/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/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/app.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/app.json5 new file mode 100644 index 0000000000000000000000000000000000000000..00206583acb24069a2f5cc682b7d16b419fa1eac --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/app.json5 @@ -0,0 +1,25 @@ +/* + * 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. + */ + +{ + "app": { + "bundleName": "com.example.createmainwindow", + "vendor": "example", + "versionCode": 1000000, + "versionName": "1.0.0", + "icon": "$media:layered_image", + "label": "$string:app_name" + } +} diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/element/string.json b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..9b10dc724b0bc7fa8cf639d9589ad1e0d401d38b --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "CreateMainWindow" + } + ] +} diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/media/background.png b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/media/background.png new file mode 100644 index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f Binary files /dev/null and b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/media/background.png differ diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/media/foreground.png b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/media/foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..eb9427585b36d14b12477435b6419d1f07b3e0bb Binary files /dev/null and b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/media/foreground.png differ diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/media/layered_image.json b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/media/layered_image.json new file mode 100644 index 0000000000000000000000000000000000000000..fb49920440fb4d246c82f9ada275e26123a2136a --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/AppScope/resources/base/media/layered_image.json @@ -0,0 +1,7 @@ +{ + "layered-image": + { + "background" : "$media:background", + "foreground" : "$media:foreground" + } +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/README.md b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/README.md new file mode 100644 index 0000000000000000000000000000000000000000..443ee34707cc85d429fa22113be8b10ac222cf89 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/README.md @@ -0,0 +1,75 @@ +# CreateMainWindow简介 + +### 介绍 + +在Stage模型下,应用主窗口由UIAbility创建并维护生命周期。在UIAbility的onWindowStageCreate回调中,通过WindowStage获取应用主窗口,即可对其进行属性设置等操作。 + +### 效果预览 + +| 桌面 | 主窗口 | 交互 | +|----------------------------------------|----------------------------------------|----------------------------------------| +| ![image](screenshots/screenshot_1.jpg) | ![image](screenshots/screenshot_2.jpg) | ![image](screenshots/screenshot_3.jpg) | + +### 使用说明 + +1. 通过getMainWindow接口获取应用主窗口。 +2. 可设置主窗口的背景色、亮度值、是否可触等多个属性,开发者可根据需要选择对应的接口。 +3. 通过loadContent接口加载主窗口的目标页面。 + +### 工程目录 + +``` +entry/src/main/ets/ +|---main +| |---ets +| | |---entryability +| | | |---EntryAbility.ets // 创建主窗口 +| | |---entrybackupability +| | |---pages +| | | |---Index.ets // 主窗口页面 +| |---resources +| |---module.json5 +|---ohosTest +| |---ets +| | |---test +| | | |---Ability.test.ets // 自动化测试代码 +``` + +### 具体实现 + +创建主窗口的方法在EntryAbility中实现,源码参考:[EntryAbility.ets](https://gitcode.com/openharmony/applications_app_samples/blob/master/code/DocsSample/ArkUISample/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/entryability/EntryAbility.ets) + +- 使用getMainWindow获取应用主窗口 +- 使用setWindowTouchable设置主窗口属性 +- 使用loadContent加载对应的目标页面 + +目标页面在Index中实现,源码参考:[Index.ets](https://gitcode.com/openharmony/applications_app_samples/blob/master/code/DocsSample/ArkUISample/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/pages/Index.ets) + + +### 相关权限 + +不涉及 + +### 依赖 + +不涉及 + +### 约束与限制 + +1.本示例仅支持标准系统上运行, 支持设备:华为手机、平板。 + +2.本示例为Stage模型,支持API Version 17及以上版本SDK。 + +3.本示例需要使用DevEco Studio 5.0.5 Release及以上版本才可编译运行。 + +### 下载 + +如需单独下载本工程,执行如下命令: + +``` +git init +git config core.sparsecheckout true +echo code/DocsSample/ArkUISample/ArkUIWindowSamples/CreateMainWindow > .git/info/sparse-checkout +git remote add origin https://gitcode.com/openharmony/applications_app_samples.git +git pull origin master +``` \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/build-profile.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..23ced1f5aff1f7beab5a394b12862801020a643a --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/build-profile.json5 @@ -0,0 +1,56 @@ +/* + * 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. + */ + +{ + "app": { + "signingConfigs": [], + "products": [ + { + "name": "default", + "signingConfig": "default", + "compatibleSdkVersion": "5.0.5(17)", + "runtimeOS": "HarmonyOS", + "buildOption": { + "strictMode": { + "caseSensitiveCheck": true, + "useNormalizedOHMUrl": true + } + } + } + ], + "buildModeSet": [ + { + "name": "debug", + }, + { + "name": "release" + } + ] + }, + "modules": [ + { + "name": "entry", + "srcPath": "./entry", + "targets": [ + { + "name": "default", + "applyToProducts": [ + "default" + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/code-linter.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/code-linter.json5 new file mode 100644 index 0000000000000000000000000000000000000000..5c4682f8164874ec7e9cb8f99ff8b3228ffbc126 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/code-linter.json5 @@ -0,0 +1,46 @@ +/* + * 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. + */ +{ + "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/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/.gitignore b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..e2713a2779c5a3e0eb879efe6115455592caeea5 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/.gitignore @@ -0,0 +1,6 @@ +/node_modules +/oh_modules +/.preview +/build +/.cxx +/.test \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/build-profile.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..9016faf39f8a65cf648bae246a53575510fe8b9f --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/build-profile.json5 @@ -0,0 +1,47 @@ +/* + * 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. + */ +{ + "apiType": "stageMode", + "buildOption": { + "resOptions": { + "copyCodeResource": { + "enable": false + } + } + }, + "buildOptionSet": [ + { + "name": "release", + "arkOptions": { + "obfuscation": { + "ruleOptions": { + "enable": false, + "files": [ + "./obfuscation-rules.txt" + ] + } + } + } + }, + ], + "targets": [ + { + "name": "default" + }, + { + "name": "ohosTest", + } + ] +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/hvigorfile.ts b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..f8b117a17af3b2d7cb87a7680e29e2bb8ccd5b46 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/hvigorfile.ts @@ -0,0 +1,20 @@ +/* + * 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 { hapTasks } from '@ohos/hvigor-ohos-plugin'; + +export default { + system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ + plugins: [] /* Custom plugin to extend the functionality of Hvigor. */ +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/obfuscation-rules.txt b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/obfuscation-rules.txt new file mode 100644 index 0000000000000000000000000000000000000000..272efb6ca3f240859091bbbfc7c5802d52793b0b --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/obfuscation-rules.txt @@ -0,0 +1,23 @@ +# Define project specific obfuscation rules here. +# You can include the obfuscation configuration files in the current module's build-profile.json5. +# +# For more details, see +# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5 + +# Obfuscation options: +# -disable-obfuscation: disable all obfuscations +# -enable-property-obfuscation: obfuscate the property names +# -enable-toplevel-obfuscation: obfuscate the names in the global scope +# -compact: remove unnecessary blank spaces and all line feeds +# -remove-log: remove all console.* statements +# -print-namecache: print the name cache that contains the mapping from the old names to new names +# -apply-namecache: reuse the given cache file + +# Keep options: +# -keep-property-name: specifies property names that you want to keep +# -keep-global-name: specifies names that you want to keep in the global scope + +-enable-property-obfuscation +-enable-toplevel-obfuscation +-enable-filename-obfuscation +-enable-export-obfuscation \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/oh-package.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..10cda399b0aec3099b257299a57d284393e4e55a --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/oh-package.json5 @@ -0,0 +1,24 @@ +/* + * 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. + */ +{ + "name": "entry", + "version": "1.0.0", + "description": "Please describe the basic information.", + "main": "", + "author": "", + "license": "", + "dependencies": {} +} + diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/entryability/EntryAbility.ets b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/entryability/EntryAbility.ets new file mode 100644 index 0000000000000000000000000000000000000000..98e686adfd35b84054bb77048938128b8648cddf --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/entryability/EntryAbility.ets @@ -0,0 +1,59 @@ +/* + * 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. + */ + +// [Start create_main_window] +import { UIAbility} from '@kit.AbilityKit'; +import { window } from '@kit.ArkUI'; +import { BusinessError } from '@kit.BasicServicesKit'; +import hilog from '@ohos.hilog'; + +const DOMAIN = 0X0000; +const TAG : string = '[Sample_CCreatMainWindow]'; + +export default class EntryAbility extends UIAbility { + onWindowStageCreate(windowStage: window.WindowStage) { + // 1.获取应用主窗口。 + let windowClass: window.Window | null = null; + windowStage.getMainWindow((err: BusinessError, data) => { + let errCode: number = err.code; + if (errCode) { + hilog.error(DOMAIN, TAG, `Failed to obtain the main window. Code:${err.code}, message:${err.message}`); + return; + } + windowClass = data; + hilog.info(DOMAIN, TAG, `Succeeded in obtaining the main window. Result:${data}`); + // 2.设置主窗口属性。以设置"是否可触"属性为例。 + let isTouchable: boolean = true; + windowClass.setWindowTouchable(isTouchable, (err: BusinessError) => { + let errCode: number = err.code; + if (errCode) { + hilog.error(DOMAIN, TAG, `Failed to set the window to be touchable. Cause: ${JSON.stringify(err)}`); + return; + } + hilog.info(DOMAIN, TAG, `Succeeded in setting the window to be touchable.`); + }) + }) + // 3.为主窗口加载对应的目标页面。 + windowStage.loadContent('pages/Index', (err: BusinessError) => { + let errCode: number = err.code; + if (errCode) { + hilog.error(DOMAIN, TAG, `Failed to load the content. Cause: ${JSON.stringify(err)}`); + return; + } + hilog.info(DOMAIN, TAG, `Succeeded in loading the content.`); + }); + } +}; +// [End create_main_window] \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets new file mode 100644 index 0000000000000000000000000000000000000000..4ce6449f0e91914e73d4502c9f2e8e9a395ea4b1 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets @@ -0,0 +1,30 @@ +/* + * 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'; + +const DOMAIN = 0x0000; + +export default class EntryBackupAbility extends BackupExtensionAbility { + async onBackup() { + hilog.info(DOMAIN, 'testTag', 'onBackup ok'); + await Promise.resolve(); + } + + async onRestore(bundleVersion: BundleVersion) { + hilog.info(DOMAIN, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion)); + await Promise.resolve(); + } +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/pages/Index.ets b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/pages/Index.ets new file mode 100644 index 0000000000000000000000000000000000000000..64ca99781cb5c3e261ecdd74d316c6fa7cec67e4 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/ets/pages/Index.ets @@ -0,0 +1,37 @@ +/* + * 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. + */ +@Entry +@Component +struct Index { + @State message: string = 'Hello World'; + + build() { + RelativeContainer() { + Text(this.message) + .id('HelloWorld') + .fontSize($r('app.float.page_text_font_size')) + .fontWeight(FontWeight.Bold) + .alignRules({ + center: { anchor: '__container__', align: VerticalAlign.Center }, + middle: { anchor: '__container__', align: HorizontalAlign.Center } + }) + .onClick(() => { + this.message = 'Welcome'; + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/module.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/module.json5 new file mode 100644 index 0000000000000000000000000000000000000000..8930831ba2f2326ee0eabe8a6eac4a9c44ad5c96 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/module.json5 @@ -0,0 +1,64 @@ +/* + * 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. + */ +{ + "module": { + "name": "entry", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "EntryAbility", + "deviceTypes": [ + "phone" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:main_pages", + "abilities": [ + { + "name": "EntryAbility", + "srcEntry": "./ets/entryability/EntryAbility.ets", + "description": "$string:EntryAbility_desc", + "icon": "$media:layered_image", + "label": "$string:EntryAbility_label", + "startWindowIcon": "$media:startIcon", + "startWindowBackground": "$color:start_window_background", + "exported": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "ohos.want.action.home" + ] + } + ] + } + ], + "extensionAbilities": [ + { + "name": "EntryBackupAbility", + "srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets", + "type": "backup", + "exported": false, + "metadata": [ + { + "name": "ohos.extension.backup", + "resource": "$profile:backup_config" + } + ], + } + ] + } +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/element/color.json b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..3c712962da3c2751c2b9ddb53559afcbd2b54a02 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/element/color.json @@ -0,0 +1,8 @@ +{ + "color": [ + { + "name": "start_window_background", + "value": "#FFFFFF" + } + ] +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/element/float.json b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/element/float.json new file mode 100644 index 0000000000000000000000000000000000000000..33ea22304f9b1485b5f22d811023701b5d4e35b6 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/element/float.json @@ -0,0 +1,8 @@ +{ + "float": [ + { + "name": "page_text_font_size", + "value": "50fp" + } + ] +} diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/element/string.json b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..f94595515a99e0c828807e243494f57f09251930 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "module description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "label" + } + ] +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/background.png b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/background.png new file mode 100644 index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f Binary files /dev/null and b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/background.png differ diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/foreground.png b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..97014d3e10e5ff511409c378cd4255713aecd85f Binary files /dev/null and b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/foreground.png differ diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/layered_image.json b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/layered_image.json new file mode 100644 index 0000000000000000000000000000000000000000..fb49920440fb4d246c82f9ada275e26123a2136a --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/layered_image.json @@ -0,0 +1,7 @@ +{ + "layered-image": + { + "background" : "$media:background", + "foreground" : "$media:foreground" + } +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/startIcon.png b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/startIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b Binary files /dev/null and b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/media/startIcon.png differ diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/profile/backup_config.json b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/profile/backup_config.json new file mode 100644 index 0000000000000000000000000000000000000000..78f40ae7c494d71e2482278f359ec790ca73471a --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/profile/backup_config.json @@ -0,0 +1,3 @@ +{ + "allowToBackupRestore": true +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/profile/main_pages.json b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/profile/main_pages.json new file mode 100644 index 0000000000000000000000000000000000000000..1898d94f58d6128ab712be2c68acc7c98e9ab9ce --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/base/profile/main_pages.json @@ -0,0 +1,5 @@ +{ + "src": [ + "pages/Index" + ] +} diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/dark/element/color.json b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/dark/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..79b11c2747aec33e710fd3a7b2b3c94dd9965499 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/main/resources/dark/element/color.json @@ -0,0 +1,8 @@ +{ + "color": [ + { + "name": "start_window_background", + "value": "#000000" + } + ] +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/mock/mock-config.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/mock/mock-config.json5 new file mode 100644 index 0000000000000000000000000000000000000000..323d1d611fecf4ecb751976e3a71500b3712a445 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/mock/mock-config.json5 @@ -0,0 +1,16 @@ +/* + * 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. + */ +{ +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/ohosTest/ets/test/Ability.test.ets b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/ohosTest/ets/test/Ability.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..b3a18575ffeedb61f8e75e344efb69234335ed73 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/ohosTest/ets/test/Ability.test.ets @@ -0,0 +1,76 @@ +/* + * 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 '@ohos.hilog'; +import { describe, it, expect } from '@ohos/hypium'; +import { Driver, ON } from '@kit.TestKit'; +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; + +const TAG = '[Sample_CreatMainWindow]'; +const DOMAIN = 0xFF00 +const BUNDLE = 'CreatMainWindow_'; + +export default function abilityTest() { + + describe('EntryAbilityTest', () => { + /** + * 打开应用 + */ + it(BUNDLE + 'StartAbility_001', 0, async (done: Function) => { + hilog.info(DOMAIN, TAG, BUNDLE + "StartAbility_001, begin"); + let driver = Driver.create(); + let abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + try { + await abilityDelegator.startAbility({ + bundleName: 'com.example.createmainwindow', + abilityName: 'EntryAbility' + }); + } catch (exception) { + hilog.info(DOMAIN, TAG, BUNDLE + `StartAbility_001 exception = ${JSON.stringify(exception)}`); + expect().assertFail(); + } + await driver.delayMs(1000); + await driver.assertComponentExist(ON.text('Hello World')); + done(); + hilog.info(DOMAIN, TAG, BUNDLE + 'StartAbility_001 end') + }) + + /** + * 点击Hello Window,与主窗交互 + */ + it (BUNDLE + 'CreateMainWindow_001', 2, async () => { + hilog.info(DOMAIN, TAG, BUNDLE + "CreateMainWindow_001, begin") + let driver = Driver.create(); + let abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + try { + await abilityDelegator.startAbility({ + bundleName: 'com.example.createmainwindow', + abilityName: 'EntryAbility' + }); + } catch (exception) { + hilog.info(DOMAIN, TAG, BUNDLE + `CreateMainWindow_001 exception = ${JSON.stringify(exception)}`); + expect().assertFail(); + } + await driver.delayMs(1000); + await driver.assertComponentExist(ON.text('Hello World')); + let clickBtn = await driver.findComponent(ON.text('Hello World')); + await clickBtn.click(); + await driver.delayMs(1000); + + + hilog.info(DOMAIN, TAG, BUNDLE + `Hello World_001 end`); + }) + }) +} diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/ohosTest/ets/test/List.test.ets b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/ohosTest/ets/test/List.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..c64e0b06938d246ce044186d4b2d02b500a89e14 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/ohosTest/ets/test/List.test.ets @@ -0,0 +1,19 @@ +/* + * 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 abilityTest from './Ability.test'; + +export default function testsuite() { + abilityTest(); +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/ohosTest/module.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/ohosTest/module.json5 new file mode 100644 index 0000000000000000000000000000000000000000..1cafc28b86d7d9f2b34f24d26a75c0dbd7299715 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/ohosTest/module.json5 @@ -0,0 +1,25 @@ +/* + * 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. + */ +{ + "module": { + "name": "entry_test", + "type": "feature", + "deviceTypes": [ + "phone" + ], + "deliveryWithInstall": true, + "installationFree": false + } +} diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/test/List.test.ets b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/test/List.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..a60c87c5cbb0badf7c3fd8975034590e6fafa992 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/test/List.test.ets @@ -0,0 +1,19 @@ +/* + * 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 localUnitTest from './LocalUnit.test'; + +export default function testsuite() { + localUnitTest(); +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/test/LocalUnit.test.ets b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/test/LocalUnit.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..841bfd77e56060e50ec0924302a5ae624e76e3aa --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/entry/src/test/LocalUnit.test.ets @@ -0,0 +1,47 @@ +/* + * 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 { 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/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/hvigor/hvigor-config.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/hvigor/hvigor-config.json5 new file mode 100644 index 0000000000000000000000000000000000000000..14db5630fbede927541c0bf282186268a1712c7c --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/hvigor/hvigor-config.json5 @@ -0,0 +1,37 @@ +/* + * 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. + */ +{ + "modelVersion": "5.0.0", + "dependencies": { + }, + "execution": { + // "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | "ultrafine" | false ]. Default: "normal" */ + // "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */ + // "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */ + // "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */ + // "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */ + // "optimizationStrategy": "memory" /* Define the optimization strategy. Value: [ "memory" | "performance" ]. Default: "memory" */ + }, + "logging": { + // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */ + }, + "debugging": { + // "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */ + }, + "nodeOptions": { + // "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/ + // "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/ + } +} diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/hvigorfile.ts b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..ae9086af35844176c08f1be3772d081d95d267c6 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/hvigorfile.ts @@ -0,0 +1,20 @@ +/* + * 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 { appTasks } from '@ohos/hvigor-ohos-plugin'; + +export default { + system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ + plugins: [] /* Custom plugin to extend the functionality of Hvigor. */ +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/oh-package.json5 b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..f49df8123ed66dd9a5e8570de141ab1f3af92773 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/oh-package.json5 @@ -0,0 +1,24 @@ +/* + * 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. + */ +{ + "modelVersion": "5.0.0", + "description": "Please describe the basic information.", + "dependencies": { + }, + "devDependencies": { + "@ohos/hypium": "1.0.24", + "@ohos/hamock": "1.0.0" + } +} diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/ohosTest.md b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/ohosTest.md new file mode 100644 index 0000000000000000000000000000000000000000..2893324d675ce27ae5d3851fc7bdd601ddf2a609 --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/ohosTest.md @@ -0,0 +1,7 @@ +# CreateMainWindow示例测试用例归档 +## 用例表 +| 测试功能 | 预置条件 | 输入 | 预期输出 | 是否自动 | 测试结果 | +|------| --- |----------------------|--------| --- |------| +| 拉起应用 |设备正常运行| | 成功拉起应用 | 是 | Pass | +| 创建主窗 |设备正常运行| | 成功创建主窗 | 是 | Pass | +| 点击交互 |设备正常运行| | 页面变化 | 是 | Pass | \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/screenshots/screenshot_1.jpg b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/screenshots/screenshot_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1a222eee41c3a4bd92a0b16a203384e6b5e8dc67 Binary files /dev/null and b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/screenshots/screenshot_1.jpg differ diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/screenshots/screenshot_2.jpg b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/screenshots/screenshot_2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9c4539fcac6b9b4c93fe9b15edf72d7a69ed1748 Binary files /dev/null and b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/screenshots/screenshot_2.jpg differ diff --git a/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/screenshots/screenshot_3.jpg b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/screenshots/screenshot_3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..71dfaa9f8ac8f0c38354aec2e2f9f2474c80a853 Binary files /dev/null and b/ArkUIKit/ArkUIWindowSamples/CreateMainWindow/screenshots/screenshot_3.jpg differ diff --git a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/.gitignore b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d2ff20141ceed86d87c0ea5d99481973005bab2b --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/.gitignore @@ -0,0 +1,12 @@ +/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/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/README.md b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/README.md index a90fb47085313614ec526d4ac58eb2b241dd8f51..6c9246fd09021c7ce6460f1f65eb2e8d03c76880 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/README.md +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/README.md @@ -59,9 +59,9 @@ entry/src/main/ets/ 1.本示例仅支持标准系统上运行, 支持设备:华为手机、平板。 -2.本示例为Stage模型,支持API Version 20及以上版本SDK。 +2.本示例为Stage模型,支持API Version 17及以上版本SDK。 -3.本示例需要使用DevEco Studio 6.0.0 Release及以上版本才可编译运行。 +3.本示例需要使用DevEco Studio 5.0.5 Release及以上版本才可编译运行。 ### 下载 diff --git a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/build-profile.json5 b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/build-profile.json5 index 724b825f1ee429691a14b6b6d138c70fd7c56db9..23ced1f5aff1f7beab5a394b12862801020a643a 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/build-profile.json5 +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/build-profile.json5 @@ -20,9 +20,7 @@ { "name": "default", "signingConfig": "default", - "compileSdkVersion": "6.0.0(20)", - "compatibleSdkVersion": "6.0.0(20)", - "targetSdkVersion": "6.0.0(20)", + "compatibleSdkVersion": "5.0.5(17)", "runtimeOS": "HarmonyOS", "buildOption": { "strictMode": { diff --git a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/hvigor/hvigor-config.json5 b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/hvigor/hvigor-config.json5 index 3b057578a1bb4d591ee53054e39ab0154fc2e43a..14db5630fbede927541c0bf282186268a1712c7c 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/hvigor/hvigor-config.json5 +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/hvigor/hvigor-config.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "dependencies": { }, "execution": { diff --git a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/oh-package-lock.json5 b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/oh-package-lock.json5 new file mode 100644 index 0000000000000000000000000000000000000000..6b264af261c4152dee3641068ee2fff156299e4b --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/oh-package-lock.json5 @@ -0,0 +1,28 @@ +{ + "meta": { + "stableOrder": true, + "enableUnifiedLockfile": false + }, + "lockfileVersion": 3, + "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", + "specifiers": { + "@ohos/hamock@1.0.0": "@ohos/hamock@1.0.0", + "@ohos/hypium@1.0.24": "@ohos/hypium@1.0.24" + }, + "packages": { + "@ohos/hamock@1.0.0": { + "name": "", + "version": "1.0.0", + "integrity": "sha512-K6lDPYc6VkKe6ZBNQa9aoG+ZZMiwqfcR/7yAVFSUGIuOAhPvCJAo9+t1fZnpe0dBRBPxj2bxPPbKh69VuyAtDg==", + "resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hamock/-/hamock-1.0.0.har", + "registryType": "ohpm" + }, + "@ohos/hypium@1.0.24": { + "name": "", + "version": "1.0.24", + "integrity": "sha512-3dCqc+BAR5LqEGG2Vtzi8O3r7ci/3fYU+FWjwvUobbfko7DUnXGOccaror0yYuUhJfXzFK0aZNMGSnXaTwEnbw==", + "resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hypium/-/hypium-1.0.24.har", + "registryType": "ohpm" + } + } +} \ No newline at end of file diff --git a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/oh-package.json5 b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/oh-package.json5 index 837c0ff9f35a6bb9eea849fead7955c19bcdec8d..f49df8123ed66dd9a5e8570de141ab1f3af92773 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/oh-package.json5 +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow/oh-package.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "description": "Please describe the basic information.", "dependencies": { }, diff --git a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/.gitignore b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d2ff20141ceed86d87c0ea5d99481973005bab2b --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/.gitignore @@ -0,0 +1,12 @@ +/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/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/README.md b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/README.md index 44401b9d7c3cec5d862274c7e220d7cfe6afeca8..40e871de4fcb6d435de748b918841aaddc2a0226 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/README.md +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/README.md @@ -60,9 +60,9 @@ entry/src/main/ets/ 1.本示例仅支持标准系统上运行, 支持设备:华为手机、平板。 -2.本示例为Stage模型,支持API Version 20及以上版本SDK。 +2.本示例为Stage模型,支持API Version 17及以上版本SDK。 -3.本示例需要使用DevEco Studio 6.0.0 Release及以上版本才可编译运行。 +3.本示例需要使用DevEco Studio 5.0.5 Release及以上版本才可编译运行。 ### 下载 diff --git a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/build-profile.json5 b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/build-profile.json5 index 724b825f1ee429691a14b6b6d138c70fd7c56db9..23ced1f5aff1f7beab5a394b12862801020a643a 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/build-profile.json5 +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/build-profile.json5 @@ -20,9 +20,7 @@ { "name": "default", "signingConfig": "default", - "compileSdkVersion": "6.0.0(20)", - "compatibleSdkVersion": "6.0.0(20)", - "targetSdkVersion": "6.0.0(20)", + "compatibleSdkVersion": "5.0.5(17)", "runtimeOS": "HarmonyOS", "buildOption": { "strictMode": { diff --git a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/hvigor/hvigor-config.json5 b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/hvigor/hvigor-config.json5 index 3b057578a1bb4d591ee53054e39ab0154fc2e43a..14db5630fbede927541c0bf282186268a1712c7c 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/hvigor/hvigor-config.json5 +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/hvigor/hvigor-config.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "dependencies": { }, "execution": { diff --git a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/oh-package.json5 b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/oh-package.json5 index 837c0ff9f35a6bb9eea849fead7955c19bcdec8d..f49df8123ed66dd9a5e8570de141ab1f3af92773 100644 --- a/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/oh-package.json5 +++ b/ArkUIKit/ArkUIWindowSamples/CreateSubWindow2/oh-package.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "description": "Please describe the basic information.", "dependencies": { }, diff --git a/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/.gitignore b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d2ff20141ceed86d87c0ea5d99481973005bab2b --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/.gitignore @@ -0,0 +1,12 @@ +/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/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/README.md b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/README.md index 9dafca316a4130d4f95bd136417a73f3d44eac5b..f5299968b1c99095a48e8cd30b7c332c0e3dbf9b 100644 --- a/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/README.md +++ b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/README.md @@ -55,9 +55,9 @@ entry/src/main/ets/ 1.本示例仅支持标准系统上运行, 支持设备:华为手机、平板。 -2.本示例为Stage模型,支持API Version 20及以上版本SDK。 +2.本示例为Stage模型,支持API Version 17及以上版本SDK。 -3.本示例需要使用DevEco Studio 6.0.0 Release及以上版本才可编译运行。 +3.本示例需要使用DevEco Studio 5.0.5 Release及以上版本才可编译运行。 ### 下载 diff --git a/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/build-profile.json5 b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/build-profile.json5 index 724b825f1ee429691a14b6b6d138c70fd7c56db9..23ced1f5aff1f7beab5a394b12862801020a643a 100644 --- a/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/build-profile.json5 +++ b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/build-profile.json5 @@ -20,9 +20,7 @@ { "name": "default", "signingConfig": "default", - "compileSdkVersion": "6.0.0(20)", - "compatibleSdkVersion": "6.0.0(20)", - "targetSdkVersion": "6.0.0(20)", + "compatibleSdkVersion": "5.0.5(17)", "runtimeOS": "HarmonyOS", "buildOption": { "strictMode": { diff --git a/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/hvigor/hvigor-config.json5 b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/hvigor/hvigor-config.json5 index 3b057578a1bb4d591ee53054e39ab0154fc2e43a..14db5630fbede927541c0bf282186268a1712c7c 100644 --- a/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/hvigor/hvigor-config.json5 +++ b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/hvigor/hvigor-config.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "dependencies": { }, "execution": { diff --git a/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/oh-package.json5 b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/oh-package.json5 index 837c0ff9f35a6bb9eea849fead7955c19bcdec8d..f49df8123ed66dd9a5e8570de141ab1f3af92773 100644 --- a/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/oh-package.json5 +++ b/ArkUIKit/ArkUIWindowSamples/ListenWindowStage/oh-package.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "description": "Please describe the basic information.", "dependencies": { }, diff --git a/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/.gitignore b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d2ff20141ceed86d87c0ea5d99481973005bab2b --- /dev/null +++ b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/.gitignore @@ -0,0 +1,12 @@ +/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/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/README.md b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/README.md index d254b988124ca84e3b241bfa2d5a661fdef57632..bb4eedf22eca307bf8e049528805db0cdeddc27d 100644 --- a/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/README.md +++ b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/README.md @@ -55,9 +55,9 @@ entry/src/main/ets/ 1.本示例仅支持标准系统上运行, 支持设备:华为手机、平板。 -2.本示例为Stage模型,支持API Version 20及以上版本SDK。 +2.本示例为Stage模型,支持API Version 17及以上版本SDK。 -3.本示例需要使用DevEco Studio 6.0.0 Release及以上版本才可编译运行。 +3.本示例需要使用DevEco Studio 5.0.5 Release及以上版本才可编译运行。 ### 下载 diff --git a/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/build-profile.json5 b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/build-profile.json5 index 724b825f1ee429691a14b6b6d138c70fd7c56db9..23ced1f5aff1f7beab5a394b12862801020a643a 100644 --- a/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/build-profile.json5 +++ b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/build-profile.json5 @@ -20,9 +20,7 @@ { "name": "default", "signingConfig": "default", - "compileSdkVersion": "6.0.0(20)", - "compatibleSdkVersion": "6.0.0(20)", - "targetSdkVersion": "6.0.0(20)", + "compatibleSdkVersion": "5.0.5(17)", "runtimeOS": "HarmonyOS", "buildOption": { "strictMode": { diff --git a/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/hvigor/hvigor-config.json5 b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/hvigor/hvigor-config.json5 index 3b057578a1bb4d591ee53054e39ab0154fc2e43a..14db5630fbede927541c0bf282186268a1712c7c 100644 --- a/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/hvigor/hvigor-config.json5 +++ b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/hvigor/hvigor-config.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "dependencies": { }, "execution": { diff --git a/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/oh-package.json5 b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/oh-package.json5 index 837c0ff9f35a6bb9eea849fead7955c19bcdec8d..f49df8123ed66dd9a5e8570de141ab1f3af92773 100644 --- a/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/oh-package.json5 +++ b/ArkUIKit/ArkUIWindowSamples/SetWindowSystemBarEnable/oh-package.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.0.0", "description": "Please describe the basic information.", "dependencies": { },