Skip to content
Permalink
Browse files

Update to Room v2.1.0-alpha07

  • Loading branch information...
chrisbanes committed Apr 27, 2019
1 parent 140d213 commit 703026d537c803f1bb6fd17d6c443e93c6b44db7
@@ -120,7 +120,7 @@ object Libs {
}

object Room {
private const val version = "2.1.0-alpha06"
private const val version = "2.1.0-alpha07"
val common = "androidx.room:room-common:$version"
val runtime = "androidx.room:room-runtime:$version"
val rxjava2 = "androidx.room:room-rxjava2:$version"
@@ -17,10 +17,9 @@
package app.tivi.data

import androidx.room.withTransaction
import kotlinx.coroutines.CoroutineScope

class RoomTransactionRunner(private val db: TiviDatabase) : DatabaseTransactionRunner {
override suspend operator fun <T> invoke(block: suspend CoroutineScope.() -> T): T {
override suspend operator fun <T> invoke(block: suspend () -> T): T {
return db.withTransaction {
block()
}
@@ -16,8 +16,6 @@

package app.tivi.data

import kotlinx.coroutines.CoroutineScope

interface DatabaseTransactionRunner {
suspend operator fun <T> invoke(block: suspend CoroutineScope.() -> T): T
suspend operator fun <T> invoke(block: suspend () -> T): T
}

0 comments on commit 703026d

Please sign in to comment.
You can’t perform that action at this time.