Backend as an implementation detail
Create a Koin module
val customRemoteModule = module {
// your implementations, see below
}Storage
interface IRemoteFileSystem {
suspend fun putFileAt(localFile: LocalFile, location: String): FileUrl
}singleOf(::CustomRemoteFileSystemImpl) bind IRemoteFileSystem::classDatabase
interface IUserRemoteDB {
suspend fun getUserInfos(userId: String): User?
suspend fun postUserInfos(user: User)
}Posts Management
Authentication
Wrap it up
Last updated