May 1, 2022
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 {}