mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Update metro to v0.11.0 (#6245)
* Update metro to v0.11.0 * Fix `@AssistedInject` usages Now the injected variables in the factories must match the names in the constructors --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ class ConfigureRoomPresenter(
|
||||
) : Presenter<ConfigureRoomState> {
|
||||
@AssistedFactory
|
||||
interface Factory {
|
||||
fun create(isSpace: Boolean, parentSpaceId: RoomId?): ConfigureRoomPresenter
|
||||
fun create(isSpace: Boolean, initialParentSpaceId: RoomId?): ConfigureRoomPresenter
|
||||
}
|
||||
|
||||
private val cameraPermissionPresenter: PermissionsPresenter = permissionsPresenterFactory.create(android.Manifest.permission.CAMERA)
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ class CreatePollNode(
|
||||
private var isNavigatingUp = AtomicBoolean(false)
|
||||
|
||||
private val presenter = presenterFactory.create(
|
||||
backNavigator = {
|
||||
navigateUp = {
|
||||
if (isNavigatingUp.compareAndSet(false, true)) {
|
||||
navigateUp()
|
||||
}
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ class CreatePollPresenter(
|
||||
fun interface Factory {
|
||||
fun create(
|
||||
timelineMode: Timeline.Mode,
|
||||
backNavigator: () -> Unit,
|
||||
navigateUp: () -> Unit,
|
||||
mode: CreatePollMode
|
||||
): CreatePollPresenter
|
||||
}
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ class EditDefaultNotificationSettingPresenter(
|
||||
) : Presenter<EditDefaultNotificationSettingState> {
|
||||
@AssistedFactory
|
||||
interface Factory {
|
||||
fun create(oneToOne: Boolean): EditDefaultNotificationSettingPresenter
|
||||
fun create(isOneToOne: Boolean): EditDefaultNotificationSettingPresenter
|
||||
}
|
||||
|
||||
private val collator = Collator.getInstance().apply {
|
||||
|
||||
+4
-4
@@ -25,8 +25,8 @@ import kotlinx.coroutines.launch
|
||||
|
||||
@AssistedInject
|
||||
class ViewFilePresenter(
|
||||
@Assisted("path") val path: String,
|
||||
@Assisted("name") val name: String,
|
||||
@Assisted val path: String,
|
||||
@Assisted val name: String,
|
||||
private val fileContentReader: FileContentReader,
|
||||
private val fileShare: FileShare,
|
||||
private val fileSave: FileSave,
|
||||
@@ -34,8 +34,8 @@ class ViewFilePresenter(
|
||||
@AssistedFactory
|
||||
interface Factory {
|
||||
fun create(
|
||||
@Assisted("path") path: String,
|
||||
@Assisted("name") name: String,
|
||||
path: String,
|
||||
name: String,
|
||||
): ViewFilePresenter
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user