Posts
FunkyMuse
Cancel

Hilt to the rescue, part 2

In the previous post Part #1, we’ve explored how to set up Hilt, the pre-defined components that come with it and migrated to Hilt from our Dagger sample. In this blog post we’ll explore how to ...

Hilt to the rescue, part 1

Hilt is a dependency injection library for Android that reduces the boilerplate of doing manual dependency injection in your project, it also means that Hilt is just an abstraction on top of Dagg...

Dagger2 is hard, but it can be easy, part 7

In the previous post we’ve encountered when’s the right place to inject, named and qualifiers. In this post we’ll learn about multi bindings and their power. They’re your best buddies in the Da...

Dagger2 is hard, but it can be easy, part 6

In the previous post we’ve encountered subcomponents and their hierarchy, custom scopes and we did not waste any time. In this post we’ll learn when’s the right place to inject, named and qualif...

Dagger2 is hard, but it can be easy, part 5

In the previous post we’ve explored scope operators. In this post we’ll encounter subcomponents and their hierarchy, custom scopes and let’s not waste any time. Starting off by including the an...

Dagger2 is hard, but it can be easy, part 4

In the previous post we’ve encountered method injection and learnt about the order of injection. Today we’ll explore @Singleton, remember that @Singleton is a scope operator. From the docs we h...

Dagger2 is hard, but it can be easy, part 3

In the previous post we’ve seen simpler form of injection with Dagger, but we haven’t talked about the types of injection that Dagger2 has to offer. So far we’ve seen variable injection but ther...

Dagger2 is hard, but it can be easy, part 2

We’re here again telling ourselves that Dagger2 is easy, as we’ve seen in the first part. To demystify some myths about Dagger2 we’ll see it’s simplicity in the smallest blog post so far. From ...

Dagger2 is hard, but it can be easy, part 1

One day you decided to use Dagger2 and then you were lost, don’t worry, most of us were already there, Dagger2 is easy, you’ll see, it’s literally one interface, let’s start. A little bit of his...

Reified, crossinline, noinline and inline everything?

This is a continuation of the previous blog post. As promised this is the blog post where we’ll talk more about the mysterious inline, crossinline and not so confusing noinline and my most favor...