Skip to content

Instantly share code, notes, and snippets.

@faizul14
Created February 8, 2024 02:10
Show Gist options
  • Save faizul14/3ca7d679d514c50103527e130192bd8f to your computer and use it in GitHub Desktop.
Save faizul14/3ca7d679d514c50103527e130192bd8f to your computer and use it in GitHub Desktop.
plugins {
...
kotlin("kapt")
id("com.google.dagger.hilt.android")
id ("kotlin-parcelize")
}
android {
...
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
buildFeatures{
viewBinding = true
}
}
dependencies {
...
//hilt
implementation("com.google.dagger:hilt-android:2.47")
kapt("com.google.dagger:hilt-android-compiler:2.47")
implementation("androidx.hilt:hilt-work:1.0.0")
// When using Kotlin.
kapt("androidx.hilt:hilt-compiler:1.0.0")
// Android ktx
implementation ("androidx.lifecycle:lifecycle-livedata-ktx:2.3.1")
implementation ("androidx.activity:activity-ktx:1.2.3")
implementation ("androidx.fragment:fragment-ktx:1.3.4")
//dataroom
implementation ("androidx.room:room-runtime:2.5.2")
implementation ("androidx.room:room-ktx:2.2.0")
kapt ("androidx.room:room-compiler:2.5.2")
//corountine
implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2")
// Glide (Image load)
implementation ("com.github.bumptech.glide:glide:4.13.0")
//CircleImageView
implementation ("de.hdodenhof:circleimageview:3.1.0")
//retrofit
implementation ("com.squareup.retrofit2:retrofit:2.9.0")
implementation ("com.squareup.retrofit2:converter-gson:2.9.0")
implementation ("com.squareup.okhttp3:logging-interceptor:4.9.0")
//work
implementation("androidx.work:work-runtime-ktx:2.8.0")
//lottie
implementation ("com.airbnb.android:lottie:5.2.0")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment