2048 Android 应用开发与评审
2048-android-development
实现或审查 Jetpack Compose 版 2048 应用,包括其 ViewModel 与存储、Material UI、Gradle 构建或模拟器测试。
- License 许可
- MIT
- 最近更新
- 2026-09-28
- Stars
- ★ 22
- Forks
- 14
01 前言 Front Matter
- name
- 2048-android-development
- description
- Implement or review the Jetpack Compose 2048 app, its ViewModel and storage, Material UI, Gradle build, or emulator tests.
02 资源文件 1
- 参考文档agents/openai.yaml250 B
03 SKILL.md 正文
2048 Android development
Read AGENTS.md and the native sections of docs/architecture.md. Keep board rules and session state in GameViewModel.kt, persistence in GameStorage.kt, and presentation in Compose. Preserve deterministic test hooks without weakening production randomness or saved-state validation.
Use Material vector icons and Compose semantics; never use Unicode symbols as controls. Keep tap targets, system insets, contrast, screen-size adaptation, haptics, restart confirmation, help, win continuation, and loss recovery intact.
The board's detectDragGestures must consume each PointerInputChange. The root column scrolls vertically, so an unconsumed change reaches the parent scroll too and a board swipe drags the whole screen. Keep tile animation aligned with the web and iOS timings documented in docs/architecture.md, and keep it collapsing to instant when the system animation scale is zero.
No JDK is required: Gradle provisions its own from gradle/gradle-daemon-jvm.properties. Use the make android-* targets or Scripts-equivalent wrappers rather than calling ./gradlew or adb bare — adb is not on PATH after a default Android Studio install.
Run make test-android for every change. Optional cloud code lives under …/cloud/; JaCoCo excludes CloudUi and covers CloudApi / CloudController with fake-transport JVM tests. When UI behavior changes and a device is available, run make test-android-device, inspect logcat for app exceptions, and manually review gameplay, help, restart, win, and loss states. make android-run builds, installs, and launches in one step.
04 同仓库更多 Skills
2048 网页游戏开发
2048-web-development
实现或审查 2048 浏览器客户端、响应式 UI、无障碍访问、PWA 元数据、截图或 SEO。
2048 发布就绪核验
2048-release-readiness
核验所有 2048 客户端的测试、构建、截图、元数据、文档及发布就绪状态。
2048 iOS 客户端开发
2048-ios-development
实现或审查基于 SwiftUI 的 2048 客户端、ViewModel、持久化、无障碍访问、测试或模拟器流程。
2048 跨平台体验一致性协调
2048-cross-platform-parity
协调 Web、iOS 和 Android 三个 2048 客户端之间的行为与用户体验(UX)变更。
2048 Android 客户端开发
2048-android-development
实现或审查基于 Compose 的 2048 客户端、ViewModel、持久化、Gradle 构建或模拟器流程。
2048 Web 前端开发
2048-web-development
实现或审查 2048 浏览器客户端,包括其规则引擎、响应式 UI、无障碍功能、PWA 元数据、截图或 SEO(搜索引擎优化)。