mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Compact code
This commit is contained in:
parent
a3133773a3
commit
73ac7ab341
1 changed files with 42 additions and 58 deletions
|
@ -77,85 +77,69 @@ import im.vector.riotx.features.ui.UiStateRepository
|
||||||
@ScreenScope
|
@ScreenScope
|
||||||
interface ScreenComponent {
|
interface ScreenComponent {
|
||||||
|
|
||||||
|
/* ==========================================================================================
|
||||||
|
* Shortcut to VectorComponent elements
|
||||||
|
* ========================================================================================== */
|
||||||
|
|
||||||
fun activeSessionHolder(): ActiveSessionHolder
|
fun activeSessionHolder(): ActiveSessionHolder
|
||||||
|
|
||||||
fun fragmentFactory(): FragmentFactory
|
fun fragmentFactory(): FragmentFactory
|
||||||
|
|
||||||
fun viewModelFactory(): ViewModelProvider.Factory
|
fun viewModelFactory(): ViewModelProvider.Factory
|
||||||
|
|
||||||
fun bugReporter(): BugReporter
|
fun bugReporter(): BugReporter
|
||||||
|
|
||||||
fun rageShake(): RageShake
|
fun rageShake(): RageShake
|
||||||
|
|
||||||
fun navigator(): Navigator
|
fun navigator(): Navigator
|
||||||
|
|
||||||
fun errorFormatter(): ErrorFormatter
|
fun errorFormatter(): ErrorFormatter
|
||||||
|
|
||||||
fun uiStateRepository(): UiStateRepository
|
fun uiStateRepository(): UiStateRepository
|
||||||
|
|
||||||
|
/* ==========================================================================================
|
||||||
|
* Activities
|
||||||
|
* ========================================================================================== */
|
||||||
|
|
||||||
fun inject(activity: HomeActivity)
|
fun inject(activity: HomeActivity)
|
||||||
|
fun inject(activity: VectorSettingsActivity)
|
||||||
|
fun inject(activity: KeysBackupManageActivity)
|
||||||
|
fun inject(activity: EmojiReactionPickerActivity)
|
||||||
|
fun inject(activity: LoginActivity)
|
||||||
|
fun inject(activity: LinkHandlerActivity)
|
||||||
|
fun inject(activity: MainActivity)
|
||||||
|
fun inject(activity: RoomDirectoryActivity)
|
||||||
|
fun inject(activity: BugReportActivity)
|
||||||
|
fun inject(activity: ImageMediaViewerActivity)
|
||||||
|
fun inject(activity: FilteredRoomsActivity)
|
||||||
|
fun inject(activity: CreateRoomActivity)
|
||||||
|
fun inject(activity: VideoMediaViewerActivity)
|
||||||
|
fun inject(activity: CreateDirectRoomActivity)
|
||||||
|
fun inject(activity: IncomingShareActivity)
|
||||||
|
fun inject(activity: SoftLogoutActivity)
|
||||||
|
fun inject(activity: PermalinkHandlerActivity)
|
||||||
|
fun inject(activity: QrCodeScannerActivity)
|
||||||
|
fun inject(activity: DebugMenuActivity)
|
||||||
|
fun inject(activity: SharedSecureStorageActivity)
|
||||||
|
fun inject(activity: BigImageViewerActivity)
|
||||||
|
|
||||||
|
/* ==========================================================================================
|
||||||
|
* BottomSheets
|
||||||
|
* ========================================================================================== */
|
||||||
|
|
||||||
fun inject(bottomSheet: MessageActionsBottomSheet)
|
fun inject(bottomSheet: MessageActionsBottomSheet)
|
||||||
|
|
||||||
fun inject(bottomSheet: ViewReactionsBottomSheet)
|
fun inject(bottomSheet: ViewReactionsBottomSheet)
|
||||||
|
|
||||||
fun inject(bottomSheet: ViewEditHistoryBottomSheet)
|
fun inject(bottomSheet: ViewEditHistoryBottomSheet)
|
||||||
|
|
||||||
fun inject(activity: VectorSettingsActivity)
|
|
||||||
|
|
||||||
fun inject(activity: KeysBackupManageActivity)
|
|
||||||
|
|
||||||
fun inject(activity: EmojiReactionPickerActivity)
|
|
||||||
|
|
||||||
fun inject(activity: LoginActivity)
|
|
||||||
|
|
||||||
fun inject(activity: LinkHandlerActivity)
|
|
||||||
|
|
||||||
fun inject(activity: MainActivity)
|
|
||||||
|
|
||||||
fun inject(activity: RoomDirectoryActivity)
|
|
||||||
|
|
||||||
fun inject(activity: BugReportActivity)
|
|
||||||
|
|
||||||
fun inject(activity: ImageMediaViewerActivity)
|
|
||||||
|
|
||||||
fun inject(activity: FilteredRoomsActivity)
|
|
||||||
|
|
||||||
fun inject(activity: CreateRoomActivity)
|
|
||||||
|
|
||||||
fun inject(view: VectorInviteView)
|
|
||||||
|
|
||||||
fun inject(activity: VideoMediaViewerActivity)
|
|
||||||
|
|
||||||
fun inject(preference: UserAvatarPreference)
|
|
||||||
|
|
||||||
fun inject(activity: CreateDirectRoomActivity)
|
|
||||||
|
|
||||||
fun inject(bottomSheet: DisplayReadReceiptsBottomSheet)
|
fun inject(bottomSheet: DisplayReadReceiptsBottomSheet)
|
||||||
|
|
||||||
fun inject(button: ReactionButton)
|
|
||||||
|
|
||||||
fun inject(activity: IncomingShareActivity)
|
|
||||||
|
|
||||||
fun inject(bottomSheet: RoomListQuickActionsBottomSheet)
|
fun inject(bottomSheet: RoomListQuickActionsBottomSheet)
|
||||||
|
|
||||||
fun inject(activity: SoftLogoutActivity)
|
|
||||||
|
|
||||||
fun inject(bottomSheet: VerificationBottomSheet)
|
fun inject(bottomSheet: VerificationBottomSheet)
|
||||||
|
|
||||||
fun inject(activity: PermalinkHandlerActivity)
|
|
||||||
|
|
||||||
fun inject(activity: QrCodeScannerActivity)
|
|
||||||
|
|
||||||
fun inject(activity: DebugMenuActivity)
|
|
||||||
|
|
||||||
fun inject(bottomSheet: DeviceVerificationInfoBottomSheet)
|
fun inject(bottomSheet: DeviceVerificationInfoBottomSheet)
|
||||||
|
|
||||||
fun inject(bottomSheet: DeviceListBottomSheet)
|
fun inject(bottomSheet: DeviceListBottomSheet)
|
||||||
|
|
||||||
fun inject(activity: SharedSecureStorageActivity)
|
/* ==========================================================================================
|
||||||
|
* Others
|
||||||
|
* ========================================================================================== */
|
||||||
|
|
||||||
fun inject(activity: BigImageViewerActivity)
|
fun inject(view: VectorInviteView)
|
||||||
|
fun inject(preference: UserAvatarPreference)
|
||||||
|
fun inject(button: ReactionButton)
|
||||||
|
|
||||||
|
/* ==========================================================================================
|
||||||
|
* Factory
|
||||||
|
* ========================================================================================== */
|
||||||
|
|
||||||
@Component.Factory
|
@Component.Factory
|
||||||
interface Factory {
|
interface Factory {
|
||||||
|
|
Loading…
Reference in a new issue