Fix moar ktlint issues

This commit is contained in:
Benoit Marty 2024-01-11 09:41:14 +01:00 committed by Benoit Marty
parent a831f05f6e
commit 5d086ad82d
528 changed files with 146 additions and 629 deletions

View file

@ -50,7 +50,6 @@ class SecureBackupFlowNode @AssistedInject constructor(
buildContext = buildContext,
plugins = plugins
) {
sealed interface NavTarget : Parcelable {
@Parcelize
data object Root : NavTarget

View file

@ -32,7 +32,6 @@ class SecureBackupDisableNode @AssistedInject constructor(
@Assisted plugins: List<Plugin>,
private val presenter: SecureBackupDisablePresenter,
) : Node(buildContext, plugins = plugins) {
@Composable
override fun View(modifier: Modifier) {
val state = presenter.present()

View file

@ -38,7 +38,6 @@ class SecureBackupDisablePresenter @Inject constructor(
private val encryptionService: EncryptionService,
private val buildMeta: BuildMeta,
) : Presenter<SecureBackupDisableState> {
@Composable
override fun present(): SecureBackupDisableState {
val backupState by encryptionService.backupStateStateFlow.collectAsState()

View file

@ -32,7 +32,6 @@ class SecureBackupEnableNode @AssistedInject constructor(
@Assisted plugins: List<Plugin>,
private val presenter: SecureBackupEnablePresenter,
) : Node(buildContext, plugins = plugins) {
@Composable
override fun View(modifier: Modifier) {
val state = presenter.present()

View file

@ -34,7 +34,6 @@ import javax.inject.Inject
class SecureBackupEnablePresenter @Inject constructor(
private val encryptionService: EncryptionService,
) : Presenter<SecureBackupEnableState> {
@Composable
override fun present(): SecureBackupEnableState {
val enableAction = remember { mutableStateOf<AsyncData<Unit>>(AsyncData.Uninitialized) }

View file

@ -39,7 +39,6 @@ class SecureBackupEnterRecoveryKeyNode @AssistedInject constructor(
private val presenter: SecureBackupEnterRecoveryKeyPresenter,
private val snackbarDispatcher: SnackbarDispatcher,
) : Node(buildContext, plugins = plugins) {
@Composable
override fun View(modifier: Modifier) {
val coroutineScope = rememberCoroutineScope()

View file

@ -39,7 +39,6 @@ class SecureBackupEnterRecoveryKeyPresenter @Inject constructor(
private val encryptionService: EncryptionService,
private val recoveryKeyTools: RecoveryKeyTools,
) : Presenter<SecureBackupEnterRecoveryKeyState> {
@Composable
override fun present(): SecureBackupEnterRecoveryKeyState {
val coroutineScope = rememberCoroutineScope()

View file

@ -39,7 +39,6 @@ class SecureBackupRootNode @AssistedInject constructor(
buildContext = buildContext,
plugins = plugins
) {
interface Callback : Plugin {
fun onSetupClicked()
fun onChangeClicked()

View file

@ -43,7 +43,6 @@ class SecureBackupRootPresenter @Inject constructor(
private val buildMeta: BuildMeta,
private val snackbarDispatcher: SnackbarDispatcher,
) : Presenter<SecureBackupRootState> {
@Composable
override fun present(): SecureBackupRootState {
val localCoroutineScope = rememberCoroutineScope()

View file

@ -41,7 +41,6 @@ class SecureBackupSetupNode @AssistedInject constructor(
presenterFactory: SecureBackupSetupPresenter.Factory,
private val snackbarDispatcher: SnackbarDispatcher,
) : Node(buildContext, plugins = plugins) {
data class Inputs(
val isChangeRecoveryKeyUserStory: Boolean,
) : NodeInputs

View file

@ -46,7 +46,6 @@ class SecureBackupSetupPresenter @AssistedInject constructor(
private val stateMachine: SecureBackupSetupStateMachine,
private val encryptionService: EncryptionService,
) : Presenter<SecureBackupSetupState> {
@AssistedFactory
interface Factory {
fun create(isChangeRecoveryKeyUserStory: Boolean): SecureBackupSetupPresenter

View file

@ -27,7 +27,6 @@ import com.freeletics.flowredux.dsl.State as MachineState
class SecureBackupSetupStateMachine @Inject constructor() : FlowReduxStateMachine<SecureBackupSetupStateMachine.State, SecureBackupSetupStateMachine.Event>(
initialState = State.Initial
) {
init {
spec {
inState<State.Initial> {

View file

@ -20,7 +20,6 @@ import com.google.common.truth.Truth.assertThat
import org.junit.Test
class RecoveryKeyToolsTest {
@Test
fun `isRecoveryKeyFormatValid return false for invalid key`() {
val sut = RecoveryKeyTools()