diff --git a/frameworks/ans/core/common/include/ans_const_define.h b/frameworks/ans/core/common/include/ans_const_define.h index 9d842d285bdde4f22acb818e398e2f356fd4ad90..fb7c0164385e6f1de5e204d1d9f49ecc191ec064 100644 --- a/frameworks/ans/core/common/include/ans_const_define.h +++ b/frameworks/ans/core/common/include/ans_const_define.h @@ -45,7 +45,7 @@ const static Uri DEFAULT_NOTIFICATION_SOUND("file://system/etc/Light.ogg"); const static std::vector DEFAULT_NOTIFICATION_VIBRATION = {200}; // Default path for template -const static std::string DEFAULT_TEMPLATE_PATH("/system/etc/NotificationTemplate/external.json"); +const static std::string DEFAULT_TEMPLATE_PATH("/system/etc/notification_template/external.json"); #ifdef DISTRIBUTED_NOTIFICATION_SUPPORTED constexpr NotificationConstant::DistributedReminderPolicy DEFAULT_DISTRIBUTED_REMINDER_POLICY = diff --git a/services/ans/BUILD.gn b/services/ans/BUILD.gn index 34a8673a568fe3ecd161ac80f1604eb7f77ec415..5be34aa117e72040413f999f911eed2dbe46655f 100644 --- a/services/ans/BUILD.gn +++ b/services/ans/BUILD.gn @@ -54,6 +54,7 @@ ohos_shared_library("libans") { defines = [] deps = [ + ":external.json", "${core_path}:ans_core", "${frameworks_path}/ans/dialog/dialog_ui/js:dialog_js_files_etc", "${frameworks_path}/ans/native:ans_innerkits", @@ -88,3 +89,11 @@ ohos_shared_library("libans") { subsystem_name = "notification" part_name = "ans_standard" } + +ohos_prebuilt_etc("external.json") { + source = + "//base/notification/ans_standard/services/ans/resource/external.json" + relative_install_dir = "notification_template" + subsystem_name = "notification" + part_name = "ans_standard" +} diff --git a/services/ans/resource/external.json b/services/ans/resource/external.json new file mode 100644 index 0000000000000000000000000000000000000000..7eb2533f4e88864def8271afa25c0e5c69f45c0f --- /dev/null +++ b/services/ans/resource/external.json @@ -0,0 +1,3 @@ +{ + "downloadTemplate": "/system/etc/notification_template/assets/js/downloadTemplate.js" +} \ No newline at end of file