diff --git a/services/bundlemgr/src/aging/aging_handler_chain.cpp b/services/bundlemgr/src/aging/aging_handler_chain.cpp index e560be399eaa73a1d992bf98404cb346ed69b933..1285a450be2dd5a1e9f9ce3a6edb773a05ac54ba 100644 --- a/services/bundlemgr/src/aging/aging_handler_chain.cpp +++ b/services/bundlemgr/src/aging/aging_handler_chain.cpp @@ -38,7 +38,7 @@ void AgingHandlerChain::AddHandler(const std::shared_ptr &handler) APP_LOGE("agingHandler: invalid handler"); return; } - + APP_LOGE("TEST"); handlers_.emplace_back(handler); } diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/AppScope/app.json b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/AppScope/app.json deleted file mode 100644 index 7310b3d64f3c36b0730a1d4391ba17203756b669..0000000000000000000000000000000000000000 --- a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/AppScope/app.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "app": { - "apiReleaseType": "Release", - "bundleName": "com.example.hapNotIncludeso1", - "debug": true, - "icon": "$media:app_icon", - "iconId": 16777217, - "label": "$string:app_name", - "labelId": 16777216, - "minAPIVersion": 9, - "targetAPIVersion": 16, - "vendor": "example", - "versionCode": 1000000, - "versionName": "1.0.0" - } -} diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/ets/MainAbility/GlobalContext.ts b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/AppScope/app.json5 similarity index 50% rename from test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/ets/MainAbility/GlobalContext.ts rename to test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/AppScope/app.json5 index 0a0a885f3e2610c79645c247880b0675dc905ad8..c401eadfb73f47ecfabceeaf3d56e91390b84ab7 100644 --- a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/ets/MainAbility/GlobalContext.ts +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/AppScope/app.json5 @@ -1,28 +1,29 @@ -/* - * Copyright (c) 2023 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 {Core} from "deccjsunit/index.ets" -import testsuite from "../../test/List.test.ets" - -export default class GlobalContext { - constructor(){ - } - globalContext(core:Core) { - const configService = core.getDefaultService('config') - console.info('parameters---->' + JSON.stringify(globalThis.abilityWant.parameters)) - globalThis.abilityWant.parameters.timeout = 70000; - configService.setConfig(globalThis.abilityWant.parameters) - testsuite(globalThis.abilityContext) - } -} \ No newline at end of file +/* + * 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": { + "apiReleaseType": "Release1", + "bundleName": "com.example.hapNotincludeso1", + "debug": true, + "icon": "$media:app_icon", + "label": "$string:app_name", + "minAPIVersion": 9, + "targetAPIVersion": 16, + "vendor": "example", + "versionCode": 1000000, + "versionName": "1.0.0" + } +} diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/AppScope/resources/base/media/app_icon.png b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c Binary files /dev/null and b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/AppScope/resources/base/media/app_icon.png differ diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/BUILD.gn b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/BUILD.gn index ff88beb5626214f344eba32891065ef8b399a0ca..0d2ab500a4887721cc6952f13f8d1bd6d3af1c3c 100644 --- a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/BUILD.gn +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. +# Copyright (c) 2023-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,18 @@ import("//build/ohos.gni") import("../../../../../appexecfwk.gni") -ohos_hap("hapNotIncludeso1") { - hap_profile = "entry/src/main/module.json" +ohos_app("hapNotIncludeso1") { + certificate_profile = "signature/openharmony.p7b" hap_name = "hapNotIncludeso1" - subsystem_name = "bundlemanager" - final_hap_path = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/testHapNoSo/${hap_name}.hap" - testonly = true - deps = [ - ":hjs_demo_js_assets", - ":hjs_demo_resources", - ] - certificate_profile = "${bundle_framework_path}/test/sceneProject/signature/com.example.hapNotIncludeso1.p7b" -} - -ohos_app_scope("bmsstagedemoone_app_profile") { - app_profile = "AppScope/app.json" - sources = [ "AppScope/resources" ] -} + hap_out_dir = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/testHapNoSo" -ohos_js_assets("hjs_demo_js_assets") { - source_dir = "entry/src/main/ets" -} + subsystem_name = "bundlemanager" + part_name = "bundle_framework" -ohos_resources("hjs_demo_resources") { - sources = [ "entry/src/main/resources" ] - deps = [ ":bmsstagedemoone_app_profile" ] - hap_profile = "entry/src/main/module.json" + js_build_mode = "release" + sdk_home = "//prebuilts/ohos-sdk/linux" + sdk_type_name = [ "sdk.dir" ] + assemble_type = "assembleHar" + build_level = "module" + build_modules = [ "entry_A" ] } diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/build-profile.json5 b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..3a012dbfc336f37fc13a85b644f4e1ca97def2e0 --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/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": "entry_A", + "srcPath": "./entry", + "targets": [ + { + "name": "default", + "applyToProducts": [ + "default" + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/build-profile.json5 b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..b4d65d490ef6cbe22d933b9231555210f1555786 --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/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/testHapNoSo/hapNotIncludeso1/entry/hvigorfile.ts b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..e4f43d54667f8327c367c8096bd08bb8c75aff54 --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/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/testHapNoSo/hapNotIncludeso1/entry/obfuscation-rules.txt b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/obfuscation-rules.txt new file mode 100644 index 0000000000000000000000000000000000000000..272efb6ca3f240859091bbbfc7c5802d52793b0b --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/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/testHapNoSo/hapNotIncludeso1/entry/oh-package.json5 b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..46f65e9d0af75d27e755e382376c6fbd263d831c --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/oh-package.json5 @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +{ + "name": "entry_a", + "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/testHapNoSo/hapNotIncludeso1/entry/src/main/ets/pages/index/index.ets b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/ets/pages/index/index.ets index 5fd7e4ec1f5121493728ebee1d7d7ddfece4a382..f6259ced40b372146cad6c12fcd3c842b2e233e4 100644 --- a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/ets/pages/index/index.ets +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/ets/pages/index/index.ets @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-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,31 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import file from '@system.file'; - -import {Core, ExpectExtend, InstrumentLog, ReportExtend} from "deccjsunit/index.ets" -import GlobalContext from "../MainAbility/GlobalContext.ts" - @Entry @Component struct Index { aboutToAppear(){ console.info("start run testcase!!!!") - const core:Core = Core.getInstance() - const expectExtend:ExpectExtend = new ExpectExtend({ - id: 'extend' - }) - core.addService('expect', expectExtend) - const reportExtend:ReportExtend = new ReportExtend(file) - - core.addService('report', reportExtend) - core.init() - core.subscribeEvent('task', reportExtend) - - const globalContext:GlobalContext = new GlobalContext() - globalContext.globalContext(core) - core.execute() } build() { diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/module.json b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/module.json deleted file mode 100644 index 6d8692fa6057911f0f7581ed6c0b8af6628e26dd..0000000000000000000000000000000000000000 --- a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/module.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "module": { - "abilities": [ - { - "description": "$string:MainAbility_desc", - "descriptionId": 16777218, - "icon": "$media:icon", - "iconId": 16777221, - "label": "$string:MainAbility_label", - "labelId": 16777219, - "name": "MainAbility", - "skills": [ - { - "actions": [ - "action.system.home" - ], - "entities": [ - "entity.system.home" - ] - } - ], - "srcEntry": "./ets/MainAbility/MainAbility.ts", - "exported": true - } - ], - "deliveryWithInstall": true, - "description": "$string:entry_desc", - "descriptionId": 16777220, - "deviceTypes": [ - "2in1", - "tablet", - "default" - ], - "installationFree": false, - "mainElement": "MainAbility", - "name": "entry_A", - "pages": "$profile:main_pages", - "srcEntry": "./ets/Application/AbilityStage.ts", - "type": "feature", - "virtualMachine": "ark", - "compressNativeLibs": false, - "extractNativeLibs": false, - "libIsolation": false - } -} \ No newline at end of file diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/module.json5 b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/module.json5 new file mode 100644 index 0000000000000000000000000000000000000000..5978fa453af2828eafac08bf82ea19c9caee5bf8 --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/module.json5 @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +{ + "module": { + "abilities": [ + { + "description": "$string:MainAbility_desc", + "icon": "$media:icon", + "label": "$string:MainAbility_label", + "startWindowIcon": "$media:startIcon", + "startWindowBackground": "$color:start_window_background", + "name": "MainAbility", + "skills": [ + { + "actions": [ + "action.system.home" + ], + "entities": [ + "entity.system.home" + ] + } + ], + "srcEntry": "./ets/MainAbility/MainAbility.ts", + "exported": true + } + ], + "deliveryWithInstall": true, + "description": "$string:entry_desc", + "deviceTypes": [ + "tablet", + "default" + ], + "installationFree": false, + "mainElement": "MainAbility", + "name": "entry_A", + "pages": "$profile:main_pages", + "type": "feature", + "virtualMachine": "ark", + "compressNativeLibs": false, + "extractNativeLibs": false, + "libIsolation": false + } +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/resources/base/element/color.json b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/resources/base/element/color.json index da3f48e2475c66fad5b23feb535379244be849cf..5aa3d598f59497024e89ac47c0d14ccb209fb8c1 100644 --- a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/resources/base/element/color.json +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/resources/base/element/color.json @@ -1,8 +1,12 @@ { - "color": [ - { - "name": "icon", - "value": "#99999999" - } - ] + "color": [ + { + "name": "start_window_background", + "value": "#FFFFFF" + }, + { + "name": "icon", + "value": "#99999999" + } + ] } diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/resources/base/media/startIcon.png b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/resources/base/media/startIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b Binary files /dev/null and b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/resources/base/media/startIcon.png differ diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/resources/dark/element/color.json b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/entry/src/main/resources/dark/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..438d5bc43bb23c59c210d586b96635a72da5b64a --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/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/testHapNoSo/hapNotIncludeso1/hvigor/hvigor-config.json5 b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/hvigor/hvigor-config.json5 new file mode 100644 index 0000000000000000000000000000000000000000..c61d3eed60978a00d9a67b754ec36c0c9dcde929 --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/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/testHapNoSo/hapNotIncludeso1/hvigorfile.ts b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..2a5e543f190732c159beb574dfc9fa37bc94e156 --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/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/testHapNoSo/hapNotIncludeso1/oh-package-lock.json5 b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/oh-package-lock.json5 new file mode 100644 index 0000000000000000000000000000000000000000..481ff7da55052f3fa4f05892d25646ede1f142f2 --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/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.21": "@ohos/hypium@1.0.21" + }, + "packages": { + "@ohos/hamock@1.0.0": { + "name": "@ohos/hamock", + "version": "1.0.0", + "integrity": "sha512-K6lDPYc6VkKe6ZBNQa9aoG+ZZMiwqfcR/7yAVFSUGIuOAhPvCJAo9+t1fZnpe0dBRBPxj2bxPPbKh69VuyAtDg==", + "resolved": "https://repo.harmonyos.com/ohpm/@ohos/hamock/-/hamock-1.0.0.har", + "registryType": "ohpm" + }, + "@ohos/hypium@1.0.21": { + "name": "@ohos/hypium", + "version": "1.0.21", + "integrity": "sha512-iyKGMXxE+9PpCkqEwu0VykN/7hNpb+QOeIuHwkmZnxOpI+dFZt6yhPB7k89EgV1MiSK/ieV/hMjr5Z2mWwRfMQ==", + "resolved": "https://repo.harmonyos.com/ohpm/@ohos/hypium/-/hypium-1.0.21.har", + "registryType": "ohpm" + } + } +} \ No newline at end of file diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/oh-package.json5 b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..1b3c765c42e79ebfb3da99db65c8f99f2c4cae7c --- /dev/null +++ b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/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.21", + "@ohos/hamock": "1.0.0" + } +} diff --git a/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/signature/openharmony.p7b b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/signature/openharmony.p7b new file mode 100644 index 0000000000000000000000000000000000000000..a2933f44d4a794627c2ac18fec1fd662e08214e8 Binary files /dev/null and b/test/sceneProject/systemtest/testHapNoSo/hapNotIncludeso1/signature/openharmony.p7b differ