Android Automotive MVVM Architecture

0•

Implements standardized MVVM architecture patterns for Android Automotive OS applications using the Car App Library templates.

This skill provides specialized guidance for developing Android Automotive OS (AAOS) applications following the Car App Library's template-based architecture. It helps developers correctly implement the CarAppService-Session-Screen hierarchy, integrates Hilt for dependency injection, and enforces best practices for state management using ViewModels. By streamlining the setup of Screen-ViewModel binding and SharedViewModel scoping, it ensures robust, maintainable code for in-vehicle infotainment systems while avoiding common anti-patterns like direct database access in UI layers or the use of unsupported Fragments and Activities.

Key Features

01CarAppService, Session, and Screen architecture scaffolding
02Template-based UI building and invalidation patterns
03Hilt dependency injection integration for automotive components
04Standardized project structure and directory organization
05Reactive state management with ViewModel and LiveData
060 GitHub stars

Use Cases

01Building production-grade Android Automotive media or navigation apps
02Implementing complex state sharing between vehicle screens
03Migrating standard Android apps to the AAOS Car App Library