diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/ets/MainAbility/pages/index.ets b/tools/test/resource/aa/pageAbilityBundleForStart/AppScope/app.json5 similarity index 64% rename from tools/test/resource/aa/pageAbilityBundleForStart/src/main/ets/MainAbility/pages/index.ets rename to tools/test/resource/aa/pageAbilityBundleForStart/AppScope/app.json5 index c0821d82ca..26717293b2 100644 --- a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/ets/MainAbility/pages/index.ets +++ b/tools/test/resource/aa/pageAbilityBundleForStart/AppScope/app.json5 @@ -1,32 +1,25 @@ -/* - * Copyright (c) 2022 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() { - Row() { - Column() { - Text(this.message) - .fontSize(50) - .fontWeight(FontWeight.Bold) - } - .width('100%') - } - .height('100%') - } -} +/* + * 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.ohos.tools.pageAbilityBundleForStart", + "vendor": "example", + "versionCode": 1000000, + "versionName": "1.0.0", + "icon": "$media:app_icon", + "label": "$string:app_name" + } +} diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/AppScope/resources/base/media/app_icon.png b/tools/test/resource/aa/pageAbilityBundleForStart/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000..a39445dc87 Binary files /dev/null and b/tools/test/resource/aa/pageAbilityBundleForStart/AppScope/resources/base/media/app_icon.png differ diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/BUILD.gn b/tools/test/resource/aa/pageAbilityBundleForStart/BUILD.gn index e82677d201..f7cf2cb983 100644 --- a/tools/test/resource/aa/pageAbilityBundleForStart/BUILD.gn +++ b/tools/test/resource/aa/pageAbilityBundleForStart/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. +# 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 @@ -13,26 +13,18 @@ import("//build/ohos.gni") -ohos_hap("pageAbilityBundleForStart") { - hap_profile = "./src/main/config.json" +ohos_app("pageAbilityBundleForStart") { + certificate_profile = "signature/openharmony_sx.p7b" hap_name = "pageAbilityBundleForStart" + hap_out_dir = "$root_out_dir/tests/ability/ability_runtime/tools/test/resource/aa/pageAbilityBundleForStart_test" + subsystem_name = "ability" part_name = "ability_runtime" - final_hap_path = "$root_out_dir/tests/systemtest/ability_tools/tools/resource/aa/${hap_name}.hap" - testonly = true - deps = [ - ":pageAbilityBundleForStart_ets_assets", - ":pageAbilityBundleForStart_ets_resources", - ] - ets2abc = true - certificate_profile = "./signature/openharmony_sx.p7b" -} -ohos_js_assets("pageAbilityBundleForStart_ets_assets") { - source_dir = "./src/main/ets/MainAbility" - hap_profile = "./src/main/config.json" - ets2abc = true -} -ohos_resources("pageAbilityBundleForStart_ets_resources") { - sources = [ "./src/main/resources" ] - hap_profile = "./src/main/config.json" + + js_build_mode = "release" + sdk_home = "//prebuilts/ohos-sdk/linux" + sdk_type_name = [ "sdk.dir" ] + assemble_type = "assembleHap" + build_level = "module" + build_modules = [ "entry" ] } diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/build-profile.json5 b/tools/test/resource/aa/pageAbilityBundleForStart/build-profile.json5 new file mode 100644 index 0000000000..9ac1fafde6 --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/build-profile.json5 @@ -0,0 +1,57 @@ +/* + * 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", + "compileSdkVersion": 20, + "compatibleSdkVersion": 20, + "runtimeOS": "OpenHarmony", + "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/tools/test/resource/aa/pageAbilityBundleForStart/entry/build-profile.json5 b/tools/test/resource/aa/pageAbilityBundleForStart/entry/build-profile.json5 new file mode 100644 index 0000000000..b4d65d490e --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/build-profile.json5 @@ -0,0 +1,43 @@ +/* + * 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": { + }, + "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/tools/test/resource/aa/pageAbilityBundleForStart/entry/hvigorfile.ts b/tools/test/resource/aa/pageAbilityBundleForStart/entry/hvigorfile.ts new file mode 100644 index 0000000000..e4f43d5466 --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/hvigorfile.ts @@ -0,0 +1,21 @@ +/* + * 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. */ +} diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/entry/obfuscation-rules.txt b/tools/test/resource/aa/pageAbilityBundleForStart/entry/obfuscation-rules.txt new file mode 100644 index 0000000000..c1d419bdc6 --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/obfuscation-rules.txt @@ -0,0 +1,36 @@ +# 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. + +# 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/tools/test/resource/aa/pageAbilityBundleForStart/src/main/ets/MainAbility/app.ets b/tools/test/resource/aa/pageAbilityBundleForStart/entry/oh-package.json5 similarity index 70% rename from tools/test/resource/aa/pageAbilityBundleForStart/src/main/ets/MainAbility/app.ets rename to tools/test/resource/aa/pageAbilityBundleForStart/entry/oh-package.json5 index cebf2a4504..4bf3e2a9b1 100644 --- a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/ets/MainAbility/app.ets +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/oh-package.json5 @@ -1,23 +1,25 @@ -/* - * Copyright (c) 2022 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. - */ - -export default { - onCreate() { - console.info('Application onCreate') - }, - onDestroy() { - console.info('Application onDestroy') - }, -} +/* + * 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/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/ets/MainAbility/app.ets b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/ets/MainAbility/app.ets new file mode 100644 index 0000000000..1d15991a68 --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/ets/MainAbility/app.ets @@ -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. + */ + +import { common, UIAbility, Want } from '@kit.AbilityKit'; +import { hilog } from '@kit.PerformanceAnalysisKit'; +import { window } from '@kit.ArkUI'; + +export default class app extends UIAbility { + onCreate(): void { + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate'); + } + + onDestroy(): void { + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy'); + } + + onWindowStageCreate(windowStage: window.WindowStage): void { + // Main window is created, set main page for this ability + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); + + windowStage.loadContent('pages/Index', (err) => { + if (err.code) { + hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); + return; + } + hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.'); + }); + } + + onWindowStageDestroy(): void { + // Main window is destroyed, release UI related resources + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); + } + + onForeground(): void { + // Ability has brought to foreground + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground'); + } + + onBackground(): void { + // Ability has back to background + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground'); + } +} diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/ets/pages/Index.ets b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/ets/pages/Index.ets new file mode 100644 index 0000000000..a524a899a5 --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/ets/pages/Index.ets @@ -0,0 +1,35 @@ +/* + * 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(50) + .fontWeight(FontWeight.Bold) + .alignRules({ + center: { anchor: '__container__', align: VerticalAlign.Center }, + middle: { anchor: '__container__', align: HorizontalAlign.Center } + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/module.json5 b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/module.json5 new file mode 100644 index 0000000000..1a1ae6935a --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/module.json5 @@ -0,0 +1,52 @@ +/* + * 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:entry_desc", + "mainElement": "MainAbility", + "deviceTypes": [ + "default", + "tablet" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:main_pages", + "abilities": [ + { + "name": "app", + "srcEntry": "./ets/MainAbility/app.ets", + "description": "$string:MainAbility_desc", + "icon": "$media:icon", + "label": "$string:MainAbility_label", + "startWindowIcon": "$media:startIcon", + "startWindowBackground": "$color:start_window_background", + "exported": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/resources/base/element/color.json b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/element/color.json similarity index 58% rename from tools/test/resource/aa/pageAbilityBundleForStart/src/main/resources/base/element/color.json rename to tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/element/color.json index 1bbc9aa961..3c712962da 100644 --- a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/resources/base/element/color.json +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/element/color.json @@ -1,7 +1,7 @@ { "color": [ { - "name": "white", + "name": "start_window_background", "value": "#FFFFFF" } ] diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/resources/base/element/string.json b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/element/string.json similarity index 79% rename from tools/test/resource/aa/pageAbilityBundleForStart/src/main/resources/base/element/string.json rename to tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/element/string.json index 490210a390..5ea96607cc 100644 --- a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/resources/base/element/string.json +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/element/string.json @@ -11,6 +11,10 @@ { "name": "MainAbility_label", "value": "label" + }, + { + "name": "app_name", + "value": "label" } ] } \ No newline at end of file diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/resources/base/media/icon.png b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/media/icon.png similarity index 100% rename from tools/test/resource/aa/pageAbilityBundleForStart/src/main/resources/base/media/icon.png rename to tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/media/icon.png diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/media/startIcon.png b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/media/startIcon.png new file mode 100644 index 0000000000..205ad8b5a8 Binary files /dev/null and b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/media/startIcon.png differ diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/profile/main_pages.json b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/profile/main_pages.json new file mode 100644 index 0000000000..1898d94f58 --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/entry/src/main/resources/base/profile/main_pages.json @@ -0,0 +1,5 @@ +{ + "src": [ + "pages/Index" + ] +} diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/hvigor/hvigor-config.json5 b/tools/test/resource/aa/pageAbilityBundleForStart/hvigor/hvigor-config.json5 new file mode 100644 index 0000000000..c61d3eed60 --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/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" | 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 */ + }, + "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/tools/test/resource/aa/pageAbilityBundleForStart/hvigorfile.ts b/tools/test/resource/aa/pageAbilityBundleForStart/hvigorfile.ts new file mode 100644 index 0000000000..2a5e543f19 --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/hvigorfile.ts @@ -0,0 +1,21 @@ +/* + * 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. */ +} diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/oh-package.json5 b/tools/test/resource/aa/pageAbilityBundleForStart/oh-package.json5 new file mode 100644 index 0000000000..4c8bad9bdb --- /dev/null +++ b/tools/test/resource/aa/pageAbilityBundleForStart/oh-package.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. + */ + +{ + "modelVersion": "5.0.0", + "description": "Please describe the basic information.", + "dependencies": { + }, + "devDependencies": { + "@ohos/hypium": "1.0.19", + "@ohos/hamock": "1.0.0" + } +} diff --git a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/config.json b/tools/test/resource/aa/pageAbilityBundleForStart/src/main/config.json deleted file mode 100644 index 378036a163..0000000000 --- a/tools/test/resource/aa/pageAbilityBundleForStart/src/main/config.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "app": { - "bundleName": "com.ohos.tools.pageAbilityBundleForStart", - "vendor": "ohos", - "version": { - "code": 1000000, - "name": "1.0.0" - }, - "apiVersion": { - "compatible": 8, - "releaseType": "Betal", - "target": 8 - } - }, - "deviceConfig": {}, - "module": { - "package": "com.ohos.tools.pageAbilityForStart", - "name": ".MyApplication", - "mainAbility": ".MainAbility", - "deviceType": [ - "tablet", - "default", - "tv", - "car", - "2in1" - ], - "distro": { - "deliveryWithInstall": true, - "moduleName": "entry", - "moduleType": "entry", - "installationFree": false - }, - "abilities": [ - { - "skills": [ - { - "entities": [ - "entity.system.home" - ], - "actions": [ - "action.system.home" - ] - } - ], - "orientation": "unspecified", - "formsEnabled": false, - "name": ".MainAbility", - "srcLanguage": "ets", - "srcPath": "MainAbility", - "icon": "$media:icon", - "description": "$string:MainAbility_desc", - "label": "$string:MainAbility_label", - "type": "page", - "visible": true, - "launchType": "standard" - } - ], - "js": [ - { - "mode": { - "syntax": "ets", - "type": "pageAbility" - }, - "pages": [ - "pages/index" - ], - "name": ".MainAbility", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - } - ] - } -}