diff --git a/frameworks/ets/ets/@ohos.app.ability.dialogRequest.ets b/frameworks/ets/ets/@ohos.app.ability.dialogRequest.ets new file mode 100644 index 0000000000000000000000000000000000000000..c4d26af60565991e3f9eb518cb81dd2e9f0fcb78 --- /dev/null +++ b/frameworks/ets/ets/@ohos.app.ability.dialogRequest.ets @@ -0,0 +1,22 @@ +/* + * 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. + */ + +namespace dialogRequest { + export enum ResultCode { + RESULT_OK = 0, + RESULT_CANCEL = 1 + } +} +export default dialogRequest; \ No newline at end of file diff --git a/frameworks/ets/ets/BUILD.gn b/frameworks/ets/ets/BUILD.gn index ae9a2fc41a8f842691e9361c2f8754eadd4a9fb2..1f33ce1e98effd596ecf305a295567527429848e 100644 --- a/frameworks/ets/ets/BUILD.gn +++ b/frameworks/ets/ets/BUILD.gn @@ -800,6 +800,21 @@ ohos_prebuilt_etc("ability_runtime_insight_intent_executor_abc_etc") { deps = [ ":ability_runtime_insight_intent_executor_abc" ] } +generate_static_abc("ability_runtime_dialog_Request_abc") { + base_url = "./" + files = [ "./@ohos.app.ability.dialogRequest.ets" ] + is_boot_abc = "True" + device_dst_file = "/system/framework/ability_runtime_dialog_Request_abc.abc" +} + +ohos_prebuilt_etc("ability_runtime_dialog_Request_abc_etc") { + source = "$target_out_dir/ability_runtime_dialog_Request_abc.abc" + module_install_dir = "framework" + subsystem_name = "ability" + part_name = "ability_runtime" + deps = [ ":ability_runtime_dialog_Request_abc" ] +} + group("ets_packages") { deps = [ ":ability_ability_application_abc_etc", @@ -849,5 +864,6 @@ group("ets_packages") { ":service_extension_ability_abc_etc", ":ui_extension_ability_ani_etc", ":ability_runtime_OpenLink_Options_abc_etc", + ":ability_runtime_dialog_Request_abc_etc", ] -} +} \ No newline at end of file