Android Kotlin Mechanics
Enforces robust Android Kotlin patterns for coroutine scopes, cancellation handling, flow collection, and data equality.
Guides AI-assisted Android development with critical Kotlin mechanics and patterns where silent runtime bugs frequently occur. It enforces proper coroutine cancellation management, appropriate usage of coroutineScope versus supervisorScope, safe Flow sharing strategies with StateFlow and SharedFlow, and correct data class equality rules to prevent memory leaks, broken UI states, and concurrency issues.
Key Features
01Guides proper selection between coroutineScope and supervisorScope
020 GitHub stars
03Enforces safe Flow collection and state sharing policies with stateIn
04Promotes read-only immutability boundaries across API contracts
05Prevents coroutine cancellation swallowing and silent async leaks
06Avoids silent equality and copy bugs in Kotlin data class declarations
Use Cases
01Refactoring Android asynchronous logic and coroutine scopes
02Architecting reactive data streams using Kotlin Flows and StateFlows
03Reviewing Android Kotlin code for subtle concurrency leaks and state bugs