1 /* 2 * Copyright 2022 Google LLC 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 package com.google.android.libraries.mobiledatadownload.internal.dagger; 17 18 import com.google.android.libraries.mobiledatadownload.TimeSource; 19 import com.google.android.libraries.mobiledatadownload.internal.MobileDataDownloadManager; 20 import com.google.android.libraries.mobiledatadownload.internal.logging.EventLogger; 21 import com.google.android.libraries.mobiledatadownload.internal.logging.LoggingStateStore; 22 import dagger.Component; 23 import javax.inject.Singleton; 24 25 /** Main component for standalone MDD library. */ 26 @Component( 27 modules = { 28 ApplicationContextModule.class, 29 DownloaderModule.class, 30 ExecutorsModule.class, 31 MainMddLibModule.class, 32 }) 33 @Singleton 34 public abstract class StandaloneComponent { 35 getMobileDataDownloadManager()36 public abstract MobileDataDownloadManager getMobileDataDownloadManager(); 37 getEventLogger()38 public abstract EventLogger getEventLogger(); 39 40 // TODO(b/214632773): remove this when event logger can be constructed internally getLoggingStateStore()41 public abstract LoggingStateStore getLoggingStateStore(); 42 getTimeSource()43 public abstract TimeSource getTimeSource(); 44 } 45