All Libraries
No libraries found
Your search did not match any libraries. Try a different keyword.
Your search did not match any libraries. Try a different keyword.
The report strongly recommends using Gradle's Kotlin DSL (`.gradle.kts`) for build scripts over the older Groovy DSL. Kotlin DSL provides a superior development experience with better IDE support, including code completion, navigation to source, and refactoring. All dependency snippets on this platform are provided exclusively in Kotlin DSL to align with modern Android development standards.
A Bill of Materials (BOM) is a special kind of dependency that groups together a set of libraries and their tested, compatible versions. The Jetpack Compose BOM is a prime example. By importing the BOM platform, you can declare other Compose dependencies without specifying their versions, as the BOM manages them for you. This prevents version conflicts and simplifies updates.
dependencies {
// Import the Compose BOM
val composeBom = platform("androidx.compose:compose-bom:2025.05.00")
implementation(composeBom)
androidTestImplementation(composeBom)
// Now, declare Compose dependencies without versions
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.material3:material3")
}
Dependency Injection (DI) is a core principle for building scalable and testable apps. Hilt is Google's recommended DI library for Android, built on top of Dagger. It reduces boilerplate by providing a standard way to use DI in your application, integrating seamlessly with Jetpack components like ViewModel, Navigation, and WorkManager.
A robust testing strategy is crucial. Use unit testing frameworks like JUnit and Mockito for business logic, and instrumentation testing frameworks like Espresso for UI tests that run on a device or emulator. This platform lists the necessary dependencies to set up a comprehensive testing suite.