From: Caisking Date: Sat, 20 Sep 2025 11:20:11 +0000 (+0800) Subject: 优化雷鸟初始化 X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~21^2~9 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=9ad9d726679930b0f722c42cbaa35436cbedd037;p=mirrors%2FFD230.git 优化雷鸟初始化 --- diff --git a/autobuild.sh b/autobuild.sh index 5f515027b..87aa43a8a 100644 --- a/autobuild.sh +++ b/autobuild.sh @@ -53,13 +53,13 @@ declare -A PROJECT_VERSIONS=( ["user"]="1.3.107" ["fd230_user"]="1.3.107" - # 测试项目版本 + # 项目版本 ["xts"]="1.3.107" ["u8"]="1.3.107" ["w9"]="1.3.107" ["lt22"]="1.3.107" ["n9"]="1.3.107" - ["ln"]="1.3.107" + ["ln"]="1.0.0" # 特殊功能版本 ["u8m"]="1.3.107" diff --git a/code/sdk/application/wearable/ln/nativeapp/nativelauncher/src/NativeLauncher.cpp b/code/sdk/application/wearable/ln/nativeapp/nativelauncher/src/NativeLauncher.cpp index a5913ae24..1f01e4a29 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativelauncher/src/NativeLauncher.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativelauncher/src/NativeLauncher.cpp @@ -50,40 +50,20 @@ NativeLauncher &NativeLauncher::GetInstance(void) void NativeLauncher::InitNativeLauncher() { -#ifdef JS_ENABLE - ACELite::ProductAdapter::SetScreenSize(HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION); - ACELite::ProductAdapter::SetDefaultFontStyle( - DEFAULT_VECTOR_FONT_FILENAME, ACELite::ProductAdapter::GetDefaultFontSize()); -#endif + //设置字体 GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::VECTOR_FONT_DIR, DEFAULT_VECTOR_FONT_FILENAME); + WEARABLE_LOGI(WEARABLE_LOG_MODULE_LAUNCHER_FWK, "NativeLauncher::InitNativeLauncher"); - // 初始化所有预加载slice - InitBtHeadsetEvent(); // 蓝牙ct和tg适配初始化 + + //初始化slice NativeRegisterManager::GetInstance().InitAllNativesSlices(); - CallerLogModel::GetInstance()->InitPhoneService(); - PlayersModel::GetInstance()->AudioInit(); - ActivityModel::GetInstance()->Init(); - ScreenModels::GetInstance()->InitKvStorage(); - VocassistModel::GetInstance()->Init(); - HeartModel::GetInstance()->Init(); - BluetoothModel::GetInstance()->Init(); - SportsModel::GetInstance()->Init(); - // 初始化默认首页 - ScreenModels::GetInstance()->PreLoadAppimages(); - NativeAbility::GetInstance().SetDefaultSliceId(VIEW_MAIN_SAMPLE); + //初始化屏幕亮度 cm_initScreenBrightness(); - RecentManager::GetInstance()->SetDirPath("system/recent/"); - RecentManager::GetInstance()->AddToBlackList(VIEW_AOD); - RecentManager::GetInstance()->AddToBlackList(VIEW_RECENT_APP); - RecentManager::GetInstance()->AddToBlackList(VIEW_APPLIST); - RecentManager::GetInstance()->AddToBlackList(VIEW_MAIN_SAMPLE); - RecentManager::GetInstance()->SetMaxSize(5); // 5: max number of recent apps. - PageTransitionMgr::GetInstance().SetRecentMinPeriod(1000); // 1000: min period - - NativeAbility::GetInstance().SetDefaultSliceId(VIEW_THUNDER_BIRD); + //设置默认首页 + NativeAbility::GetInstance().SetDefaultSliceId(VIEW_THUNDER_BIRD); } }