Hilt - Android Dependency Injection

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 55

  • @codinginflow
    @codinginflow 4 роки тому +70

    Looks like I have to make a tutorial about that soon

    • @saidooubella
      @saidooubella 4 роки тому

      You didn't yet that's shame 😃 !
      But it doesn't matter Google had a rich documentation about hilt so yeah 😏 !

    • @codinginflow
      @codinginflow 4 роки тому +2

      @@saidooubella Yea maybe it's pointless to make one at all

    • @code.visible3066
      @code.visible3066 4 роки тому +1

      Keep making your tutorials you have your followers and they don't read document or watch such hard videos! Good luck

    • @taar1
      @taar1 4 роки тому +1

      yes please and make it so that everyone can understand and follow it :-) I'm alway struggling with the official android docs as they often don't seem clear to me.

    • @viktor-leskov
      @viktor-leskov 4 роки тому

      already created by #AndroidDevs

  • @spillai6000
    @spillai6000 3 роки тому +1

    Notes for myself:
    Hilt: 4:50
    Simplest example: 7:00

  • @ViperCinema4D
    @ViperCinema4D 4 роки тому +3

    Apart from other things, I'm really looking forward to assisted inject release

  • @ChrisAthanas
    @ChrisAthanas 3 роки тому +2

    Many inaudible words for closed captioning, please review and fix so we that have hearing disabilities can understand

  • @tricksilver04
    @tricksilver04 4 роки тому +1

    Good job with hilt. I love how easy it is to use but I hope you can also discuss more on how to incorporate robolectric tests with hilt

  • @EmiRaz
    @EmiRaz 4 роки тому +5

    Dear Google, Instead of being overreacted to any technologies, stay calm and choose one or two great ways, don't bother us android developers too much.

  • @Soulcybering
    @Soulcybering 4 роки тому +4

    How about FragmentFactory support? It was one of the best thing for testing, is it supported by Hilt?

  • @Eduardo-fx9ih
    @Eduardo-fx9ih 3 роки тому

    Great video Daniel! Hilt becomes a lot easier than Dagger, congratulations!

  • @dmitriykarlovsky369
    @dmitriykarlovsky369 4 роки тому +1

    Hi. Does Hilt generate "vanila Dagger" components in Kotlin or it was just for demonstration? I faced problem that kapt runs only once and doesn't process newly generated code with annotations. Do you know the way to overcome this limitation?

  • @0xmg
    @0xmg 3 роки тому +1

    ApplicationComponent has been renamed to SingletonComponent !

  • @aliciabeltran
    @aliciabeltran 4 роки тому

    A question, on the minute 11:50 why your DataModule is in an object, and if the object is like a singleton why should I add Singleton annotation for provide de DataBase?

  • @abhishekkumar-en4tp
    @abhishekkumar-en4tp 4 роки тому

    How do I reinject in the Application class like Dagger?
    Pre - Assumptions, I have nine modules; each contains up to 40 APIs; Each module's Providers are Singleton; Working with AUTH also Token changes Each time after logout.

  • @FZerbinatti931
    @FZerbinatti931 Рік тому

    in the 15:30 slide, shouldn't the colon in the 3rd line go instead in the 2nd line?

  • @bassamhbyb
    @bassamhbyb 3 роки тому +2

    Ouch!! I feel sick because the audio goes on and off!!

  • @peerless2012
    @peerless2012 4 роки тому

    Prepare to use this in my new project!

  • @aliciabeltran
    @aliciabeltran 4 роки тому

    I just. try dagger. hilt and is very easy to setup it, but I don't know. how can a create unit test because the current documentation is not ready for us. Please tell us how can for example test ViewModels and trade coroutines ...

  • @TadashiCZ
    @TadashiCZ 4 роки тому +5

    Honestly? The quality of the video is terrible. The audio distorsts many times, it fades out in the middle of a word, sometimes the video is very low resolution but takes big part of the screen, etc. The voice skills are also very questionable. It does not look professional at all. Otherwise Hilt is very welcomed upgrade.

    • @adforknowledge6582
      @adforknowledge6582 4 роки тому

      Lockdown effect maybe.... :P :D He looks so tired too.... :P :D We should try to understand the situation.. Me too noticed all these things... :)

  • @RakeshPatel-zh7ds
    @RakeshPatel-zh7ds 4 роки тому

    I think the word "modules" is used to explain 2 different things and is confusing - Hilt @Module and android modules.

  • @severianojaramillo1945
    @severianojaramillo1945 4 роки тому

    Hilt looks pretty neat indeed. I would like to know if support for DFMs is in the roadmap though...

  • @mahabubul-hasan
    @mahabubul-hasan 4 роки тому

    hilt is great! will be using it from the next project.

  • @Ilamarea
    @Ilamarea 2 роки тому

    Video's a little outdated. Some of the annotation's mentioned are deprecated.

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому

      Thank you for the feedback! We have raised this with our team.

  • @Talaria.School
    @Talaria.School 2 роки тому

    0:04 Hi my name is.... #SlimShady
    That things said. Really useful content. Thanks.

  • @pradeepkumarreddykondreddy7048
    @pradeepkumarreddykondreddy7048 4 роки тому

    Can we use hilt in flutter apps also ??

  • @hiteshchalise3988
    @hiteshchalise3988 4 роки тому +5

    It would be much simpler to understand if there was thermosyphon example.. SMH.. Joking aside, thank you :)

  • @gellertbiro8067
    @gellertbiro8067 4 роки тому

    Can I pass parameters to the ViewModel from the activity/fragment?

    • @hitec1691
      @hitec1691 4 роки тому

      Well it depends. In general you should not pass anything to viewmodel that has activity or fragment context for example views. ViewModel is UI independent. You can create functions in viewmodel in which you could pass some data objects from activity/fragment. For things like repository and usecases you should use some DI pattern to inject them via viewModel factory.

  • @jose.caique
    @jose.caique 2 роки тому

    Really nice talk thanks :)

  • @akkhigan
    @akkhigan 4 роки тому

    Great explanation and DI solution

  • @RaajKanchan
    @RaajKanchan 2 роки тому

    Hello Community,
    I want to create an Object of a Class whose constructor has a string value.

  • @ankitrathore3946
    @ankitrathore3946 4 роки тому

    What about toothpick ?

  • @ahmedemazdoor658
    @ahmedemazdoor658 4 роки тому

    Greatly appreciated.

  • @naufalprakoso1
    @naufalprakoso1 4 роки тому

    Nice explanation!

  • @OhhhThatVarun
    @OhhhThatVarun 4 роки тому +1

    Koin laughs from distance... LOL

  • @coder5429
    @coder5429 4 роки тому

    thanks for the explanation

  • @gvetri18
    @gvetri18 3 роки тому

    I understood The bad bunny references

  • @PankajSavaliyaGoogle
    @PankajSavaliyaGoogle 4 роки тому

    Awesome 👍

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 4 роки тому

    Do developers use that? Okay, I will add in my library too.

  • @kalidsherefuddin
    @kalidsherefuddin Місяць тому

    Thanks for

  • @darwinspace
    @darwinspace 3 роки тому

    Un álbum de Bad bunny de ejemplo para inyección de dependencias? JAJAJAJA

  • @rameshsambu8501
    @rameshsambu8501 4 роки тому

    Great

  • @DigvijaySinghRajat
    @DigvijaySinghRajat 4 роки тому +1

    Time to refactor 😆

  • @TremezzoLake
    @TremezzoLake 2 місяці тому

    so badly explained.