fix compile errors

This commit is contained in:
Felix 2017-10-27 00:21:39 +02:00
parent 9abbae522f
commit de3acdacae
6 changed files with 13 additions and 3 deletions

View file

@ -1,6 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'android-maven'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
@ -63,7 +64,7 @@ dependencies {
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
}
repositories {

View file

@ -1,5 +1,8 @@
package de.nicidienase.chaosflix.common.entities.recording
import android.arch.persistence.room.Dao
@Dao
interface ConferenceDao{
}

View file

@ -1,5 +1,8 @@
package de.nicidienase.chaosflix.common.entities.recording
import android.arch.persistence.room.Dao
@Dao
interface EventDao{
}

View file

@ -1,5 +1,8 @@
package de.nicidienase.chaosflix.common.entities.recording
import android.arch.persistence.room.Dao
@Dao
interface RecordingDao{
}

View file

@ -14,7 +14,7 @@ interface PlaybackProgressDao{
@Query("SELECT * from playback_progress")
fun getAll(): Flowable<List<PlaybackProgress>>
@Query("SELECT * from playback_progress WHERE event_id = :arg0 LIMIT 1")
@Query("SELECT * from playback_progress WHERE event_id = :id LIMIT 1")
fun getProgressForEvent(id:Int): Flowable<PlaybackProgress>
@Insert

View file

@ -12,7 +12,7 @@ interface WatchlistItemDao {
@Query("SELECT * from watchlist_item")
fun getAll(): LiveData<List<WatchlistItem>>
@Query("SELECT * from watchlist_item WHERE id = :arg0 LIMIT 1")
@Query("SELECT * from watchlist_item WHERE id = :id LIMIT 1")
fun getItemForEvent(id:Int): LiveData<WatchlistItem>
@Insert(onConflict = OnConflictStrategy.REPLACE)