- kaari-presentation-core/common/main/kotlin/com/javiersc/kaari/presentation/core/KaariPresentation.kt:17:16Function names should match the pattern: [a-z][a-zA-Z0-9]*
14 @Composable public fun state(): State
15
16 @Composable
17 public fun CollectedEffect(block: suspend CoroutineScope.(effect: Effect) -> Unit) {
18 LaunchedEffect(Unit) { events.collect { effect -> block(this, effect) } }
19 }
20
- samples/apps/android/main/kotlin/com/javiersc/kaari/samples/android/MainActivity.kt:44:5Function names should match the pattern: [a-z][a-zA-Z0-9]*
41
42 @Preview
43 @Composable
44 fun MainScreenPreview() {
45 ComposePlaygroundTheme {
46 MainScreen(
47 state =
- samples/features/android/main/kotlin/com/javiersc/samples/features/Preview.android.kt:7:5Function names should match the pattern: [a-z][a-zA-Z0-9]*
4 import com.javiersc.samples.features._theme.ComposePlaygroundTheme
5
6 @Composable
7 fun KaariPreview(composable: @Composable () -> Unit) {
8 ComposePlaygroundTheme { composable() }
9 }
10
- samples/features/android/main/kotlin/com/javiersc/samples/features/_theme/Theme.android.kt:27:12Function names should match the pattern: [a-z][a-zA-Z0-9]*
24 }
25
26 @Composable
27 actual fun AndroidConfig(colorScheme: ColorScheme, isDarkTheme: Boolean) {
28 val view = LocalView.current
29 if (!view.isInEditMode) {
30 SideEffect {
- samples/features/android/main/kotlin/com/javiersc/samples/features/main/MainScreenPreview.android.kt:10:5Function names should match the pattern: [a-z][a-zA-Z0-9]*
7
8 @Preview
9 @Composable
10 fun MainScreenPreview() = KaariPreview {
11 val uuid = UUID.randomUUID().toString()
12 MainScreen(
13 MainState(
- samples/features/common/main/kotlin/com/javiersc/samples/features/_theme/Theme.kt:31:5Function names should match the pattern: [a-z][a-zA-Z0-9]*
28 )
29
30 @Composable
31 fun ComposePlaygroundTheme(
32 isDarkTheme: Boolean = isSystemInDarkTheme(),
33 // Dynamic color is available on Android 12+
34 dynamicColor: Boolean = true,
- samples/features/common/main/kotlin/com/javiersc/samples/features/_theme/Theme.kt:44:24Function names should match the pattern: [a-z][a-zA-Z0-9]*
41
42 @Composable expect fun colorScheme(dynamicColor: Boolean, isDarkTheme: Boolean): ColorScheme
43
44 @Composable expect fun AndroidConfig(colorScheme: ColorScheme, isDarkTheme: Boolean)
45
- samples/features/common/main/kotlin/com/javiersc/samples/features/main/MainScreen.kt:18:5Function names should match the pattern: [a-z][a-zA-Z0-9]*
15 import java.util.*
16
17 @Composable
18 fun MainScreen(
19 state: MainState,
20 onAddCharacter: (Character) -> Unit = {},
21 ) {
- samples/features/common/main/kotlin/com/javiersc/samples/features/main/MainScreen.kt:60:5Function names should match the pattern: [a-z][a-zA-Z0-9]*
57 }
58
59 @Composable
60 fun Character(name: String) {
61 Text(name)
62 }
63
- samples/features/jvm/main/kotlin/com/javiersc/samples/features/_theme/Theme.jvm.kt:9:24Function names should match the pattern: [a-z][a-zA-Z0-9]*
6 @Composable
7 actual fun colorScheme(dynamicColor: Boolean, isDarkTheme: Boolean): ColorScheme = LightColorScheme
8
9 @Composable actual fun AndroidConfig(colorScheme: ColorScheme, isDarkTheme: Boolean) {}
10