Skip to content

Commit 79b40ee

Browse files
committed
Apply ktlint formatting
1 parent 7ea3686 commit 79b40ee

File tree

172 files changed

+663
-893
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+663
-893
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ android {
6666
outputs
6767
.forEach { output ->
6868
(output as com.android.build.gradle.internal.api.BaseVariantOutputImpl).outputFileName =
69-
"${versionName}.apk"
69+
"$versionName.apk"
7070
}
7171
}
7272
dependenciesInfo {

app/src/androidTest/kotlin/com/w2sv/filenavigator/ui/screen/PermissionScreenTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ class PermissionScreenTest {
2222
.assertIsDisplayed()
2323
}
2424
}
25-
}
25+
}

app/src/main/kotlin/com/w2sv/filenavigator/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class MainActivity : ComponentActivity() {
8181

8282
enableEdgeToEdge(
8383
systemBarStyle,
84-
systemBarStyle,
84+
systemBarStyle
8585
)
8686
}
8787
val navController = rememberNavController()
@@ -167,4 +167,4 @@ private class SwipeRightSplashScreenExitAnimation(private val onAnimationEnd: ()
167167
}
168168
.start()
169169
}
170-
}
170+
}

app/src/main/kotlin/com/w2sv/filenavigator/ui/CompositionLocals.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import androidx.navigation.NavHostController
66
import com.w2sv.domain.usecase.MoveDestinationPathConverter
77

88
val LocalNavHostController =
9-
staticCompositionLocalOf<NavHostController> { throw UninitializedPropertyAccessException("LocalRootNavHostController not yet provided") }
9+
staticCompositionLocalOf<NavHostController> {
10+
throw UninitializedPropertyAccessException(
11+
"LocalRootNavHostController not yet provided"
12+
)
13+
}
1014

1115
val LocalMoveDestinationPathConverter =
1216
staticCompositionLocalOf<MoveDestinationPathConverter> {
@@ -16,4 +20,4 @@ val LocalMoveDestinationPathConverter =
1620
}
1721

1822
val LocalUseDarkTheme =
19-
compositionLocalOf { false }
23+
compositionLocalOf { false }

app/src/main/kotlin/com/w2sv/filenavigator/ui/designsystem/AppCardDefaults.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ object AppCardDefaults {
88
val elevation
99
@Composable
1010
get() = CardDefaults.elevatedCardElevation(defaultElevation = 4.dp)
11-
}
11+
}

app/src/main/kotlin/com/w2sv/filenavigator/ui/designsystem/BorderAnimation.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fun rememberBorderAnimationState(
2828
endColor: Color,
2929
duration: Int = 500,
3030
key1: Any? = null,
31-
key2: Any? = null,
31+
key2: Any? = null
3232
): BorderAnimationState {
3333
val transition = updateTransition(targetState = enabled, label = "")
3434

@@ -38,14 +38,14 @@ fun rememberBorderAnimationState(
3838
if (targetState) {
3939
tween(
4040
durationMillis = duration,
41-
easing = Easing.Overshoot,
41+
easing = Easing.Overshoot
4242
)
4343
} else {
4444
tween(durationMillis = duration)
4545
}
4646
}
4747
},
48-
label = "",
48+
label = ""
4949
) { state ->
5050
if (state) endWidth else startWidth
5151
}
@@ -56,14 +56,14 @@ fun rememberBorderAnimationState(
5656
if (targetState) {
5757
tween(
5858
durationMillis = duration,
59-
easing = Easing.Overshoot,
59+
easing = Easing.Overshoot
6060
)
6161
} else {
6262
tween(durationMillis = duration)
6363
}
6464
}
6565
},
66-
label = "",
66+
label = ""
6767
) { state ->
6868
if (state) endColor else startColor
6969
}

app/src/main/kotlin/com/w2sv/filenavigator/ui/designsystem/DialogButton.kt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,20 @@ fun DialogButton(
1515
text: String,
1616
onClick: () -> Unit,
1717
modifier: Modifier = Modifier,
18-
enabled: Boolean = true,
18+
enabled: Boolean = true
1919
) {
2020
ElevatedButton(
2121
onClick = onClick,
2222
modifier = modifier,
2323
enabled = enabled,
24-
border = if (enabled) BorderStroke(
25-
Dp.Hairline,
26-
MaterialTheme.colorScheme.primary
27-
) else null,
24+
border = if (enabled) {
25+
BorderStroke(
26+
Dp.Hairline,
27+
MaterialTheme.colorScheme.primary
28+
)
29+
} else {
30+
null
31+
},
2832
elevation = ButtonDefaults.elevatedButtonElevation(8.dp),
2933
colors = ButtonDefaults.elevatedButtonColors(
3034
contentColor = MaterialTheme.colorScheme.secondary

app/src/main/kotlin/com/w2sv/filenavigator/ui/designsystem/Icons.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ object IconSize {
1515
}
1616

1717
@Composable
18-
fun FileTypeIcon(fileType: FileType, modifier: Modifier = Modifier, tint: Color = fileType.color) {
18+
fun FileTypeIcon(
19+
fileType: FileType,
20+
modifier: Modifier = Modifier,
21+
tint: Color = fileType.color
22+
) {
1923
Icon(
2024
painter = painterResource(id = fileType.iconRes),
2125
contentDescription = null,
@@ -24,8 +28,8 @@ fun FileTypeIcon(fileType: FileType, modifier: Modifier = Modifier, tint: Color
2428
)
2529
}
2630

27-
//@Composable
28-
//fun AutoMoveIcon(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) {
31+
// @Composable
32+
// fun AutoMoveIcon(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) {
2933
// Column(horizontalAlignment = Alignment.CenterHorizontally, modifier = modifier) {
3034
// CompositionLocalProvider(LocalContentColor provides tint) {
3135
// Icon(
@@ -40,4 +44,4 @@ fun FileTypeIcon(fileType: FileType, modifier: Modifier = Modifier, tint: Color
4044
// )
4145
// }
4246
// }
43-
//}
47+
// }

app/src/main/kotlin/com/w2sv/filenavigator/ui/designsystem/NavigationTransition.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class PopNonPopIdenticalAnimatedDestinationStyle : DestinationStyle.Ani
2626
object NavigationTransitions : PopNonPopIdenticalAnimatedDestinationStyle() {
2727
override val enterTransition: NavigationEnterTransition = {
2828
fadeIn(animationSpec = animationSpec) +
29-
scaleIn(initialScale = 0.92f, animationSpec = animationSpec)
29+
scaleIn(initialScale = 0.92f, animationSpec = animationSpec)
3030
}
3131
override val exitTransition: NavigationExitTransition = {
3232
fadeOut(animationSpec = animationSpec) + scaleOut(
@@ -36,4 +36,4 @@ object NavigationTransitions : PopNonPopIdenticalAnimatedDestinationStyle() {
3636
}
3737
}
3838

39-
private val animationSpec: FiniteAnimationSpec<Float> = tween(220)
39+
private val animationSpec: FiniteAnimationSpec<Float> = tween(220)

app/src/main/kotlin/com/w2sv/filenavigator/ui/designsystem/Padding.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ object Padding {
1313
val fabButtonBottomPadding: Dp
1414
@Composable
1515
get() = if (isPortraitModeActive) 144.dp else 92.dp
16-
}
16+
}

0 commit comments

Comments
 (0)