diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/app.json5 b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/app.json5 new file mode 100644 index 0000000000000000000000000000000000000000..5073a40fb91b46de4081e469bfbd8075a0456472 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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.system.hiworld.examples1", + "vendor": "example", + "versionCode": 1, + "versionName": "1.0", + "icon": "$media:app_layered_image", + "label": "$string:app_name" + } +} diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/element/string.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..2b62045b8026b375cd54e9b6a2d2e40c506af285 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "com.system.hiworld.examples1" + } + ] +} diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/media/app_background.png b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/media/app_background.png new file mode 100644 index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f Binary files /dev/null and b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/media/app_background.png differ diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/media/app_foreground.png b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/media/app_foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..eb9427585b36d14b12477435b6419d1f07b3e0bb Binary files /dev/null and b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/media/app_foreground.png differ diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/media/app_layered_image.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/media/app_layered_image.json new file mode 100644 index 0000000000000000000000000000000000000000..b71c16122943f248ace0f5fa26da38b71dbdbdde --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/AppScope/resources/base/media/app_layered_image.json @@ -0,0 +1,7 @@ +{ + "layered-image": + { + "background" : "$media:app_background", + "foreground" : "$media:app_foreground" + } +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/BUILD.gn b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/BUILD.gn old mode 100755 new mode 100644 index 733b8469a6a014756e15662ddc3d749750016a4e..0c350f7706912da79e390e8d5ade7a74acfd90d3 --- a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/BUILD.gn +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. +# Copyright (c) 2022-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 @@ -14,22 +14,10 @@ import("//build/ohos.gni") import("../../../../../appexecfwk.gni") -ohos_hap("bmsSystemBundle1") { - hap_profile = "./src/main/config.json" +ohos_app("bmsSystemBundle1") { hap_name = "bmsSystemBundle1" subsystem_name = "bundlemanager" - final_hap_path = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/stSystemBundle/${hap_name}.hap" + hap_out_dir = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/stSystemBundle" testonly = true - deps = [ - ":hjs_demo_js_assets", - ":hjs_demo_resources", - ] certificate_profile = "${bundle_framework_path}/test/sceneProject/signature/com.system.hiworld.examples1.p7b" } -ohos_js_assets("hjs_demo_js_assets") { - source_dir = "./src/main/js/default" -} -ohos_resources("hjs_demo_resources") { - sources = [ "./src/main/js/resources" ] - hap_profile = "./src/main/config.json" -} diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/build-profile.json5 b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..288c9c58314852ef5fa26e0a051a97d7dfa95048 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/build-profile.json5 @@ -0,0 +1,58 @@ +/* + * 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", + "targetSdkVersion": 20, + "compatibleSdkVersion": 20, + "compileSdkVersion": 20, + "runtimeOS": "OpenHarmony", + "buildOption": { + "strictMode": { + "caseSensitiveCheck": true, + "useNormalizedOHMUrl": true + } + } + } + ], + "buildModeSet": [ + { + "name": "debug", + }, + { + "name": "release" + } + ] + }, + "modules": [ + { + "name": "com.system.hiworld.example.h1", + "srcPath": "./entry", + "targets": [ + { + "name": "default", + "applyToProducts": [ + "default" + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/build-profile.json5 b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..b4d65d490ef6cbe22d933b9231555210f1555786 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/pages/index/index.js b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/hvigorfile.ts old mode 100755 new mode 100644 similarity index 67% rename from test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/pages/index/index.js rename to test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/hvigorfile.ts index eb5be916aa414adb35cf8541635725d702a893dc..cfa8a00f74f409d9647f55cdf270ab6aec69fe41 --- a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/pages/index/index.js +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/hvigorfile.ts @@ -1,5 +1,5 @@ /* - * 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 @@ -12,14 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -const injectRef = Object.getPrototypeOf(global) || global -injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +import { hapTasks } from '@ohos/hvigor-ohos-plugin'; export default { - data: { - title: "" - }, - onInit() { - this.title = this.$t('strings.world'); - } -} + 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/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/obfuscation-rules.txt b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/obfuscation-rules.txt new file mode 100644 index 0000000000000000000000000000000000000000..c1d419bdc6fa72c5914cc864ede925c53a2b01c5 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/app.js b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/oh-package.json5 old mode 100755 new mode 100644 similarity index 69% rename from test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/app.js rename to test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/oh-package.json5 index 6abda63f0e61d4a957e4320291c42647eb231991..88976ebd7718ec5924c11ba3cbb5e9d836f4ae45 --- a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/app.js +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/oh-package.json5 @@ -1,5 +1,5 @@ /* - * 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 @@ -12,11 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export default { - onCreate() { - console.info('AceApplication onCreate'); - }, - onDestroy() { - console.info('AceApplication onDestroy'); - } -}; + +{ + "name": "entry", + "version": "1.0.0", + "description": "Please describe the basic information.", + "main": "", + "author": "", + "license": "", + "dependencies": {} +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/ets/entryability/EntryAbility.ets b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/ets/entryability/EntryAbility.ets new file mode 100644 index 0000000000000000000000000000000000000000..b12b706076bc833e0f1c073e99881ef3b3a84004 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/ets/entryability/EntryAbility.ets @@ -0,0 +1,44 @@ +import { AbilityConstant, ConfigurationConstant, UIAbility, Want } from '@kit.AbilityKit'; +import { hilog } from '@kit.PerformanceAnalysisKit'; +import { window } from '@kit.ArkUI'; + +const DOMAIN = 0x0000; + +export default class EntryAbility extends UIAbility { + onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void { + this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET); + hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onCreate'); + } + + onDestroy(): void { + hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onDestroy'); + } + + onWindowStageCreate(windowStage: window.WindowStage): void { + // Main window is created, set main page for this ability + hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); + + windowStage.loadContent('pages/Index', (err) => { + if (err.code) { + hilog.error(DOMAIN, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err)); + return; + } + hilog.info(DOMAIN, 'testTag', 'Succeeded in loading the content.'); + }); + } + + onWindowStageDestroy(): void { + // Main window is destroyed, release UI related resources + hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); + } + + onForeground(): void { + // Ability has brought to foreground + hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onForeground'); + } + + onBackground(): void { + // Ability has back to background + hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onBackground'); + } +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/ets/pages/Index.ets b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/ets/pages/Index.ets new file mode 100644 index 0000000000000000000000000000000000000000..8e2d24ad42693fc877d51bb7820f0a9da68fa135 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/ets/pages/Index.ets @@ -0,0 +1,23 @@ +@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/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/module.json5 b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/module.json5 new file mode 100644 index 0000000000000000000000000000000000000000..1d73925e62af070c8d11a151e5ab7454f4892e87 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/module.json5 @@ -0,0 +1,45 @@ +/* + * 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": "com.system.hiworld.example.h1", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "EntryAbility", + "deviceTypes": [ + "2in1", + "tablet", + "default", + "tv" + ], + "deliveryWithInstall": true, + "pages": "$profile:main_pages", + "abilities": [ + { + "name": "bmsSystemBundle_A1", + "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", + "launchType": "singleton", + "orientation": "unspecified", + "visible": true + } + ] + } +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/element/color.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..d66f9a7d4ac61fb8d215239ab3620b7bcd77bf33 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/element/float.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/element/float.json new file mode 100644 index 0000000000000000000000000000000000000000..a8a5d404dcd8b0466194afc3aa25d90a8a327470 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/element/float.json @@ -0,0 +1,8 @@ +{ + "float": [ + { + "name": "page_text_font_size", + "value": "50fp" + } + ] +} diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/element/string.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..f94595515a99e0c828807e243494f57f09251930 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/background.png b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/background.png new file mode 100644 index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f Binary files /dev/null and b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/background.png differ diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/foreground.png b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..97014d3e10e5ff511409c378cd4255713aecd85f Binary files /dev/null and b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/foreground.png differ diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/layered_image.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/layered_image.json new file mode 100644 index 0000000000000000000000000000000000000000..fb49920440fb4d246c82f9ada275e26123a2136a --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/startIcon.png b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/startIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b Binary files /dev/null and b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/media/startIcon.png differ diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/profile/backup_config.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/profile/backup_config.json new file mode 100644 index 0000000000000000000000000000000000000000..d742c2f96e7dd0f406f499941f3147345e998f95 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/profile/backup_config.json @@ -0,0 +1,3 @@ +{ + "allowToBackupRestore": true +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/profile/main_pages.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/profile/main_pages.json new file mode 100644 index 0000000000000000000000000000000000000000..1898d94f58d6128ab712be2c68acc7c98e9ab9ce --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/base/profile/main_pages.json @@ -0,0 +1,5 @@ +{ + "src": [ + "pages/Index" + ] +} diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/dark/element/color.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/entry/src/main/resources/dark/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..438d5bc43bb23c59c210d586b96635a72da5b64a --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/hvigor/hvigor-config.json5 b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/hvigor/hvigor-config.json5 new file mode 100644 index 0000000000000000000000000000000000000000..c61d3eed60978a00d9a67b754ec36c0c9dcde929 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/hvigorfile.ts b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..e3340f07e45ddc5dcadbb87012668555def2e6e0 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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. */ +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/oh-package.json5 b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..15ec86a73e760904339e9269d493e3015429d8a2 --- /dev/null +++ b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/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.21" + } +} diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/config.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/config.json deleted file mode 100755 index d9b303451ae5fa2df541e8e96a2fd3617770d02c..0000000000000000000000000000000000000000 --- a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/config.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "app":{ - "bundleName": "com.system.hiworld.examples1", - "vendor": "example", - "version": { - "code": 1, - "name": "1.0" - }, - "apiVersion": { - "compatible": 3, - "target": 3, - "releaseType": "Release" - } - }, - "deviceConfig": { - "default": { - } - }, - "module": { - "package":"com.system.hiworld.example.h1", - "name":"bmsSystemBundle1", - "deviceType": [ - "2in1", - "tablet", - "default", - "tv", - "car" - ], - "distro": { - "deliveryWithInstall": true, - "moduleName": "testability", - "moduleType": "entry" - }, - "abilities": [{ - "name": "bmsSystemBundle_A1", - "icon": "$media:snowball", - "label": "bmsSystemBundle_A1 Ability", - "launchType": "singleton", - "orientation": "unspecified", - "type": "page", - "visible": true - } - ], - "js": [ - { - "pages": [ - "pages/index/index" - ], - "name": "default", - "window": { - "designWidth": 720, - "autoDesignWidth": true - } - } - ] - } -} diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/i18n/en-US.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/i18n/en-US.json deleted file mode 100755 index e63c70d978a3a53be988388c87182f81785e170c..0000000000000000000000000000000000000000 --- a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/i18n/en-US.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - } -} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/i18n/zh-CN.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/i18n/zh-CN.json deleted file mode 100755 index de6ee5748322f44942c1b003319d8e66c837675f..0000000000000000000000000000000000000000 --- a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/i18n/zh-CN.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界" - } -} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/pages/index/index.css b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/pages/index/index.css deleted file mode 100755 index 01ad739b27f208ff04f21924695104bd27c59df0..0000000000000000000000000000000000000000 --- a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/pages/index/index.css +++ /dev/null @@ -1,24 +0,0 @@ -/* -* 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. -*/ - -.container { - flex-direction: column; - justify-content: center; - align-items: center; -} - -.title { - font-size: 100px; -} diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/pages/index/index.hml b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/pages/index/index.hml deleted file mode 100755 index 8d0e2061b88c99c91488405f0f2ead0c77de1a9e..0000000000000000000000000000000000000000 --- a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/default/pages/index/index.hml +++ /dev/null @@ -1,20 +0,0 @@ - - -
- - {{ $t('strings.hello') }} {{ title }} - -
diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/resources/base/element/string.json b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/resources/base/element/string.json deleted file mode 100755 index ba50b57d07f5fbd3dc7694e2db9975a9247739a0..0000000000000000000000000000000000000000 --- a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/resources/base/element/string.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "string": [ - { - "name": "entry_MainAbility", - "value": "bmsfirstright" - }, - { - "name": "mainability_description", - "value": "JS_Phone_Empty Feature Ability" - } - ] -} \ No newline at end of file diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/resources/base/media/icon.png b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/resources/base/media/icon.png deleted file mode 100755 index 8966a1e3de00956d251d5c1497aa251ea7b5c49f..0000000000000000000000000000000000000000 Binary files a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/resources/base/media/icon.png and /dev/null differ diff --git a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/resources/base/media/snowball.png b/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/resources/base/media/snowball.png deleted file mode 100755 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 Binary files a/test/sceneProject/systemtest/stSystemBundle/bmsSystemBundle1/src/main/js/resources/base/media/snowball.png and /dev/null differ