Home | History | Annotate | Download | only in google
      1 /*
      2  * Copyright (C) 2017 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License
     15  */
     16 
     17 package com.android.dialer.binary.google;
     18 
     19 import com.android.dialer.binary.basecomponent.BaseDialerRootComponent;
     20 import com.android.dialer.calllog.CallLogModule;
     21 import com.android.dialer.commandline.CommandLineModule;
     22 import com.android.dialer.common.concurrent.DialerExecutorModule;
     23 import com.android.dialer.configprovider.SharedPrefConfigProviderModule;
     24 import com.android.dialer.duo.stub.StubDuoModule;
     25 import com.android.dialer.enrichedcall.stub.StubEnrichedCallModule;
     26 import com.android.dialer.feedback.stub.StubFeedbackModule;
     27 import com.android.dialer.glidephotomanager.GlidePhotoManagerModule;
     28 import com.android.dialer.inject.ContextModule;
     29 import com.android.dialer.metrics.StubMetricsModule;
     30 import com.android.dialer.phonelookup.PhoneLookupModule;
     31 import com.android.dialer.phonenumbergeoutil.impl.PhoneNumberGeoUtilModule;
     32 import com.android.dialer.precall.impl.PreCallModule;
     33 import com.android.dialer.preferredsim.suggestion.stub.StubSimSuggestionModule;
     34 import com.android.dialer.simulator.impl.SimulatorModule;
     35 import com.android.dialer.simulator.stub.StubSimulatorEnrichedCallModule;
     36 import com.android.dialer.spam.StubSpamModule;
     37 import com.android.dialer.storage.StorageModule;
     38 import com.android.dialer.strictmode.impl.SystemStrictModeModule;
     39 import com.android.incallui.calllocation.impl.CallLocationModule;
     40 import com.android.incallui.maps.impl.MapsModule;
     41 import com.android.incallui.speakeasy.StubSpeakEasyModule;
     42 import com.android.newbubble.stub.StubNewBubbleModule;
     43 import com.android.voicemail.impl.VoicemailModule;
     44 import dagger.Component;
     45 import javax.inject.Singleton;
     46 
     47 /**
     48  * Root component for the Google Stub Dialer application. Unlike the AOSP variant, this component
     49  * can pull in modules that depend on Google Play Services like the maps module.
     50  */
     51 @Singleton
     52 @Component(
     53   modules = {
     54     CallLocationModule.class,
     55     CallLogModule.class,
     56     CommandLineModule.class,
     57     ContextModule.class,
     58     DialerExecutorModule.class,
     59     GlidePhotoManagerModule.class,
     60     MapsModule.class,
     61     PhoneLookupModule.class, // TODO(zachh): Module which uses APDL?
     62     PhoneNumberGeoUtilModule.class,
     63     PreCallModule.class,
     64     SharedPrefConfigProviderModule.class,
     65     SimulatorModule.class,
     66     StorageModule.class,
     67     StubSimulatorEnrichedCallModule.class,
     68     StubDuoModule.class,
     69     StubEnrichedCallModule.class,
     70     StubFeedbackModule.class,
     71     StubMetricsModule.class,
     72     StubNewBubbleModule.class,
     73     StubSimSuggestionModule.class,
     74     StubSpamModule.class,
     75     StubSpeakEasyModule.class,
     76     SystemStrictModeModule.class,
     77     VoicemailModule.class,
     78   }
     79 )
     80 public interface GoogleStubDialerRootComponent extends BaseDialerRootComponent {}
     81