Skip to content

Instantly share code, notes, and snippets.

@iamhariomsharma
Created September 29, 2023 04:26
Show Gist options
  • Save iamhariomsharma/a4d9a11a9ec0f9c8e7933814767d4147 to your computer and use it in GitHub Desktop.
Save iamhariomsharma/a4d9a11a9ec0f9c8e7933814767d4147 to your computer and use it in GitHub Desktop.
Useful Android Dependencies
// App Level build.gradle File
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("kotlin-kapt")
id("dagger.hilt.android.plugin")
id("androidx.navigation.safeargs.kotlin")
id("com.google.devtools.ksp")
}
// Compose
implementation(platform("androidx.compose:compose-bom:2023.09.02"))
androidTestImplementation(platform("androidx.compose:compose-bom:2023.09.02"))
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
implementation("androidx.activity:activity-compose:1.7.2")
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.compose.material:material")
implementation("androidx.compose.material:material-icons-extended")
implementation("androidx.compose.runtime:runtime")
implementation("androidx.compose.runtime:runtime-livedata")
implementation("androidx.compose.ui:ui-tooling")
implementation("io.coil-kt:coil-compose:2.4.0")
debugImplementation("androidx.compose.ui:ui-tooling")
debugImplementation("androidx.compose.ui:ui-test-manifest")
// Lifecycle + ViewModel + Coroutines
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.6.2")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.6.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
// Navigation
implementation("androidx.navigation:navigation-fragment-ktx:2.7.3")
implementation("androidx.navigation:navigation-ui-ktx:2.7.3")
implementation("androidx.navigation:navigation-compose:2.7.3")
// Retrofit
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.3")
implementation("com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.3")
// Room
implementation("androidx.room:room-runtime:2.5.2")
implementation("androidx.room:room-ktx:2.5.2")
ksp("androidx.room:room-compiler:2.5.2")
// Datastore
implementation("androidx.datastore:datastore-preferences:1.0.0")
//Dagger - Hilt
implementation("com.google.dagger:hilt-android:2.48")
implementation("androidx.hilt:hilt-work:1.0.0")
kapt("com.google.dagger:hilt-android-compiler:2.48")
kapt("androidx.hilt:hilt-compiler:1.0.0")
implementation("androidx.hilt:hilt-navigation-compose:1.0.0")
// Project Level build.gradle File
buildscript {
dependencies {
classpath("com.google.dagger:hilt-android-gradle-plugin:2.48")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.7.3")
}
}
plugins {
id("com.android.application") version "8.1.0" apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
id("com.google.devtools.ksp") version "1.9.0-1.0.13" apply false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment