mirror of https://github.com/tasks/tasks
Remove empty Dagger components
parent
b1e0ab6d67
commit
cde5bcfb87
@ -1,21 +1,57 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import com.todoroo.astrid.gcal.CalendarAlarmReceiver
|
||||
import com.todoroo.astrid.provider.Astrid2TaskProvider
|
||||
import dagger.Component
|
||||
import org.tasks.Tasks
|
||||
import org.tasks.backup.TasksBackupAgent
|
||||
import org.tasks.dashclock.DashClockExtension
|
||||
import org.tasks.jobs.*
|
||||
import org.tasks.locale.receiver.TaskerIntentService
|
||||
import org.tasks.location.GeofenceTransitionsIntentService
|
||||
import org.tasks.notifications.NotificationClearedReceiver
|
||||
import org.tasks.receivers.BootCompletedReceiver
|
||||
import org.tasks.receivers.CompleteTaskReceiver
|
||||
import org.tasks.receivers.MyPackageReplacedReceiver
|
||||
import org.tasks.receivers.RefreshReceiver
|
||||
import org.tasks.scheduling.CalendarNotificationIntentService
|
||||
import org.tasks.scheduling.NotificationSchedulerIntentService
|
||||
import org.tasks.widget.ScrollableWidgetUpdateService
|
||||
import org.tasks.widget.TasksWidget
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
@Component(modules = [ApplicationModule::class, ProductionModule::class])
|
||||
interface ApplicationComponent {
|
||||
operator fun plus(module: ActivityModule): ActivityComponent
|
||||
operator fun plus(module: BroadcastModule): BroadcastComponent
|
||||
operator fun plus(module: ServiceModule): ServiceComponent
|
||||
operator fun plus(module: WorkModule): JobComponent
|
||||
fun inject(dashClockExtension: DashClockExtension)
|
||||
fun inject(tasks: Tasks)
|
||||
fun inject(scrollableWidgetUpdateService: ScrollableWidgetUpdateService)
|
||||
fun inject(tasksBackupAgent: TasksBackupAgent)
|
||||
|
||||
fun inject(broadcastReceiver: CalendarAlarmReceiver)
|
||||
fun inject(broadcastReceiver: MyPackageReplacedReceiver)
|
||||
fun inject(broadcastReceiver: CompleteTaskReceiver)
|
||||
fun inject(broadcastReceiver: BootCompletedReceiver)
|
||||
fun inject(broadcastReceiver: TasksWidget)
|
||||
fun inject(broadcastReceiver: NotificationClearedReceiver)
|
||||
|
||||
fun inject(contentProvider: Astrid2TaskProvider)
|
||||
|
||||
fun inject(service: CalendarNotificationIntentService)
|
||||
fun inject(service: GeofenceTransitionsIntentService)
|
||||
fun inject(service: NotificationSchedulerIntentService)
|
||||
fun inject(service: TaskerIntentService)
|
||||
fun inject(service: NotificationService)
|
||||
fun inject(service: RefreshReceiver)
|
||||
|
||||
fun inject(work: SyncWork)
|
||||
fun inject(work: BackupWork)
|
||||
fun inject(work: RefreshWork)
|
||||
fun inject(work: CleanupWork)
|
||||
fun inject(work: MidnightRefreshWork)
|
||||
fun inject(work: AfterSaveWork)
|
||||
fun inject(work: DriveUploader)
|
||||
fun inject(work: ReverseGeocodeWork)
|
||||
fun inject(work: RemoteConfigWork)
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import com.todoroo.astrid.gcal.CalendarAlarmReceiver
|
||||
import dagger.Subcomponent
|
||||
import org.tasks.notifications.NotificationClearedReceiver
|
||||
import org.tasks.receivers.BootCompletedReceiver
|
||||
import org.tasks.receivers.CompleteTaskReceiver
|
||||
import org.tasks.receivers.MyPackageReplacedReceiver
|
||||
import org.tasks.widget.TasksWidget
|
||||
|
||||
@Subcomponent(modules = [BroadcastModule::class])
|
||||
interface BroadcastComponent {
|
||||
fun inject(broadcastReceiver: CalendarAlarmReceiver)
|
||||
fun inject(broadcastReceiver: MyPackageReplacedReceiver)
|
||||
fun inject(broadcastReceiver: CompleteTaskReceiver)
|
||||
fun inject(broadcastReceiver: BootCompletedReceiver)
|
||||
fun inject(broadcastReceiver: TasksWidget)
|
||||
fun inject(broadcastReceiver: NotificationClearedReceiver)
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import dagger.Module
|
||||
|
||||
@Module
|
||||
class BroadcastModule
|
@ -1,11 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import com.todoroo.astrid.provider.Astrid2TaskProvider
|
||||
import dagger.Component
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
@Component(modules = [ContentProviderModule::class])
|
||||
interface ContentProviderComponent {
|
||||
fun inject(contentProvider: Astrid2TaskProvider)
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import dagger.Module
|
||||
|
||||
@Module(includes = [ProductionModule::class])
|
||||
internal class ContentProviderModule
|
@ -1,35 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import dagger.Subcomponent
|
||||
import org.tasks.activities.ListPicker
|
||||
import org.tasks.calendars.CalendarPicker
|
||||
import org.tasks.dialogs.*
|
||||
import org.tasks.locale.LocalePickerDialog
|
||||
import org.tasks.reminders.NotificationDialog
|
||||
import org.tasks.reminders.SnoozeDialog
|
||||
import org.tasks.repeats.BasicRecurrenceDialog
|
||||
import org.tasks.repeats.CustomRecurrenceDialog
|
||||
|
||||
@Subcomponent(modules = [DialogFragmentModule::class])
|
||||
interface DialogFragmentComponent {
|
||||
fun inject(dialogFragment: ListPicker)
|
||||
fun inject(dialogFragment: NotificationDialog)
|
||||
fun inject(dialogFragment: CalendarPicker)
|
||||
fun inject(dialogFragment: AddAttachmentDialog)
|
||||
fun inject(dialogFragment: SnoozeDialog)
|
||||
fun inject(dialogFragment: SortDialog)
|
||||
fun inject(dialogFragment: RecordAudioDialog)
|
||||
fun inject(dialogFragment: CustomRecurrenceDialog)
|
||||
fun inject(dialogFragment: BasicRecurrenceDialog)
|
||||
fun inject(dialogFragment: GeofenceDialog)
|
||||
fun inject(dialogFragment: IconPickerDialog)
|
||||
fun inject(dialogFragment: ExportTasksDialog)
|
||||
fun inject(dialogFragment: ImportTasksDialog)
|
||||
fun inject(dialogFragment: LocalePickerDialog)
|
||||
fun inject(dialogFragment: ThemePickerDialog)
|
||||
fun inject(dialogFragment: ColorWheelPicker)
|
||||
fun inject(dialogFragment: ColorPalettePicker)
|
||||
fun inject(dialogFragment: DateTimePicker)
|
||||
fun inject(dialogFragment: NewFilterDialog)
|
||||
fun inject(dialogFragment: WhatsNewDialog)
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import androidx.fragment.app.Fragment
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
|
||||
@Module
|
||||
class DialogFragmentModule internal constructor(@get:Provides val fragment: Fragment)
|
@ -1,17 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import dagger.Subcomponent
|
||||
import org.tasks.jobs.*
|
||||
|
||||
@Subcomponent(modules = [WorkModule::class])
|
||||
interface JobComponent {
|
||||
fun inject(work: SyncWork)
|
||||
fun inject(work: BackupWork)
|
||||
fun inject(work: RefreshWork)
|
||||
fun inject(work: CleanupWork)
|
||||
fun inject(work: MidnightRefreshWork)
|
||||
fun inject(work: AfterSaveWork)
|
||||
fun inject(work: DriveUploader)
|
||||
fun inject(work: ReverseGeocodeWork)
|
||||
fun inject(work: RemoteConfigWork)
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import dagger.Subcomponent
|
||||
import org.tasks.jobs.NotificationService
|
||||
import org.tasks.locale.receiver.TaskerIntentService
|
||||
import org.tasks.location.GeofenceTransitionsIntentService
|
||||
import org.tasks.receivers.RefreshReceiver
|
||||
import org.tasks.scheduling.CalendarNotificationIntentService
|
||||
import org.tasks.scheduling.NotificationSchedulerIntentService
|
||||
|
||||
@Subcomponent(modules = [ServiceModule::class])
|
||||
interface ServiceComponent {
|
||||
fun inject(service: CalendarNotificationIntentService)
|
||||
fun inject(service: GeofenceTransitionsIntentService)
|
||||
fun inject(service: NotificationSchedulerIntentService)
|
||||
fun inject(service: TaskerIntentService)
|
||||
fun inject(service: NotificationService)
|
||||
fun inject(service: RefreshReceiver)
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import dagger.Module
|
||||
|
||||
@Module
|
||||
class ServiceModule
|
@ -1,6 +0,0 @@
|
||||
package org.tasks.injection
|
||||
|
||||
import dagger.Module
|
||||
|
||||
@Module
|
||||
class WorkModule
|
Loading…
Reference in New Issue