diff --git a/interfaces/inner_api/appexecfwk_core/src/verify/verify_manager_client.cpp b/interfaces/inner_api/appexecfwk_core/src/verify/verify_manager_client.cpp index 535e69c3b13e62f4503ad1087068c44d4a58151d..65d2a34a4a6a99dabbe1b3f977d6c4ae42f45e33 100644 --- a/interfaces/inner_api/appexecfwk_core/src/verify/verify_manager_client.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/verify/verify_manager_client.cpp @@ -175,3 +175,5 @@ VerifyManagerClient& VerifyManagerClient::GetInstance() } } // namespace AppExecFwk } // namespace OHOS + + diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/AppScope/app.json5 b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/AppScope/app.json5 new file mode 100644 index 0000000000000000000000000000000000000000..d28e94d7f4a8dffb3d9cdb402e3cf3cccf0d03d3 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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.myapplication", + "vendor": "example", + "versionCode": 1000000, + "versionName": "1.0.0", + "icon": "$media:app_icon", + "label": "$string:app_name" + } +} diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/AppScope/resources/base/element/string.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/AppScope/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..d71e5ead1ce20b4ac3384d18e6d104f1ea4d83b4 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "MyApplication" + } + ] +} diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/AppScope/resources/base/media/app_icon.png b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a39445dc87828b76fed6d2ec470dd455c45319e3 Binary files /dev/null and b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/AppScope/resources/base/media/app_icon.png differ diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/BUILD.gn b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/BUILD.gn index 5b1719e9dfe115064839b8c18be601d5e130426a..cafccc6ac5fa7b3a16dc2d4b2d9d8190a6c316e9 100644 --- a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/BUILD.gn +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. +# Copyright (c) 2024-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,30 +14,20 @@ import("//build/ohos.gni") import("../../../../../../../appexecfwk.gni") -ohos_hap("version1_oneExtension_feature_hap") { - hap_profile = "src/main/module.json" +ohos_app("version1_oneExtension_feature_hap") { + certificate_profile = "signature/com.example.extension.p7b" hap_name = "version1_oneExtension_feature_hap" + hap_out_dir = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/extensionDirTest" + subsystem_name = "bundlemanager" - final_hap_path = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/extensionDirTest/${hap_name}.hap" - testonly = true - deps = [ - ":hjs_demo_js_assets", - ":hjs_demo_resources", - ] - certificate_profile = "${bundle_framework_path}/test/sceneProject/signature/extensionDirTest/com.example.extension.p7b" -} + part_name = "bundle_framework" -ohos_app_scope("bmsstagedemoOne_app_profile") { - app_profile = "../AppScope/app.json" - sources = [ "../AppScope/resources" ] + js_build_mode = "release" + sdk_home = "//prebuilts/ohos-sdk/linux" + sdk_type_name = [ "sdk.dir" ] + assemble_type = "assembleHap" + build_level = "module" + build_modules = [ "feature" ] } -ohos_resources("hjs_demo_resources") { - sources = [ "src/main/resources" ] - deps = [ ":bmsstagedemoOne_app_profile" ] - hap_profile = "src/main/module.json" -} -ohos_js_assets("hjs_demo_js_assets") { - source_dir = "src/main/ets" -} diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/build-profile.json5 b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..7d37be427c510929416c3035c0a08d8e8d287db5 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/build-profile.json5 @@ -0,0 +1,44 @@ +/* + * 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": 20, + "compileSdkVersion": 20, + "targetSdkVersion": 20, + "runtimeOS": "OpenHarmony" + } + ] + }, + "modules": [ + { + "name": "feature", + "srcPath": "./entry", + "targets": [ + { + "name": "default", + "applyToProducts": [ + "default" + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/build-profile.json5 b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..b4d65d490ef6cbe22d933b9231555210f1555786 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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/extensionDirTest/oneExtensionDir/version1/feature/entry/hvigorfile.ts b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..e4f43d54667f8327c367c8096bd08bb8c75aff54 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/obfuscation-rules.txt b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/obfuscation-rules.txt new file mode 100644 index 0000000000000000000000000000000000000000..272efb6ca3f240859091bbbfc7c5802d52793b0b --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/oh-package.json5 b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..4bf3e2a9b1ae7381cf9363dff1cbcc1861a41e7b --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/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. + */ + +{ + "name": "entry", + "version": "1.0.0", + "description": "Please describe the basic information.", + "main": "", + "author": "", + "license": "", + "dependencies": {} +} + diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/entryability/EntryAbility.ets b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/entryability/EntryAbility.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d0183acaed9193521b6aac95467d332a8a310f5 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/entryability/EntryAbility.ets @@ -0,0 +1,55 @@ +# 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 { AbilityConstant, ConfigurationConstant, UIAbility, Want } from '@kit.AbilityKit'; +import { hilog } from '@kit.PerformanceAnalysisKit'; +import { window } from '@kit.ArkUI'; + +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(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'); + } +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets new file mode 100644 index 0000000000000000000000000000000000000000..0de3c6f6f8eb4cd9b2dc6ab6b3b8964d0770065d --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets @@ -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. + +import { hilog } from '@kit.PerformanceAnalysisKit'; +import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit'; + +export default class EntryBackupAbility extends BackupExtensionAbility { + async onBackup() { + hilog.info(0x0000, 'testTag', 'onBackup ok'); + } + + async onRestore(bundleVersion: BundleVersion) { + hilog.info(0x0000, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion)); + } +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/ets/featureability/FeatureAbility.ts b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/featureability/FeatureAbility.ts similarity index 100% rename from test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/ets/featureability/FeatureAbility.ts rename to test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/featureability/FeatureAbility.ts diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/ets/pages/Index.ets b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/pages/Index.ets similarity index 100% rename from test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/ets/pages/Index.ets rename to test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/ets/pages/Index.ets diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/module.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/module.json5 similarity index 46% rename from test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/module.json rename to test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/module.json5 index 4f98c875267688bdee16cd6475ce5be97a91bc23..fdc3a3f5d8dec043002d1924dba718eda34a5ae7 100644 --- a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/module.json +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/module.json5 @@ -1,42 +1,43 @@ -{ - "module": { - "name": "feature", - "type": "feature", - "description": "$string:module_desc", - "mainElement": "FeatureAbility", - "deviceTypes": [ - "2in1", - "default", - "phone", - "tablet" - ], - "deliveryWithInstall": true, - "installationFree": false, - "pages": "$profile:main_pages", - "abilities": [ - { - "name": "FeatureAbility", - "srcEntrance": "./ets/featureability/FeatureAbility.ts", - "description": "$string:FeatureAbility_desc", - "icon": "$media:icon", - "label": "$string:FeatureAbility_label", - "startWindowIcon": "$media:icon", - "startWindowBackground": "$color:start_window_background", - "visible": true - } - ], - "extensionAbilities": [ - { - "name": "FeatureInputMethodEx1", - "srcEntry": "./ets/featureability/FeatureAbility.ts", - "label": "$string:FeatureAbility_label", - "description": "$string:FeatureAbility_desc", - "type": "form", - "dataGroupIds": [ - "test1", - "test2" - ] - } - ] - } +/* + * 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": "feature", + "type": "feature", + "description": "$string:module_desc", + "mainElement": "FeatureAbility", + "deviceTypes": [ + "2in1", + "default", + "tablet" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:main_pages", + "abilities": [ + { + "name": "FeatureAbility", + "description": "$string:FeatureAbility_desc", + "icon": "$media:icon", + "label": "$string:FeatureAbility_label", + "startWindowIcon": "$media:icon", + "startWindowBackground": "$color:start_window_background", + "visible": true, + "srcEntry": "./ets/featureability/FeatureAbility.ts" + } + ], + } } \ No newline at end of file diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/base/element/color.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/element/color.json similarity index 93% rename from test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/base/element/color.json rename to test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/element/color.json index 3c712962da3c2751c2b9ddb53559afcbd2b54a02..d66f9a7d4ac61fb8d215239ab3620b7bcd77bf33 100644 --- a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/base/element/color.json +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/element/color.json @@ -1,8 +1,8 @@ -{ - "color": [ - { - "name": "start_window_background", - "value": "#FFFFFF" - } - ] +{ + "color": [ + { + "name": "start_window_background", + "value": "#FFFFFF" + } + ] } \ No newline at end of file diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/base/element/string.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/element/string.json similarity index 100% rename from test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/base/element/string.json rename to test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/element/string.json diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/background.png b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/background.png new file mode 100644 index 0000000000000000000000000000000000000000..f939c9fa8cc8914832e602198745f592a0dfa34d Binary files /dev/null and b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/background.png differ diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/foreground.png b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..4483ddad1f079e1089d685bd204ee1cfe1d01902 Binary files /dev/null and b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/foreground.png differ diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/base/media/icon.png b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/icon.png similarity index 100% rename from test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/base/media/icon.png rename to test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/icon.png diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/layered_image.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/layered_image.json new file mode 100644 index 0000000000000000000000000000000000000000..fb49920440fb4d246c82f9ada275e26123a2136a --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/startIcon.png b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/startIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b Binary files /dev/null and b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/media/startIcon.png differ diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/profile/backup_config.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/profile/backup_config.json new file mode 100644 index 0000000000000000000000000000000000000000..d742c2f96e7dd0f406f499941f3147345e998f95 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/base/profile/main_pages.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/profile/main_pages.json similarity index 100% rename from test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/base/profile/main_pages.json rename to test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/base/profile/main_pages.json diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/dark/element/color.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/dark/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..438d5bc43bb23c59c210d586b96635a72da5b64a --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/en_US/element/string.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/en_US/element/string.json similarity index 100% rename from test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/en_US/element/string.json rename to test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/en_US/element/string.json diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/zh_CN/element/string.json b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/zh_CN/element/string.json similarity index 100% rename from test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/src/main/resources/zh_CN/element/string.json rename to test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/entry/src/main/resources/zh_CN/element/string.json diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/hvigor/hvigor-config.json5 b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/hvigor/hvigor-config.json5 new file mode 100644 index 0000000000000000000000000000000000000000..b839e9394547af5fced4e6e694d628c9a12b5b35 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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/extensionDirTest/oneExtensionDir/version1/feature/hvigorfile.ts b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..2a5e543f190732c159beb574dfc9fa37bc94e156 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/oh-package-lock.json5 b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/oh-package-lock.json5 new file mode 100644 index 0000000000000000000000000000000000000000..9db0bd9b4f96e6dc80f7f04fe50c13715b9879e8 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/oh-package-lock.json5 @@ -0,0 +1,42 @@ +/* + * 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. + */ + +{ + "meta": { + "stableOrder": true + }, + "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.19": "@ohos/hypium@1.0.19" + }, + "packages": { + "@ohos/hamock@1.0.0": { + "name": "@ohos/hamock", + "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.19": { + "name": "@ohos/hypium", + "version": "1.0.19", + "integrity": "sha512-cEjDgLFCm3cWZDeRXk7agBUkPqjWxUo6AQeiu0gEkb3J8ESqlduQLSIXeo3cCsm8U/asL7iKjF85ZyOuufAGSQ==", + "resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hypium/-/hypium-1.0.19.har", + "registryType": "ohpm" + } + } +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/oh-package.json5 b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..4c8bad9bdbdd8da17793a0e43f29d9e7232dce00 --- /dev/null +++ b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/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/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/signature/com.example.extension.p7b b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/signature/com.example.extension.p7b new file mode 100644 index 0000000000000000000000000000000000000000..2574be87530eb5a3829e98eb366f3780f9e2a07f Binary files /dev/null and b/test/sceneProject/systemtest/extensionDirTest/oneExtensionDir/version1/feature/signature/com.example.extension.p7b differ