|
|
@ -10,12 +10,12 @@ import io.legado.app.data.dao.BookDao |
|
|
|
import io.legado.app.data.dao.ReplaceRuleDao |
|
|
|
import io.legado.app.data.dao.ReplaceRuleDao |
|
|
|
import io.legado.app.data.dao.BookSourceDao |
|
|
|
import io.legado.app.data.dao.BookSourceDao |
|
|
|
import io.legado.app.data.entities.Book |
|
|
|
import io.legado.app.data.entities.Book |
|
|
|
|
|
|
|
import io.legado.app.data.entities.BookSource |
|
|
|
import io.legado.app.data.entities.Chapter |
|
|
|
import io.legado.app.data.entities.Chapter |
|
|
|
import io.legado.app.data.entities.ReplaceRule |
|
|
|
import io.legado.app.data.entities.ReplaceRule |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Database(entities = [Book::class, Chapter::class, ReplaceRule::class], version = 1, exportSchema = true) |
|
|
|
@Database(entities = [Book::class, BookSource::class, Chapter::class, ReplaceRule::class], version = 1, exportSchema = true) |
|
|
|
// @TypeConverters(Converters::class) |
|
|
|
|
|
|
|
abstract class AppDatabase : RoomDatabase() { |
|
|
|
abstract class AppDatabase : RoomDatabase() { |
|
|
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
companion object { |
|
|
|