Merge "Don't generate a Dagger component for GlobalRootComponent." into tm-qpr-dev
This commit is contained in:
@@ -21,24 +21,21 @@ import android.content.Context;
|
|||||||
import com.android.systemui.dagger.qualifiers.InstrumentationTest;
|
import com.android.systemui.dagger.qualifiers.InstrumentationTest;
|
||||||
import com.android.systemui.util.InitializationChecker;
|
import com.android.systemui.util.InitializationChecker;
|
||||||
|
|
||||||
import javax.inject.Singleton;
|
|
||||||
|
|
||||||
import dagger.BindsInstance;
|
import dagger.BindsInstance;
|
||||||
import dagger.Component;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base root component for Dagger injection.
|
* Base root component for Dagger injection.
|
||||||
*
|
*
|
||||||
|
* This class is not actually annotated as a Dagger component, since it is not used directly as one.
|
||||||
|
* Doing so generates unnecessary code bloat.
|
||||||
|
*
|
||||||
* See {@link ReferenceGlobalRootComponent} for the one actually used by AOSP.
|
* See {@link ReferenceGlobalRootComponent} for the one actually used by AOSP.
|
||||||
*/
|
*/
|
||||||
@Singleton
|
|
||||||
@Component(modules = {GlobalModule.class})
|
|
||||||
public interface GlobalRootComponent {
|
public interface GlobalRootComponent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builder for a GlobalRootComponent.
|
* Builder for a GlobalRootComponent.
|
||||||
*/
|
*/
|
||||||
@Component.Builder
|
|
||||||
interface Builder {
|
interface Builder {
|
||||||
@BindsInstance
|
@BindsInstance
|
||||||
Builder context(Context context);
|
Builder context(Context context);
|
||||||
|
|||||||
Reference in New Issue
Block a user