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

Commit 508b888d authored by Dave Mankoff's avatar Dave Mankoff
Browse files

Don't generate a Dagger component for GlobalRootComponent.

Bug: 257631899
Test: manuall built and run
Change-Id: I62e937187b93363711020e86314e15d7d0633c28
parent b4c05895
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);