How can I update my Firestore with a HashMap using Hilt?
I'm trying to update my UsersInfo in Firestore via HashMap in my Kotlin project with Hilt. I have the code to updated it but how do I do it with Hilt?
Below is my AppModule and the Repository where I'm already injecting a query.
@Module
@InstallIn(SingletonComponent::class)
object AppModule {
@Singleton
@Provides
fun provideUserDetails(): DocumentReference =
FirebaseFirestore.getInstance()
.collection(USERS)
.document(getCurrentUserID())...