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
Muaz KADAN
09/26/2024, 7:28 AM
Why do you wanna do that? and maybe ask in #C7KS458SJ
h
hafiz
09/26/2024, 8:35 AM
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
Muaz KADAN
09/26/2024, 8:37 AM
2.7.0-alpha05 and before doesn't require RoomDatabaseConstructor
Muaz KADAN
09/26/2024, 8:39 AM
or maybe provide more information about the error so we might solve it