//Kotlin Kapt plugin used for annotations id 'kotlin-kapt' // RoomDatabase Libraries def roomVersion = "2.4.0" implementation "androidx.room:room-runtime:$roomVersion" kapt "androidx.room:room-compiler:$roomVersion" implementation "androidx.room:room-ktx:$roomVersion" // Coroutines implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.3" // LiveCycle and ViewModel def lifecycle_version = "2.2.0" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" // Retrofit implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' // for enabling view and databinding in android tag buildFeatures{ dataBinding true } viewBinding { enabled = true }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter