1a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng/*
2ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanian * Copyright (C) 2017 The Android Open Source Project
3a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng *
4a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng * Licensed under the Apache License, Version 2.0 (the "License");
5a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng * you may not use this file except in compliance with the License.
6a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng * You may obtain a copy of the License at
7a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng *
8a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng *      http://www.apache.org/licenses/LICENSE-2.0
9a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng *
10a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng * Unless required by applicable law or agreed to in writing, software
11a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng * distributed under the License is distributed on an "AS IS" BASIS,
12a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng * See the License for the specific language governing permissions and
14a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng * limitations under the License
15a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng */
16a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng
17d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanianpackage com.android.dialer.binary.aosp;
18a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng
19d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanianimport android.support.annotation.NonNull;
20d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanianimport com.android.dialer.binary.common.DialerApplication;
21d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanianimport com.android.dialer.inject.ContextModule;
22d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanian
23d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanian/**
24d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanian * The application class for the AOSP Dialer. This is a version of the Dialer app that has no
25d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanian * dependency on Google Play Services.
26d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanian */
27d5e47f6da5b08b13ecdfa7f1edc7e12aeb83fab9Eric Erfanianpublic class AospDialerApplication extends DialerApplication {
28ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanian
29fc37b02f5d3381a7882770941e461b13b679b6efEric Erfanian  /** Returns a new instance of the root component for the AOSP Dialer. */
30fc37b02f5d3381a7882770941e461b13b679b6efEric Erfanian  @Override
31fc37b02f5d3381a7882770941e461b13b679b6efEric Erfanian  @NonNull
32fc37b02f5d3381a7882770941e461b13b679b6efEric Erfanian  protected Object buildRootComponent() {
33fc37b02f5d3381a7882770941e461b13b679b6efEric Erfanian    return DaggerAospDialerRootComponent.builder().contextModule(new ContextModule(this)).build();
34fc37b02f5d3381a7882770941e461b13b679b6efEric Erfanian  }
35a152b4605cd8f441257f8b561fb8b1473e34c8a9Chiao Cheng}
36