Fix moar ktlint issues
This commit is contained in:
parent
a831f05f6e
commit
5d086ad82d
528 changed files with 146 additions and 629 deletions
|
|
@ -50,7 +50,6 @@ class SecureBackupFlowNode @AssistedInject constructor(
|
|||
buildContext = buildContext,
|
||||
plugins = plugins
|
||||
) {
|
||||
|
||||
sealed interface NavTarget : Parcelable {
|
||||
@Parcelize
|
||||
data object Root : NavTarget
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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) }
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ class SecureBackupRootNode @AssistedInject constructor(
|
|||
buildContext = buildContext,
|
||||
plugins = plugins
|
||||
) {
|
||||
|
||||
interface Callback : Plugin {
|
||||
fun onSetupClicked()
|
||||
fun onChangeClicked()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue