I'm actually blown away by these videos. Every second of these videos has value. No time is wasted. Unless a person really understands a concept thoroughly he or she can't explain in lay man terms. I have several years of experience but I found it tough to grasp Dagger and I could only understand bits and pieces of it from other sources. These videos helped me to put the pieces together. Bhayya,, pun aside, Desi brothers are the best to get the essence out of any thing. It's not the summary, it is the essence. Thanks!
You are matchless. the way you arranged the topics and explained in simple language, I fall in love with your channel. teach me everything in computer science. ❤
Bro … big fan of yours. Was waiting for dagger from sometime. Thanks a lot. One request. If possible can you please do a series on Rx libraries as well. Thanks in advance.
Thanku for creating such video! I have one question. If requirements like get the data from Sqlrepository and then send it to FirebaseRepository then what approach we can apply?
Hello. Please add a detailed comparison between @provides and @binds. Its making me confused. Where to use which one? and best among both of them? between thanks brother for sharing such a easy explanation of Dagger. It was too hard for me to understand but you really made my life easy
@Binds - for binding Interface with Implementation. @Provides - where you will be executing some logic to create the object. Best kuch nahi hai - requirement dependent hai....Try to use @Binds if interfaces are there, otherwise to @Provides he use karna padega
Hi, one confusion, if we need both type of user repository on runtime, what will we do. Phale aapne firebaserepo hi return kari phir sqlrepo userrepositorymkdule se, so ye like hard-coded sa na ho gya.
Hi..I have a question for this video - agr dono @Field ho to kese differentiate krenge ki kisko use krna hai....yaha to ek br field ke saath or ek constructor ke saath kra aapne but jab 1 sae jada @Field injection hogi to unki calling ko kese differentiate krenge.
hey man thanks for sharing your wonderful knowledge with us. I appreciate your time and effort sirji. Just one question in my mind, There are 2 ways we can acheive DI in our code one is normal one and another one is with dagger.android....confused which one to follow??
Thanks for your comment. Normal one is the preferred one but dagger android has been used extensively. Some recommend using Dagger.Android with Android - some hate it. I prefer the normal one - easy to understand and easy to implement. But now HILT is the preferred choice due to its ease.
Is it possible to make this line of code "class RepoRepositoryImpl @Inject constructor(private val repoApi: RepoApi) : RepoRepository" into "class RepoRepositoryImpl : RepoRepository { @Inject lateint var repoApi: RepoApi }" this code??
hello this is very good explanation but i have one doubt. how to set notification type at run time like send emailNotification or messageNotification? i am confused here.
sir isme to apne bata diya ki hame notification kaunsi kaise batani hai....lekin agar humko dono kam matlab db aur firebase dono me send krna hai ek sath ya phir dono mese koi ek to vo kaise krenge kyuki isme to ek bar me ekto db me save hoga yato firebase me
@Module class UserRepositoryModule { @Provides fun getFirebaseRepository(): UserRepository { return FirebaseRepository() } @Provides fun getSQLRepository(sqlRepository: SQLRepository): UserRepository { return sqlRepository } } can we use both and user store data in local and server-------- its is possible or not
Bro ap bht acha samjhaty Ho But Aik Confusion H MVVM Use Krry ya Dependency Injection , Ya dono ko hi Use Krrry Essy To Code Bht hi Complex Lggy Ga, I am Confuse for this🤔😢
compiler shows error ---> com.example.daggerandhilt.UserRepositoryModule is listed as a module, but is not annotated with @Module @dagger.Component(modules = {com.example.daggerandhilt.UserRepositoryModule.class, com.example.daggerandhilt.NotificationServiceModule.class}) i don't know why
fun inject(mainActivity: MainActivity) when i put this code , the application is giving error " A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction" why so ??
I'm actually blown away by these videos. Every second of these videos has value. No time is wasted. Unless a person really understands a concept thoroughly he or she can't explain in lay man terms. I have several years of experience but I found it tough to grasp Dagger and I could only understand bits and pieces of it from other sources. These videos helped me to put the pieces together. Bhayya,, pun aside, Desi brothers are the best to get the essence out of any thing. It's not the summary, it is the essence. Thanks!
Thanks 😁😁
coroutine bhi aapsei samjha,
dagger bhi..
Lord ho aap, itna accha samjhate ho..
aapka din shubh ho :D
🙏...bas ghamand na ho jaye...😂
nice series , I am loving it, I was thinking , how much efforts you are taking for this community
You are matchless. the way you arranged the topics and explained in simple language, I fall in love with your channel. teach me everything in computer science. ❤
Thanks!
Thanks Santosh ✌
ab lagta hai interview clear ho jayega... thank you sir
Truely wonderful explanation
Love your content❤ :). Always learning something new...
bahot achhe se samjhate ho guru. marvelous!!
Thanks Kshitiz
best for videos for interview preparations
Thanks and All the best
nicely explained Thanks!!
you are amazing....
Wonderful explanation.
Thanks
As always, easy to understand🦸♂️
Thank you 😊
Thank you for this! Super cool video! A+++
Thanks 🤘
Bro … big fan of yours. Was waiting for dagger from sometime. Thanks a lot. One request. If possible can you please do a series on Rx libraries as well. Thanks in advance.
Will try..Cheers
Thanku for creating such video!
I have one question.
If requirements like get the data from Sqlrepository and then send it to FirebaseRepository then what approach we can apply?
Hello. Please add a detailed comparison between @provides and @binds. Its making me confused. Where to use which one? and best among both of them? between thanks brother for sharing such a easy explanation of Dagger. It was too hard for me to understand but you really made my life easy
@Binds - for binding Interface with Implementation.
@Provides - where you will be executing some logic to create the object.
Best kuch nahi hai - requirement dependent hai....Try to use @Binds if interfaces are there, otherwise to @Provides he use karna padega
sir firbase repository b khod si bnasakta hain agr inject lagai to ?
thank you
Hi, one confusion, if we need both type of user repository on runtime, what will we do.
Phale aapne firebaserepo hi return kari phir sqlrepo userrepositorymkdule se, so ye like hard-coded sa na ho gya.
Next video ka intezar kare
Hi..I have a question for this video - agr dono @Field ho to kese differentiate krenge ki kisko use krna hai....yaha to ek br field ke saath or ek constructor ke saath kra aapne but jab 1 sae jada @Field injection hogi to unki calling ko kese differentiate krenge.
Question nahi samjha aapka...ek baar dobara phrase karna...shayad help kar pau
❤️❤️
Uno 🤘
You should have shown code of Main Activity in this video too.
what if we pass 2 params in bind function, how dagger will know what param to bind with its return type 1st or 2nd?
What if we need both firebase and SQL services in module?
😍
hey man thanks for sharing your wonderful knowledge with us. I appreciate your time and effort sirji.
Just one question in my mind,
There are 2 ways we can acheive DI in our code one is normal one and another one is with dagger.android....confused which one to follow??
Thanks for your comment.
Normal one is the preferred one but dagger android has been used extensively. Some recommend using Dagger.Android with Android - some hate it. I prefer the normal one - easy to understand and easy to implement. But now HILT is the preferred choice due to its ease.
@@CheezyCode Thank you so very much brother... normal one is easy to implement..
Thanks again 🙏
Is it possible to make this line of code "class RepoRepositoryImpl @Inject constructor(private val repoApi: RepoApi) : RepoRepository" into "class RepoRepositoryImpl : RepoRepository { @Inject lateint var repoApi: RepoApi }" this code??
bhaiya yeh playlist mai kitna video approximately ayega?
Around 12
hello this is very good explanation but i have one doubt. how to set notification type at run time like send emailNotification or messageNotification? i am confused here.
Watch the whole series...you will get the idea...covered it already in the series
sir isme to apne bata diya ki hame notification kaunsi kaise batani hai....lekin agar humko dono kam matlab db aur firebase dono me send krna hai ek sath ya phir dono mese koi ek to vo kaise krenge kyuki isme to ek bar me ekto db me save hoga yato firebase me
Multibinding wali video hai - ussi mei covered hai ye ruclips.net/video/20PRMhtCRbM/видео.html
@@CheezyCode Thankyou for your response... ❤️
Please provide some definations please
@Module
class UserRepositoryModule {
@Provides
fun getFirebaseRepository(): UserRepository {
return FirebaseRepository()
}
@Provides
fun getSQLRepository(sqlRepository: SQLRepository): UserRepository {
return sqlRepository
}
}
can we use both and user store data in local and server-------- its is possible or not
Inject both the repositories to implement that behavior
Can you make a detail video on hilt dependency injection?
For sure...Dagger 2 foundation hai...uske baad HILT he karege
Bro ap bht acha samjhaty Ho But Aik Confusion H MVVM Use Krry ya Dependency Injection , Ya dono ko hi Use Krrry Essy To Code Bht hi Complex Lggy Ga, I am Confuse for this🤔😢
😃 confuse mat ho ...cover karege DI with MVVM
@@CheezyCode Waiting For that Bro me bs pro bnny hi wala hn android me😁🤞
please make video on rx java
Yes..on the list
please make details video and speed of video should be slow
Isse detailed nahi ho payega...
no way it help other developer to understand easier, it become more coplicated
compiler shows error ---> com.example.daggerandhilt.UserRepositoryModule is listed as a module, but is not annotated with @Module
@dagger.Component(modules = {com.example.daggerandhilt.UserRepositoryModule.class, com.example.daggerandhilt.NotificationServiceModule.class})
i don't know why
I think you may be adding incorrect module class in component.
fun inject(mainActivity: MainActivity) when i put this code , the application is giving error " A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction" why so ??
Somewhat related to Kotlin version...can you try updating the Kotlin version? Might need to google this error as well...not specific to dagger
Did you find solution for this? I am struck at this error.
@@pulkittb7 replace dagger version from 2.40.5 to 2.45