From e2335c5aa886d28bf03c62cb1bf9cb97f1eb96b1 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Tue, 20 May 2025 10:42:00 +0800 Subject: [PATCH 1/2] add ani dialogRequest Signed-off-by: zhangzezhong --- .../ets/@ohos.app.ability.dialogRequest.ets | 22 +++++++++++++++++++ frameworks/ets/ets/BUILD.gn | 16 ++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 frameworks/ets/ets/@ohos.app.ability.dialogRequest.ets 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 00000000000..c4d26af6056 --- /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 ae9a2fc41a8..69f65b36378 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", ] } -- Gitee From 0ac457eb30e77d6b5788d9bd9acd46f5086ebe24 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Mon, 26 May 2025 21:09:41 +0800 Subject: [PATCH 2/2] ani add AbilityFirstFrameStateData Signed-off-by: zhangzezhong --- frameworks/ets/ets/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/ets/ets/BUILD.gn b/frameworks/ets/ets/BUILD.gn index 69f65b36378..1f33ce1e98e 100644 --- a/frameworks/ets/ets/BUILD.gn +++ b/frameworks/ets/ets/BUILD.gn @@ -866,4 +866,4 @@ group("ets_packages") { ":ability_runtime_OpenLink_Options_abc_etc", ":ability_runtime_dialog_Request_abc_etc", ] -} +} \ No newline at end of file -- Gitee