--

Good question Alexander. In theory, based on Dagger 2, it is supposed to be Subcomponent.

However, in Android Hilt, it is actually a Defined Component

package dagger.hilt.android.components;

import dagger.hilt.DefineComponent;
import dagger.hilt.android.scopes.ActivityScoped;

/** A Hilt component that has the lifetime of the activity. */
@ActivityScoped
@DefineComponent(parent = ActivityRetainedComponent.class)
public interface ActivityComponent {}

--

--

Elye - A One Eye Dev By His Grace
Elye - A One Eye Dev By His Grace

Written by Elye - A One Eye Dev By His Grace

Sharing Software Learning, Life and Faith Journey

No responses yet