feat(APKUpdate): implement APK update check and enhance build workflow
Some checks failed
Frontend CI / ota-android (push) Has been cancelled
Frontend CI / build-and-push-web (push) Has been cancelled
Frontend CI / build-android-apk (push) Has been cancelled

- Added `expo-intent-launcher` dependency to support APK launching functionality.
- Introduced `APKUpdateBootstrap` component to check for APK updates during app initialization.
- Enhanced build workflow in `build.yml` to resolve runtime version and upload APK to the updates server.
- Updated `HomeScreen` and `TabsLayout` to manage tab visibility and scroll behavior based on user interactions.
- Refactored message bubble styles for improved UI consistency and user experience.
This commit is contained in:
lafay
2026-03-26 03:41:43 +08:00
parent 405cd271db
commit c903990aaf
15 changed files with 449 additions and 62 deletions

View File

@@ -0,0 +1,13 @@
import { create } from 'zustand';
interface HomeTabPressState {
/** 用于触发首页回到顶部的事件计数器 */
pressCount: number;
/** 触发首页 Tab 点击事件 */
triggerPress: () => void;
}
export const useHomeTabPressStore = create<HomeTabPressState>((set) => ({
pressCount: 0,
triggerPress: () => set((state) => ({ pressCount: state.pressCount + 1 })),
}));

View File

@@ -44,6 +44,9 @@ export { userManager } from './userManager';
export {
useHomeTabBarVisibilityStore,
} from './homeTabBarVisibilityStore';
export {
useHomeTabPressStore,
} from './homeTabPressStore';
export {
useAppColors,
useThemePreference,