how to remove expect object for room database in m...
# multiplatform
h
how to remove expect object for room database in multiplatform:
Copy code
@Database(entities = [Employees::class, AssetTable::class], version = 1)
@ConstructedBy(AppDatabaseConstructor::class)
abstract class AppDatabase: RoomDatabase(){
    
}

// The Room compiler generates the `actual` implementations.
@Suppress("NO_ACTUAL_FOR_EXPECT")
expect object AppDatabaseConstructor : RoomDatabaseConstructor<AppDatabase>
m
Why do you wanna do that? and maybe ask in #C7KS458SJ
h
remove this // The Room compiler generates the
actual
implementations. @Suppress("NO_ACTUAL_FOR_EXPECT") expect object AppDatabaseConstructor : RoomDatabaseConstructor<AppDatabase> because when compile ./gradlew build always get error this
m
2.7.0-alpha05 and before doesn't require RoomDatabaseConstructor
or maybe provide more information about the error so we might solve it
h
but when running in ios this required.
Copy code
@Suppress("NO_ACTUAL_FOR_EXPECT")
expect object AppDatabaseConstructor : RoomDatabaseConstructor<AppDatabase>