diff --git a/bundle.json b/bundle.json index 1362bcb17..3e762e0ae 100644 --- a/bundle.json +++ b/bundle.json @@ -89,8 +89,7 @@ "//base/telephony/core_service/frameworks/cj/telephony_sim:cj_sim_ffi", "//base/telephony/core_service/frameworks/js/network_search:radio", "//base/telephony/core_service/frameworks/js/sim:sim", - "//base/telephony/core_service/frameworks/js/vcard:vcard", - "//base/telephony/core_service/frameworks/js/esim:esim" + "//base/telephony/core_service/frameworks/js/vcard:vcard" ], "service_group": [ "//base/telephony/core_service:tel_core_service", diff --git a/frameworks/js/sim/BUILD.gn b/frameworks/js/sim/BUILD.gn index 1746aba27..3d33e20fd 100755 --- a/frameworks/js/sim/BUILD.gn +++ b/frameworks/js/sim/BUILD.gn @@ -12,6 +12,7 @@ # limitations under the License. import("//build/ohos.gni") SUBSYSTEM_DIR = "../../../../" +import("$SUBSYSTEM_DIR/core_service/telephony_core_service.gni") ohos_shared_library("sim") { sanitize = { cfi = true @@ -38,6 +39,10 @@ ohos_shared_library("sim") { "$SUBSYSTEM_DIR/core_service/utils:libtel_common", ] + if (core_service_support_esim) { + deps += [ "$SUBSYSTEM_DIR/core_service/frameworks/js/esim:esim" ] + } + external_deps = [ "ability_runtime:abilitykit_native", "c_utils:utils",