From 421e1f1efdaf771890df05db046bf317d404373f Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Thu, 26 Jun 2025 14:06:19 +0800 Subject: [PATCH] =?UTF-8?q?MultiAppMode.d.ts=E6=96=87=E4=BB=B6enum?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangzezhong --- frameworks/ets/ets/BUILD.gn | 17 +++++++++++++++++ .../ets/ets/application/MultiAppMode.ets | 19 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 frameworks/ets/ets/application/MultiAppMode.ets diff --git a/frameworks/ets/ets/BUILD.gn b/frameworks/ets/ets/BUILD.gn index 799dbd505d4..38b8bb3f35b 100644 --- a/frameworks/ets/ets/BUILD.gn +++ b/frameworks/ets/ets/BUILD.gn @@ -454,6 +454,22 @@ ohos_prebuilt_etc("ability_runtime_ability_stage_context_abc_etc") { deps = [ ":ability_runtime_ability_stage_context_abc" ] } +generate_static_abc("ability_runtime_multi_app_mode_abc") { + base_url = "./" + files = [ "./application/MultiAppMode.ets" ] + + is_boot_abc = "True" + device_dst_file = "/system/framework/ability_runtime_multi_app_mode_abc.abc" +} + +ohos_prebuilt_etc("ability_runtime_multi_app_mode_abc_etc") { + source = "$target_out_dir/ability_runtime_multi_app_mode_abc.abc" + module_install_dir = "framework" + subsystem_name = "ability" + part_name = "ability_runtime" + deps = [ ":ability_runtime_multi_app_mode_abc" ] +} + group("ets_packages") { deps = [ ":ability_delegator_abc_etc", @@ -474,6 +490,7 @@ group("ets_packages") { ":ability_runtime_configuration_constant_abc_etc", ":ability_runtime_context_abc_etc", ":ability_runtime_extension_context_abc_etc", + ":ability_runtime_multi_app_mode_abc_etc", ":ability_runtime_start_options_abc_etc", ":ability_runtime_want_abc_etc", ":ability_runtime_want_constant_abc_etc", diff --git a/frameworks/ets/ets/application/MultiAppMode.ets b/frameworks/ets/ets/application/MultiAppMode.ets new file mode 100644 index 00000000000..81b147805e1 --- /dev/null +++ b/frameworks/ets/ets/application/MultiAppMode.ets @@ -0,0 +1,19 @@ +/* + * 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. + */ +export enum MultiAppMode { + NOT_SUPPORTED = 0, + MULTI_INSTANCE = 1, + APP_CLONE = 2 +} -- Gitee