Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d33bc5c authored by Dave Mankoff's avatar Dave Mankoff Committed by Android (Google) Code Review
Browse files

Merge "Don't generate a Dagger component for GlobalRootComponent." into tm-qpr-dev

parents 1e20bf87 508b888d
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -21,24 +21,21 @@ import android.content.Context;
import com.android.systemui.dagger.qualifiers.InstrumentationTest;
import com.android.systemui.util.InitializationChecker;

import javax.inject.Singleton;

import dagger.BindsInstance;
import dagger.Component;

/**
 * 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.
 */
@Singleton
@Component(modules = {GlobalModule.class})
public interface GlobalRootComponent {

    /**
     * Builder for a GlobalRootComponent.
     */
    @Component.Builder
    interface Builder {
        @BindsInstance
        Builder context(Context context);