From 8e810a7d6219638a00a62cf1a42ede96aa26d623 Mon Sep 17 00:00:00 2001 From: Denis Slynko Date: Sat, 13 Sep 2025 16:29:47 +0300 Subject: [PATCH] [ANI] Remove deprecated mangling Issue: #ICXUTL Change-Id: I4062d6a07a31ee1e72958bb80f7521b7ff67b466 Signed-off-by: Denis Slynko --- frameworks/ets/ani/src/bridge.rs | 6 +++--- frameworks/ets/ani/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/ets/ani/src/bridge.rs b/frameworks/ets/ani/src/bridge.rs index 69786bd7..85246c2f 100644 --- a/frameworks/ets/ani/src/bridge.rs +++ b/frameworks/ets/ani/src/bridge.rs @@ -13,7 +13,7 @@ use ani_rs::ani; -#[ani_rs::ani(path = "L@ohos/telephony/data/data/DataConnectState")] +#[ani_rs::ani(path = "@ohos.telephony.data.data.DataConnectState")] #[repr(i32)] pub enum DataConnectState { DataStateUnknown = -1, @@ -27,7 +27,7 @@ pub enum DataConnectState { DataStateSuspended = 3, } -#[ani_rs::ani(path = "L@ohos/telephony/data/data/DataFlowType")] +#[ani_rs::ani(path = "@ohos.telephony.data.data.DataFlowType")] #[repr(i32)] pub enum DataFlowType { DataFlowTypeNone = 0, @@ -37,7 +37,7 @@ pub enum DataFlowType { DataFlowTypeDormant = 4, } -#[ani_rs::ani(path = "L@ohos/telephony/data/data/ApnInfo")] +#[ani_rs::ani(path = "@ohos.telephony.data.data.ApnInfo")] pub struct ApnInfo { pub apnName: String, pub apn: String, diff --git a/frameworks/ets/ani/src/lib.rs b/frameworks/ets/ani/src/lib.rs index 9c2ff649..821f68af 100644 --- a/frameworks/ets/ani/src/lib.rs +++ b/frameworks/ets/ani/src/lib.rs @@ -18,7 +18,7 @@ mod wrapper; use ani_rs::ani_constructor; ani_constructor!( - namespace "L@ohos/telephony/data/data" + namespace "@ohos.telephony.data.data" [ "nativeIsCellularDataEnabled": cellulardata::is_cellulardata_enabled_sync, "nativeEnableCellularData": cellulardata::enable_cellular_data_sync, -- Gitee