Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stargt/f681e4b959488a51cf1b8de072ada975 to your computer and use it in GitHub Desktop.
Save stargt/f681e4b959488a51cf1b8de072ada975 to your computer and use it in GitHub Desktop.
Android Snippet for Gradle Dependencies
dependencies {
/*
AndroidX
https://developer.android.com/jetpack/androidx/migrate/artifact-mappings
*/
implementation "androidx.constraintlayout:constraintlayout:x.y.z"
/*
Material Components
https://github.com/material-components/material-components-android/blob/master/docs/getting-started.md
*/
implementation "com.google.android.material:material:x.y.z"
/*
Android KTX
https://developer.android.com/kotlin/ktx
*/
implementation "androidx.core:core-ktx:x.y.z"
implementation "androidx.collection:collection-ktx:x.y.z"
implementation "androidx.fragment:fragment-ktx:x.y.z"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:x.y.z"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:x.y.z"
implementation "androidx.navigation:navigation-runtime-ktx:x.y.z"
implementation "androidx.navigation:navigation-fragment-ktx:x.y.z"
implementation "androidx.navigation:navigation-ui-ktx:x.y.z"
implementation "androidx.palette:palette-ktx:x.y.z"
implementation "androidx.lifecycle:lifecycle-reactivestreams-ktx:x.y.z"
implementation "androidx.room:room-ktx:x.y.z"
implementation "androidx.sqlite:sqlite-ktx:x.y.z"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:x.y.z"
implementation "androidx.work:work-runtime-ktx:x.y.z"
implementation "com.google.android.play:core-ktx:x.y.z"
/*
Coroutine
*/
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:x.y.z"
/*
Retrofit with Gson Converter & OkHttp & Logging Interceptor & RxJava2 Adapter & RxJava3 Adapter
https://github.com/square/retrofit
https://github.com/square/retrofit/tree/master/retrofit-converters/gson
https://github.com/square/okhttp
https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor
https://github.com/square/retrofit/tree/master/retrofit-adapters/rxjava2
https://github.com/square/retrofit/tree/master/retrofit-adapters/rxjava3
*/
implementation "com.squareup.retrofit2:retrofit:x.y.z"
implementation "com.squareup.retrofit2:converter-gson:x.y.z"
implementation "com.squareup.okhttp3:okhttp:x.y.z"
implementation "com.squareup.okhttp3:logging-interceptor:x.y.z"
implementation "com.squareup.retrofit2:adapter-rxjava2:x.y.z"
implementation "com.squareup.retrofit2:adapter-rxjava3:x.y.z"
/*
RxJava 2 & 3
https://github.com/ReactiveX/RxJava
*/
implementation "io.reactivex.rxjava2:rxjava:2.x.y"
implementation "io.reactivex.rxjava3:rxjava:3.x.y"
/*
Picasso
https://github.com/square/picasso
*/
implementation "com.squareup.picasso:picasso:x.y"
/*
Glide
https://github.com/bumptech/glide
*/
implementation "com.github.bumptech.glide:glide:x.y.z"
annotationProcessor "com.github.bumptech.glide:compiler:x.y.z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment