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 0000000000000000000000000000000000000000..6b9abf3cd47db1958d44a7b440c449b799b794b4 --- /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 2df745e3b9c3e06cf072e2327adcbe0f075e75f0..b8d3c8bdc8db2347701b055a3ed79b5be9dbbff0 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",