feat: Android原生支持与设计系统升级#16
Open
Tri250 wants to merge 17 commits into
Open
Conversation
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Changes
1. Android 原生支持与 Capacitor 集成
.env.android配置文件,支持 Android 特定环境参数配置。android/app/capacitor.build.gradle和android/capacitor.settings.gradle,集成 Capacitor 插件。package.json新增 Android 构建脚本和 Capacitor 相关依赖。vite.config.ts新增 Android 构建模式支持和 API 地址适配。src/config/androidPerformance.ts新增 Android 性能优化配置。src/services/nativeCameraService.ts新增原生相机服务。src/services/permissionService.ts和src/services/pushNotificationService.ts重构以支持 Android 原生权限和通知。2. 全面设计系统升级与 Apple 风格 UI
src/lib/animations.ts动画系统库,提供丰富的页面过渡和微交互动画。src/lib/responsive.tsx和src/lib/responsiveStyle.ts,实现响应式设计系统。src/styles/apple-style.css,引入 Apple 风格全局样式和底部导航栏样式。src/App.tsx引入 Apple 风格全局样式,并新增多个页面路由。src/components/Navigation.tsx重构为 Apple 风格底部导航栏,新增 FAB 中央凸起按钮设计。src/pages/HomePage.tsx、src/pages/ProfilePage.tsx等页面重构为 Apple 风格设计。3. 新增核心功能页面
src/pages/DevicesPage.tsx:新增设备管理页面,支持设备列表、状态监控、配对等功能。src/pages/DietDataPage.tsx:新增饮食数据页面,提供饮食记录、营养分析、建议等功能。src/pages/PetProfilePage.tsx:新增宠物档案页面,支持宠物信息编辑、健康记录、照片管理等功能。src/pages/RecordsPage.tsx:新增记录管理页面,提供时间线记录展示、分类筛选等功能。4. 状态管理模块重构与原生存储
src/store/appStore.ts、src/store/petStore.ts、src/store/reminderStore.ts重构以适配 Capacitor 原生存储。src/store/devicesStore.ts、src/store/dietStore.ts、src/store/favoritesStore.ts、src/store/healthReportStore.ts、src/store/healthStore.ts、src/store/recordsStore.ts、src/store/servicesStore.ts、src/store/settingsStore.ts、src/store/translatorStore.ts、src/store/userProfileStore.ts等多个 Store 模块,并支持 Capacitor 原生存储。5. 其他优化与修复
src/components/AddReminderModal.tsx新增编辑提醒功能。src/pages/RemindersPage.tsx新增提醒编辑删除功能和通知权限检查。src/pages/TranslatorPage.tsx集成翻译器 Store 并支持麦克风权限检查。src/pages/DeveloperInfoPage.tsx修复样式问题。💡 Technical Highlights
responsive.tsx和responsiveStyle.ts提供统一的响应式布局和样式管理,确保在不同设备上的视觉一致性。animations.ts提供了一套声明式动画 API,简化了复杂动画的实现,提升了用户界面的动态性和流畅性。