Skip to content

Instantly share code, notes, and snippets.

@ceruleanotter
Last active October 23, 2018 17:18
Show Gist options
  • Save ceruleanotter/04e5d5452d885317c062dc74851dd343 to your computer and use it in GitHub Desktop.
Save ceruleanotter/04e5d5452d885317c062dc74851dd343 to your computer and use it in GitHub Desktop.
App's build.gradle NOT project
// -- Copy into dependencies block --
// Room components
implementation "android.arch.persistence.room:runtime:1.1.1"
annotationProcessor "android.arch.persistence.room:compiler:1.1.1"
androidTestImplementation "android.arch.persistence.room:testing:1.1.1"
// Lifecycle components
implementation "android.arch.lifecycle:extensions:1.1.1"
annotationProcessor "android.arch.lifecycle:compiler:1.1.1"
// -- Add this to the top of the file --
apply plugin: 'kotlin-kapt'
// -- Copy into dependencies block --
// Room components
implementation "android.arch.persistence.room:runtime:1.1.1"
kapt "android.arch.persistence.room:compiler:1.1.1"
androidTestImplementation "android.arch.persistence.room:testing:1.1.1"
// Lifecycle components
implementation "android.arch.lifecycle:extensions:1.1.1"
kapt "android.arch.lifecycle:compiler:1.1.1"
// Coroutines
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.26.1"
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.26.1"
// -- Add this to the bottom of the file --
kotlin {
experimental {
coroutines "enable"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment