Skip to content

Instantly share code, notes, and snippets.

@paulfranco
Created January 19, 2020 03:56
Show Gist options
  • Save paulfranco/f65f29a84744ba76fa193715cc3992cf to your computer and use it in GitHub Desktop.
Save paulfranco/f65f29a84744ba76fa193715cc3992cf to your computer and use it in GitHub Desktop.
Gradle configuration
Add this in your project level build.gradle file
Under buildscript
ext.coroutines_version = "1.3.0"
ext.room_version = "2.2.2"
ext.glide_version = "4.8.0"
ext.nav_version = "2.1.0"
ext.daggerVersion = '2.14.1'
Under dependencies
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
Add this in your app module build.gradle file
At the top
apply plugin: 'kotlin-kapt'
apply plugin: "androidx.navigation.safeargs.kotlin"
Under dependencies
implementation project(':core')
implementation "androidx.recyclerview:recyclerview:1.1.0"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
implementation "androidx.room:room-runtime:$room_version"
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment