2018-03-27 19:47:00 +02:00
|
|
|
/* Copyright 2018 charlag
|
|
|
|
*
|
|
|
|
* This file is a part of Tusky.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Tusky is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
|
|
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
* Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with Tusky; if not,
|
|
|
|
* see <http://www.gnu.org/licenses>. */
|
|
|
|
|
|
|
|
package com.keylesspalace.tusky.di
|
|
|
|
|
|
|
|
import com.keylesspalace.tusky.*
|
2020-11-18 21:12:27 +01:00
|
|
|
import com.keylesspalace.tusky.components.announcements.AnnouncementsActivity
|
2019-12-19 19:09:40 +01:00
|
|
|
import com.keylesspalace.tusky.components.compose.ComposeActivity
|
2021-01-21 18:57:09 +01:00
|
|
|
import com.keylesspalace.tusky.components.drafts.DraftsActivity
|
2019-06-11 15:56:27 +02:00
|
|
|
import com.keylesspalace.tusky.components.instancemute.InstanceListActivity
|
2020-09-02 12:27:51 +02:00
|
|
|
import com.keylesspalace.tusky.components.preference.PreferencesActivity
|
2019-06-09 16:55:34 +02:00
|
|
|
import com.keylesspalace.tusky.components.report.ReportActivity
|
2019-12-22 11:47:34 +01:00
|
|
|
import com.keylesspalace.tusky.components.scheduled.ScheduledTootActivity
|
2019-07-19 20:10:20 +02:00
|
|
|
import com.keylesspalace.tusky.components.search.SearchActivity
|
2018-03-27 19:47:00 +02:00
|
|
|
import dagger.Module
|
|
|
|
import dagger.android.ContributesAndroidInjector
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by charlag on 3/24/18.
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Module
|
|
|
|
abstract class ActivitiesModule {
|
2018-05-06 11:07:10 +02:00
|
|
|
|
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesBaseActivity(): BaseActivity
|
|
|
|
|
2018-03-27 19:47:00 +02:00
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesMainActivity(): MainActivity
|
|
|
|
|
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesAccountActivity(): AccountActivity
|
|
|
|
|
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesListsActivity(): ListsActivity
|
|
|
|
|
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesComposeActivity(): ComposeActivity
|
|
|
|
|
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesEditProfileActivity(): EditProfileActivity
|
|
|
|
|
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesAccountListActivity(): AccountListActivity
|
|
|
|
|
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesModalTimelineActivity(): ModalTimelineActivity
|
|
|
|
|
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesViewTagActivity(): ViewTagActivity
|
|
|
|
|
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesViewThreadActivity(): ViewThreadActivity
|
|
|
|
|
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
2019-11-19 10:15:32 +01:00
|
|
|
abstract fun contributesStatusListActivity(): StatusListActivity
|
2018-03-27 19:47:00 +02:00
|
|
|
|
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
2019-11-19 10:15:32 +01:00
|
|
|
abstract fun contributesSearchAvtivity(): SearchActivity
|
2018-03-27 19:47:00 +02:00
|
|
|
|
2019-02-11 16:59:01 +01:00
|
|
|
@ContributesAndroidInjector
|
2018-03-27 19:47:00 +02:00
|
|
|
abstract fun contributesAboutActivity(): AboutActivity
|
2018-04-20 17:22:40 +02:00
|
|
|
|
2019-02-11 16:59:01 +01:00
|
|
|
@ContributesAndroidInjector
|
2018-04-22 17:20:01 +02:00
|
|
|
abstract fun contributesLoginActivity(): LoginActivity
|
|
|
|
|
2019-02-11 16:59:01 +01:00
|
|
|
@ContributesAndroidInjector
|
2018-04-22 17:20:01 +02:00
|
|
|
abstract fun contributesSplashActivity(): SplashActivity
|
|
|
|
|
2018-05-08 19:15:10 +02:00
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesSavedTootActivity(): SavedTootActivity
|
|
|
|
|
2018-11-12 21:09:39 +01:00
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesPreferencesActivity(): PreferencesActivity
|
2018-05-08 19:15:10 +02:00
|
|
|
|
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesViewMediaActivity(): ViewMediaActivity
|
|
|
|
|
2018-06-25 13:02:34 +02:00
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesLicenseActivity(): LicenseActivity
|
|
|
|
|
2019-02-12 19:22:37 +01:00
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesTabPreferenceActivity(): TabPreferenceActivity
|
|
|
|
|
2019-03-20 19:25:26 +01:00
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesFiltersActivity(): FiltersActivity
|
|
|
|
|
2019-06-09 16:55:34 +02:00
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesReportActivity(): ReportActivity
|
2019-06-11 15:56:27 +02:00
|
|
|
|
|
|
|
@ContributesAndroidInjector(modules = [FragmentBuildersModule::class])
|
|
|
|
abstract fun contributesInstanceListActivity(): InstanceListActivity
|
2019-10-02 21:28:12 +02:00
|
|
|
|
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesScheduledTootActivity(): ScheduledTootActivity
|
2020-11-18 21:12:27 +01:00
|
|
|
|
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesAnnouncementsActivity(): AnnouncementsActivity
|
2021-01-21 18:57:09 +01:00
|
|
|
|
|
|
|
@ContributesAndroidInjector
|
|
|
|
abstract fun contributesDraftActivity(): DraftsActivity
|
2019-03-20 19:25:26 +01:00
|
|
|
}
|