Apply ktlint format

This commit is contained in:
ganfra 2023-01-13 18:37:28 +01:00
parent b286b8bf9d
commit 1919058aac
28 changed files with 17 additions and 39 deletions

View file

@ -33,5 +33,4 @@ class MatrixInitializer : Initializer<Unit> {
}
override fun dependencies(): List<Class<out Initializer<*>>> = listOf(TimberInitializer::class.java)
}

View file

@ -31,7 +31,6 @@ plugins {
alias(libs.plugins.dependencygraph)
}
tasks.register<Delete>("clean").configure {
delete(rootProject.buildDir)
}

View file

@ -59,7 +59,6 @@ import io.element.android.x.designsystem.components.VectorIcon
import io.element.android.x.features.login.R
import io.element.android.x.features.login.error.changeServerError
@Composable
fun ChangeServerView(
state: ChangeServerState,

View file

@ -21,7 +21,6 @@ import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.lifecycle.Lifecycle
import com.bumble.appyx.core.lifecycle.subscribe
import com.bumble.appyx.core.modality.BuildContext
import com.bumble.appyx.core.node.Node
import com.bumble.appyx.core.plugin.Plugin

View file

@ -17,7 +17,6 @@
package io.element.android.x.features.login.root
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
@ -26,7 +25,6 @@ import androidx.compose.runtime.saveable.rememberSaveable
import io.element.android.x.architecture.Presenter
import io.element.android.x.matrix.Matrix
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.launch
import javax.inject.Inject

View file

@ -74,7 +74,6 @@ fun MessagesView(
modifier: Modifier = Modifier,
onBackPressed: () -> Unit,
) {
LogCompositions(tag = "MessagesScreen", msg = "Root")
val itemActionsBottomSheetState = rememberModalBottomSheetState(
initialValue = ModalBottomSheetValue.Hidden,
@ -163,7 +162,6 @@ fun MessagesViewContent(
.fillMaxWidth()
.wrapContentHeight(Alignment.Bottom)
)
}
}

View file

@ -34,7 +34,6 @@ class ActionListPresenter @Inject constructor() : Presenter<ActionListState> {
@Composable
override fun present(): ActionListState {
val localCoroutineScope = rememberCoroutineScope()
val target: MutableState<ActionListState.Target> = remember {

View file

@ -130,4 +130,3 @@ private fun SheetContent(
}
}
}

View file

@ -25,7 +25,6 @@ fun MessageComposerView(
state: MessageComposerState,
modifier: Modifier = Modifier,
) {
fun onFullscreenToggle() {
state.eventSink(MessageComposerEvents.ToggleFullScreenState)
}

View file

@ -62,7 +62,6 @@ class TimelinePresenter @Inject constructor(
@Composable
override fun present(): TimelineState {
val localCoroutineScope = rememberCoroutineScope()
val hasMoreToLoad = rememberSaveable {
mutableStateOf(timeline.hasMoreToLoad)

View file

@ -26,7 +26,6 @@ import io.element.android.x.element.resources.R
import io.element.android.x.features.logout.LogoutPreferenceState
import io.element.android.x.features.logout.LogoutPreferenceView
import io.element.android.x.features.preferences.user.UserPreferences
import io.element.android.x.features.rageshake.preferences.RageshakePreferencesEvents
import io.element.android.x.features.rageshake.preferences.RageshakePreferencesState
import io.element.android.x.features.rageshake.preferences.RageshakePreferencesView

View file

@ -57,4 +57,3 @@ class BugReportNode @AssistedInject constructor(
plugins<Callback>().forEach { it.onBugReportSent() }
}
}

View file

@ -14,7 +14,6 @@
* limitations under the License.
*/
package io.element.android.x.features.rageshake.bugreport
import androidx.compose.foundation.layout.Box

View file

@ -35,7 +35,6 @@ fun RageshakePreferencesView(
modifier: Modifier = Modifier,
onOpenRageshake: () -> Unit = {},
) {
fun onSensitivityChanged(sensitivity: Float) {
state.eventSink(RageshakePreferencesEvents.SetSensitivity(sensitivity = sensitivity))
}

View file

@ -29,7 +29,6 @@ import dagger.assisted.AssistedInject
import io.element.android.x.anvilannotations.ContributesNode
import io.element.android.x.architecture.presenterConnector
import io.element.android.x.di.SessionScope
import io.element.android.x.features.roomlist.model.RoomListEvents
import io.element.android.x.matrix.core.RoomId
@ContributesNode(SessionScope::class)

View file

@ -23,7 +23,6 @@ import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import io.element.android.x.architecture.Presenter

View file

@ -57,7 +57,6 @@ fun RoomListView(
onRoomClicked: (RoomId) -> Unit = {},
onOpenSettings: () -> Unit = {},
) {
fun onFilterChanged(filter: String) {
state.eventSink(RoomListEvents.UpdateFilter(filter))
}

View file

@ -17,7 +17,6 @@
package io.element.android.x.architecture
import androidx.compose.runtime.Composable
import kotlinx.coroutines.flow.Flow
interface Presenter<State> {
@Composable

View file

@ -47,4 +47,3 @@ class NotLoggedInImageLoaderFactory @Inject constructor(
.build()
}
}

View file

@ -17,7 +17,6 @@
package io.element.android.x.matrix.ui.model
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
import io.element.android.x.designsystem.components.avatar.AvatarData
import io.element.android.x.matrix.core.UserId