Commit Graph
65 Commits
Author SHA1 Message Date
hughhuangandClaude Sonnet 4.5 d58edcbfa2 feat: 添加字符串资源文件
定义了应用的所有字符串资源

- 应用名称和描述
- 按钮文本(启用、禁用、立即更换、选择文件夹、设置)
- 状态文本(运行中、已停止、未选择文件夹)
- 时间显示文本

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:59:02 +08:00
hughhuangandClaude Sonnet 4.5 78d33cc460 feat: 添加 ImageScanner 图片扫描工具
实现了文件夹扫描和图片索引功能

- 扫描指定文件夹中的图片文件
- 支持 jpg、jpeg、png、webp、bmp 格式
- 使用 JSON 缓存避免重复扫描
- 支持按索引获取图片
- 支持随机获取图片(可排除当前图片)
- 统计总图片数量

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:58:49 +08:00
hughhuangandClaude Sonnet 4.5 b63156cda9 feat: 添加 JsonHelper JSON 索引存储
实现了图片索引的 JSON 文件存储功能

- 保存文件夹扫描结果到 JSON 文件
- 从 JSON 文件加载图片索引
- 智能检测是否需要重新扫描
- 支持文件夹路径哈希命名
- 使用 Gson 进行 JSON 序列化

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:58:21 +08:00
hughhuangandClaude Sonnet 4.5 10f96fa99d feat: 添加 WallpaperChangeReceiver 广播接收器
实现了接收定时任务的广播接收器,触发壁纸更新

- 接收 ACTION_CHANGE_WALLPAPER 广播
- 刷新当前壁纸
- 调度下一次壁纸更换
- 持久化配置支持

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:57:47 +08:00
hughhuangandClaude Sonnet 4.5 cef3caf355 feat: 添加 AlarmScheduler 定时调度器
实现了定时任务调度功能,支持 1-60 分钟间隔的壁纸自动更换

- 支持 Android 12+ 的精确闹钟权限检查
- 使用 setExactAndAllowWhileIdle 确保在低功耗模式下正常工作
- 兼容 Android M 及以上版本
- 实现取消调度功能

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:57:35 +08:00
hughhuangandClaude Sonnet 4.5 ccb5b6b287 feat: 添加壁纸服务
- 继承 WallpaperService
- 注册刷新广播接收器
- 创建 WallpaperEngine 实例

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:55:54 +08:00
hughhuangandClaude Sonnet 4.5 eab6ee4ce5 feat: 添加壁纸引擎
- 实现 Canvas 绘制逻辑
- 支持顺序和随机播放模式
- 添加占位符显示

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:55:46 +08:00
hughhuangandClaude Sonnet 4.5 c28ce244ea feat: 添加图片加载器
- 实现图片采样和缩放功能
- 使用 RGB_565 降低内存占用
- 自动计算 inSampleSize 优化加载性能

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:55:35 +08:00
hughhuangandClaude Sonnet 4.5 9d6b34cde7 feat: 添加 SharedPreferences 管理类
- 实现配置加载和保存功能
- 使用 Gson 序列化文件夹列表
- 支持保存和读取最后显示的壁纸 URI

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:54:29 +08:00
hughhuangandClaude Sonnet 4.5 ae29ac8255 feat: 添加 AppConfig 配置类
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:51:06 +08:00
hughhuangandClaude Sonnet 4.5 57bfb756ef feat: 添加 WallpaperImage 数据类
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:50:55 +08:00
hughhuangandClaude Sonnet 4.5 4ddda30063 feat: 添加 PlayMode 枚举
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:50:48 +08:00
hughhuangandClaude Sonnet 4.5 d661b6bb56 chore: 初始化 Android 项目结构
- 创建项目配置文件(settings.gradle, build.gradle)
- 配置应用模块(app/build.gradle)
- 配置 Gradle Wrapper
- 添加 ProGuard 混淆规则
- 配置 AndroidManifest.xml(权限和组件声明)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:49:38 +08:00
hughhuangandClaude Sonnet 4.5 a5968393b3 feat: add manifest with permissions and components
创建 AndroidManifest.xml 文件,配置应用权限和组件:
- 声明所需权限(存储访问、设置壁纸、定时任务等)
- 注册主 Activity 和设置 Activity
- 配置自动壁纸服务
- 添加壁纸变更广播接收器

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:45:47 +08:00
hughhuangandClaude Sonnet 4.5 41fa3b04a5 chore: configure app module with dependencies
配置应用模块的构建设置,添加必要的依赖库:
- AndroidX 核心库
- Material Design 组件
- Glide 图片加载库
- Gson JSON 解析库

同时配置 Gradle wrapper 设置。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 23:45:39 +08:00