Baudouin
05/06/2023, 8:51 PMprivate const val INFORMATIONS_PREFERENCE_NAME = "user_informations"
private val Context.dataStore: DataStore<Preferences> by preferencesDataStore(
name = INFORMATIONS_PREFERENCE_NAME
)
class BobApplication : Application() {
lateinit var userInformationsRepository: UserInformationsRepository
lateinit var notesRepository: NotesRepository
override fun onCreate() {
super.onCreate()
userInformationsRepository = UserInformationsRepository(dataStore)
notesRepository = NotesRepository()
}
}
But i got an error in `NotesRepository()`: "Interface NotesRepository does not have constructors"
Don't really not what to do, so i'm open to all the help 😉
(sorry for my bad english)Josh Eldridge
05/07/2023, 3:39 AMNotesRepository
?