Fixed
Status Update
Comments
yb...@google.com <yb...@google.com> #2
We gave up upgrading to Room because we need to use FTS3/FTS4 virtual tables. Any plants to support it?
ap...@google.com <ap...@google.com> #3
Florina Muntenescu (Android developer advocate at Google) told me that FTS support will definitely NOT be in Room 1.0 final. It is postponed to an indeterminate later version.
Description
The output generated by the Room processor for this input won't compile, because the generated Java tries to "new" the object expression type:
```kt
@Database(entities = [FooEntity::class], version = 1, exportSchema = false)
internal abstract class FooDatabase : RoomDatabase() {
abstract fun fooDao(): FooDao
}
@Entity(tableName = "foo")
@TypeConverters(FooTypeConverters::class)
data class FooEntity internal constructor(
@PrimaryKey val id: Int,
val proto: SomeProto
)
object FooTypeConverters {
@TypeConverter
fun toSomeProto(bytes: ByteArray): SomeProto {
return SomeProto.parseFrom(bytes)
}
@TypeConverter
fun toBytes(someProto: SomeProto): ByteArray {
return someProto.toByteArray()
}
}
```