From 079776808cd2490020bba4238c8b0d644db70790 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Tue, 24 Jun 2025 11:05:19 +0800 Subject: [PATCH] =?UTF-8?q?ohos.app.ability.EmbeddableUIAbility.d.ts?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=8E=A5=E5=8F=A3=E5=AF=B9=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangzezhong --- .../@ohos.app.ability.EmbeddableUIAbility.ets | 21 +++++++++++++++++++ frameworks/ets/ets/BUILD.gn | 17 +++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 frameworks/ets/ets/@ohos.app.ability.EmbeddableUIAbility.ets diff --git a/frameworks/ets/ets/@ohos.app.ability.EmbeddableUIAbility.ets b/frameworks/ets/ets/@ohos.app.ability.EmbeddableUIAbility.ets new file mode 100644 index 00000000000..6b9abf3cd47 --- /dev/null +++ b/frameworks/ets/ets/@ohos.app.ability.EmbeddableUIAbility.ets @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2024 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. + */ + +import UIAbility from './@ohos.app.ability.UIAbility'; +import type EmbeddableUIAbilityContext from './application/EmbeddableUIAbilityContext'; + +export default class EmbeddableUIAbility extends UIAbility { + context: EmbeddableUIAbilityContext; +} \ No newline at end of file diff --git a/frameworks/ets/ets/BUILD.gn b/frameworks/ets/ets/BUILD.gn index 2df745e3b9c..b8d3c8bdc8d 100644 --- a/frameworks/ets/ets/BUILD.gn +++ b/frameworks/ets/ets/BUILD.gn @@ -1001,6 +1001,22 @@ ohos_prebuilt_etc("ability_runtime_ability_abc_etc") { deps = [ ":ability_runtime_ability_abc" ] } +generate_static_abc("ability_runtime_embeddable_uiability_abc") { + base_url = "./" + files = [ "./@ohos.app.ability.EmbeddableUIAbility.ets" ] + + is_boot_abc = "True" + device_dst_file = "/system/framework/ability_runtime_embeddable_uiability_abc.abc" +} + +ohos_prebuilt_etc("ability_runtime_embeddable_uiability_abc_etc") { + source = "$target_out_dir/ability_runtime_embeddable_uiability_abc.abc" + module_install_dir = "framework" + subsystem_name = "ability" + part_name = "ability_runtime" + deps = [ ":ability_runtime_embeddable_uiability_abc" ] +} + group("ets_packages") { deps = [ ":ability_ability_application_abc_etc", @@ -1032,6 +1048,7 @@ group("ets_packages") { ":ability_runtime_configuration_constant_abc_etc", ":ability_runtime_context_abc_etc", ":ability_runtime_custom_data_abc_etc", + ":ability_runtime_embeddable_uiability_abc_etc", ":ability_runtime_environment_callback_abc_etc", ":ability_runtime_event_hub_abc_etc", ":ability_runtime_extension_ability_abc_etc", -- Gitee