添加 user版本,去掉日志版本 编译指令 ./autobuild.sh user 即可 471/1 471/head 472/target/1
authorSnickerSun <snickersun@163.com>
Sat, 6 Jul 2024 03:55:01 +0000 (11:55 +0800)
committerSnickerSun <snickersun@163.com>
Sat, 6 Jul 2024 03:55:01 +0000 (11:55 +0800)
autobuild.sh
code/sdk/application/wearable/alipay/driver_adapt/iotsec.h
code/sdk/application/wearable/alipay/service/alipay_feature.h
code/sdk/application/wearable/fd230app/nativeui/main/src/MainPresenterSample.cpp
code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp
code/sdk/application/wearable/ohos_deps/wearable_log.h
ota_auto_readme.txt [moved from auto_ota_readme.txt with 100% similarity]

index dd93dad..e2f1031 100755 (executable)
@@ -5,7 +5,8 @@ DATE=$(date  +%Y%m%d_%H%M%S)
 HOMEDIR=$PWD
 DEFAULT_BUILD_TYPE=release
 DEFAULT_TARGET_PACK_NAME=pack_brandy_native_js
-DEFAULT_CUSTOM_FW_VERSION=1.1.13
+DEFAULT_TARGET_PACK_NAME_USER=pack_brandy_native_js_user
+DEFAULT_CUSTOM_FW_VERSION=1.0.5
 
 TARGET_PACK_NAME=$DEFAULT_TARGET_PACK_NAME
 RELEASE_BUILD=$DEFAULT_BUILD_TYPE
@@ -33,6 +34,12 @@ if [ "$1" == "release" ]
 then
 RELEASE_BUILD=release
 fi
+
+if [ "$1" == "user" ]
+then
+TARGET_PACK_NAME=$DEFAULT_TARGET_PACK_NAME_USER
+fi
+
 }
 CURRENT_BRANCH=`git branch |awk '$1=="*"{print $2}'`
 COMMIT_ID=`git rev-parse HEAD`
@@ -123,6 +130,7 @@ build_target()
 checkarguments $1
 checkarguments $2
 checkarguments $3
+checkarguments $4
 if [ "$CLEAN" == "-c" ]
 then
 echo  $0 $TARGET_PACK_NAME $RELEASE_BUILD clean
index 888e73f..5de261b 100755 (executable)
@@ -13,7 +13,7 @@
 #include <stdarg.h>\r
 #include "debug_print.h"\r
 \r
-#define MyPrintf(fmt, arg...) PRINT("[SEC PAY E/] %s: " fmt "\r\n", __FUNCTION__, ##arg)\r
+#define MyPrintf(fmt, arg...) printf("[SEC PAY E/] %s: " fmt "\r\n", __FUNCTION__, ##arg)\r
 \r
 typedef enum {\r
     CSI_OK = 0,\r
index 704ba38..390cfc9 100755 (executable)
@@ -30,13 +30,16 @@ extern "C" {
 #define APP_FAILURE (-1)
 
 #if !defined(SW_UART_DEBUG) && !defined(SW_RTT_DEBUG)
+#ifdef WEARABLE_LOG_DEBUG
+#define ALIPAY_PRINT_DEBUG(log_num, fmt, arg...) uapi_diag_debug_log(0, fmt, ##arg)
 #define ALIPAY_PRINT_ERR(log_num, fmt, arg...) uapi_diag_error_log(0, fmt, ##arg)
 #define ALIPAY_PRINT_WARN(log_num, fmt, arg...) uapi_diag_warning_log(0, fmt, ##arg)
 #define ALIPAY_PRINT_INFO(log_num, fmt, arg...) uapi_diag_info_log(0, fmt, ##arg)
-#ifdef WEARABLE_LOG_DEBUG
-#define ALIPAY_PRINT_DEBUG(log_num, fmt, arg...) uapi_diag_debug_log(0, fmt, ##arg)
 #else
 #define ALIPAY_PRINT_DEBUG(log_num, fmt, arg...)
+#define ALIPAY_PRINT_ERR(log_num, fmt, arg...) 
+#define ALIPAY_PRINT_WARN(log_num, fmt, arg...) 
+#define ALIPAY_PRINT_INFO(log_num, fmt, arg...) 
 #endif
 #else
 #define ALIPAY_PRINT_ERR(log_num, fmt, arg...) PRINT("[ALIPAY SVR E/] %s: " fmt "\r\n", __FUNCTION__, ##arg)
index 993177c..ac15344 100644 (file)
@@ -493,7 +493,7 @@ namespace OHOS
         free(timeStr);
         free(weekStr);
 
-        PRINT("ALLData are refresh!\n");
+        WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ALLData are refresh!\n");
     }
     void MainPresenterSample::get_memcheck()
     {
index 9fb68c0..c539f6d 100644 (file)
@@ -395,7 +395,7 @@ namespace OHOS
         InitImageView(disturbIcon, 213, 0, 40, 40, "disturbIcon", DISTURBICON);
         /*获取勿扰状态*/
         bool state = ConfigModel::GetInstance()->get_configData_bool(ConfigModel::CONFIGMODEL_ITEM_DNOTDISTURB);
-        PRINT("disturb:state[%d]\r\n", state);
+        WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "disturb:state[%d]\r\n", state);
         disturbIcon->SetVisible(state);
         mainClockView->Add(disturbIcon);
         return mainClockView;
index 62557e0..cda4bc9 100755 (executable)
@@ -49,13 +49,17 @@ typedef enum {
 } WearableLogModuleType;
 
 #if !defined(SW_UART_DEBUG) && !defined(SW_RTT_DEBUG)
+
+#ifdef WEARABLE_LOG_DEBUG
 #define WEARABLE_LOGE(mod, fmt, arg...) uapi_diag_error_log(0, fmt, ##arg)
 #define WEARABLE_LOGW(mod, fmt, arg...) uapi_diag_warning_log(0, fmt, ##arg)
 #define WEARABLE_LOGI(mod, fmt, arg...) uapi_diag_info_log(0, fmt, ##arg)
-#ifdef WEARABLE_LOG_DEBUG
 #define WEARABLE_LOGD(mod, fmt, arg...) uapi_diag_debug_log(0, fmt, ##arg)
 #else
 #define WEARABLE_LOGD(mod, fmt, arg...)
+#define WEARABLE_LOGE(mod, fmt, arg...) 
+#define WEARABLE_LOGW(mod, fmt, arg...) 
+#define WEARABLE_LOGI(mod, fmt, arg...) 
 #endif
 #else
 #define WEARABLE_LOGE(mod, fmt, arg...) PRINT("[WEARABLE E/] %s: " fmt "\n", __FUNCTION__, ##arg)
similarity index 100%
rename from auto_ota_readme.txt
rename to ota_auto_readme.txt