From 36d1988ff964ec40ec57f7674d03d7d5bd4f99db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=98=E7=BD=97=E5=AE=87?= Date: Tue, 11 Mar 2025 16:44:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:OTA=E5=BC=82=E5=B8=B8=E5=9B=9E?= =?UTF-8?q?=E6=BB=9A=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 甘罗宇 --- OAT.xml | 1 + bundle.json | 9 ++ interfaces/kits/include/ota_event/ota_event.h | 31 +++++ interfaces/kits/include/slot_info/slot_info.h | 1 + interfaces/kits/ota_event/BUILD.gn | 45 +++++++ interfaces/kits/ota_event/ota_event.cpp | 71 +++++++++++ interfaces/kits/slot_info/slot_info.cpp | 18 ++- test/unittest/BUILD.gn | 10 ++ .../slot_info_test/slot_info_unittest.cpp | 115 ++++++++++++++++++ .../slot_info_test/slot_info_unittest.h | 31 +++++ 10 files changed, 329 insertions(+), 3 deletions(-) create mode 100755 interfaces/kits/include/ota_event/ota_event.h create mode 100755 interfaces/kits/ota_event/BUILD.gn create mode 100755 interfaces/kits/ota_event/ota_event.cpp create mode 100755 test/unittest/slot_info_test/slot_info_unittest.cpp create mode 100755 test/unittest/slot_info_test/slot_info_unittest.h diff --git a/OAT.xml b/OAT.xml index 4e1bc72d..d3374be4 100755 --- a/OAT.xml +++ b/OAT.xml @@ -59,6 +59,7 @@ Note:If the text contains special characters, please escape them according to th +