Skip to content

Instantly share code, notes, and snippets.

@androidlover5842
Last active May 31, 2022 05:03
Show Gist options
  • Save androidlover5842/5037f064a52a4abad81d141df82e4789 to your computer and use it in GitHub Desktop.
Save androidlover5842/5037f064a52a4abad81d141df82e4789 to your computer and use it in GitHub Desktop.
Common dependencies for my android projects
project.ext{
hilt='2.38.1'
constraintlayoutVersion = '2.1.4'
appcompatVersion = '1.4.1'
swipetorefresh='1.2.0-alpha01'
retrofit ='2.9.0'
glide ='4.13.1'
room_version = '2.4.2'
lifecycle_version = '2.4.1'
arch_version = '2.1.0'
navigation = '2.4.2'
work_version = "2.7.1"
rxjava='3.1.4'
rxandroid='3.0.0'
recycler_view='1.2.1'
gson='2.9.0'
okhttp='4.9.3'
AndroidUtils='5cac013f80'
}
dependencies {
//Hilt
implementation "com.google.dagger:hilt-android:$hilt"
annotationProcessor "com.google.dagger:hilt-compiler:$hilt"
implementation 'com.google.android.material:material:1.6.0'
implementation "androidx.appcompat:appcompat:$appcompatVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintlayoutVersion"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swipetorefresh"
implementation "androidx.recyclerview:recyclerview:$recycler_view"
//lifecycle
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-reactivestreams:$lifecycle_version"
//customs
implementation "com.github.androidlover5842:AndroidUtils:$AndroidUtils"
implementation "com.google.code.gson:gson:$gson"
implementation 'com.github.Baseflow:PhotoView:565505d5cb'
implementation 'com.github.GrenderG:Toasty:1.5.0'
//RxJava
implementation "io.reactivex.rxjava3:rxjava:$rxjava"
implementation "io.reactivex.rxjava3:rxandroid:$rxandroid"
//Retrofit
implementation "com.squareup.retrofit2:converter-scalars:$retrofit"
implementation "com.squareup.retrofit2:retrofit:$retrofit"
implementation "com.squareup.retrofit2:converter-gson:$retrofit"
implementation "com.squareup.okhttp3:okhttp:$okhttp"
implementation "com.squareup.retrofit2:adapter-rxjava3:$retrofit"
//Glide
implementation "com.github.bumptech.glide:glide:$glide"
implementation "com.github.bumptech.glide:okhttp3-integration:$glide"
annotationProcessor "com.github.bumptech.glide:compiler:$glide"
//lottie
implementation 'com.airbnb.android:lottie:5.0.3'
//Room
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-rxjava3:$room_version"
//jetpack
implementation "androidx.concurrent:concurrent-futures:1.1.0"
implementation "androidx.datastore:datastore:1.0.0"
implementation "androidx.datastore:datastore-rxjava3:1.0.0"
implementation "androidx.datastore:datastore-preferences-rxjava3:1.0.0"
implementation "androidx.autofill:autofill:1.2.0-beta01"
implementation "androidx.activity:activity:1.4.0"
implementation "androidx.navigation:navigation-fragment:$navigation"
implementation "androidx.navigation:navigation-ui:$navigation"
implementation "androidx.navigation:navigation-dynamic-features-fragment:$navigation"
implementation "androidx.navigation:navigation-compose:$navigation"
implementation "androidx.viewpager2:viewpager2:1.1.0-beta01"
implementation "androidx.work:work-runtime:$work_version"
implementation "androidx.work:work-multiprocess:$work_version"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment