Remove named injection and provide presenter through a factory
This commit is contained in:
parent
a1fe191b64
commit
d08a131429
11 changed files with 68 additions and 117 deletions
|
|
@ -1,21 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023 New Vector Ltd
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.element.android.features.selectusers.api
|
||||
|
||||
import io.element.android.libraries.architecture.Presenter
|
||||
|
||||
interface SelectMultipleUsersPresenter : Presenter<SelectUsersState>
|
||||
|
|
@ -18,7 +18,9 @@ package io.element.android.features.selectusers.api
|
|||
|
||||
import io.element.android.libraries.architecture.Presenter
|
||||
|
||||
const val SINGLE_SELECTION_USERS_VARIANT = "single_selection_users"
|
||||
const val MULTI_SELECTION_USERS_VARIANT = "multi_selection_users"
|
||||
interface SelectUsersPresenter : Presenter<SelectUsersState> {
|
||||
|
||||
interface SelectUsersPresenter : Presenter<SelectUsersState>
|
||||
interface Factory {
|
||||
fun create(args: SelectUsersPresenterArgs): SelectUsersPresenter
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@
|
|||
|
||||
package io.element.android.features.selectusers.api
|
||||
|
||||
import io.element.android.libraries.architecture.Presenter
|
||||
|
||||
interface SelectSingleUserPresenter : Presenter<SelectUsersState>
|
||||
data class SelectUsersPresenterArgs(
|
||||
val isMultiSelectionEnabled: Boolean,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue