From 49b117bc77a1aeeed08659452d9afe1a5dce3cc2 Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Thu, 17 Mar 2022 15:20:49 +0800 Subject: [PATCH] fix: remove redundant dependence Signed-off-by: xionglei6 --- BUILD.gn | 6 ------ src/appspawn_server.cpp | 1 - test/BUILD.gn | 2 -- test/moduletest/BUILD.gn | 2 -- test/unittest/app_spawn_server_test/BUILD.gn | 4 ---- 5 files changed, 15 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index c59f4a43..780041a9 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -22,8 +22,6 @@ config("appspawn_config") { "//utils/native/base/include", "${aafwk_path}/frameworks/kits/appkit/native/app/include", "${aafwk_path}/interfaces/innerkits/app_manager/include/appmgr", - "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core/include/bundlemgr", - "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base/include", "${appexecfwk_path}/interfaces/innerkits/libeventhandler/include", "${appexecfwk_path}/common/log/include", "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", @@ -78,8 +76,6 @@ ohos_static_library("appspawn_server") { ] external_deps = [ "ability_base:want", - "bundle_framework:appexecfwk_base", - "bundle_framework:appexecfwk_core", "hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", @@ -155,8 +151,6 @@ ohos_static_library("nwebspawn_server") { ] external_deps = [ "ability_base:want", - "bundle_framework:appexecfwk_base", - "bundle_framework:appexecfwk_core", "hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", diff --git a/src/appspawn_server.cpp b/src/appspawn_server.cpp index 0c6814d4..5337f28f 100644 --- a/src/appspawn_server.cpp +++ b/src/appspawn_server.cpp @@ -35,7 +35,6 @@ #include "hilog/log.h" #include "main_thread.h" #include "securec.h" -#include "bundle_mgr_interface.h" #include "if_system_ability_manager.h" #include "iservice_registry.h" #include "system_ability_definition.h" diff --git a/test/BUILD.gn b/test/BUILD.gn index 8bc4665d..366504d1 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -66,8 +66,6 @@ ohos_source_set("appspawn_test_source") { external_deps = [ "ability_base:want", - "bundle_framework:appexecfwk_base", - "bundle_framework:appexecfwk_core", "hiviewdfx_hilog_native:libhilog", ] } diff --git a/test/moduletest/BUILD.gn b/test/moduletest/BUILD.gn index d4fea666..edf05bef 100644 --- a/test/moduletest/BUILD.gn +++ b/test/moduletest/BUILD.gn @@ -23,7 +23,6 @@ ohos_moduletest("AppSpawnModuleTest") { "//utils/native/base/include", "//third_party/zlib/contrib/minizip", "//third_party/zlib", - "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base/include", ] configs = [ @@ -34,7 +33,6 @@ ohos_moduletest("AppSpawnModuleTest") { deps = [ "${aafwk_path}/interfaces/innerkits/app_manager:app_manager", "${aafwk_path}/services/appmgr:libams", - "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:appexecfwk_core", "${appspawn_path}/interfaces/innerkits:appspawn_socket_client", "//third_party/googletest:gtest_main", "//utils/native/base:utils", diff --git a/test/unittest/app_spawn_server_test/BUILD.gn b/test/unittest/app_spawn_server_test/BUILD.gn index 83a07f4e..67eca234 100644 --- a/test/unittest/app_spawn_server_test/BUILD.gn +++ b/test/unittest/app_spawn_server_test/BUILD.gn @@ -46,8 +46,6 @@ ohos_unittest("AppSpawnServerOverrideTest") { external_deps = [ "ability_base:want", - "bundle_framework:appexecfwk_base", - "bundle_framework:appexecfwk_core", "hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", @@ -94,8 +92,6 @@ ohos_unittest("AppSpawnServerMockTest") { external_deps = [ "ability_base:want", - "bundle_framework:appexecfwk_base", - "bundle_framework:appexecfwk_core", "hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", -- Gitee