Android - Adding libraries to gradle file - quick reference

        The following lines of codes, which helps you to add the Gradle dependencies for your project quickly. I have listed out the widely used Gradle dependencies. Please let me know in the comment section if you like to add any other libraries. Let's check..


//Constraint Layout

implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
//Material Design
implementation 'com.google.android.material:material:1.3.0-alpha02'
//Kotlin Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.8"
//Retrofit - for async API calls
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
//Lifecycle 
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
//Kodein - Dependency Injection framework
implementation 'com.eygraber:kodein-di-generic-jvm:5.2.1'
implementation 'com.eygraber:kodein-di-framework-android-x:5.2.1'
//Navigation 
implementation 'androidx.navigation:navigation-ui-ktx:2.3.0'
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0'
//Android Room DB
implementation 'androidx.room:room-runtime:2.3.0-alpha02'
implementation 'androidx.room:room-ktx:2.3.0-alpha02'
kapt 'androidx.room:room-compiler:2.3.0-alpha02'


Comments

  1. Amazing.. it's really a quick reference to add the dependencies.

    ReplyDelete

Post a Comment

Popular posts from this blog

Input filter (space not allowed) for EditText

Android Versions details

English - Formal and Informal words