Skip to content

Commit

Permalink
Fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Jul 19, 2024
1 parent 4a3bdd8 commit 23abc8b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ class DroidKaigiKmpPreviewTester : ComposePreviewTester<JvmAnnotationScanner.Des
.getPreviews()
.filter { preview ->
System.getProperties()
Class.forName(preview.declaringClass).declaredMethods.first { it.name == preview.methodName }.kotlinFunction?.visibility == kotlin.reflect.KVisibility.PUBLIC

Class.forName(preview.declaringClass).declaredMethods.first {
it.name == preview.methodName
}.kotlinFunction?.visibility == kotlin.reflect.KVisibility.PUBLIC
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import dev.chrisbanes.haze.HazeState
import dev.chrisbanes.haze.hazeChild
import io.github.droidkaigi.confsched.designsystem.preview.Preview
import io.github.droidkaigi.confsched.designsystem.theme.KaigiTheme
import io.github.droidkaigi.confsched.main.MainScreenTab
import org.jetbrains.compose.ui.tooling.preview.Preview

@Composable
fun GlassLikeBottomNavigation(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import io.github.droidkaigi.confsched.designsystem.preview.MultiLanguagePreviews
import io.github.droidkaigi.confsched.designsystem.preview.MultiThemePreviews
import io.github.droidkaigi.confsched.designsystem.theme.KaigiTheme
import io.github.droidkaigi.confsched.designsystem.theme.hallColors
import io.github.droidkaigi.confsched.designsystem.theme.md_theme_light_outline
Expand Down Expand Up @@ -65,6 +63,7 @@ import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.TimeZone
import kotlinx.datetime.minus
import kotlinx.datetime.toInstant
import org.jetbrains.compose.ui.tooling.preview.Preview
import org.jetbrains.compose.ui.tooling.preview.PreviewParameter
import kotlin.math.ceil
import kotlin.math.roundToInt
Expand Down Expand Up @@ -399,7 +398,7 @@ object TimetableGridItemSizes {
val minTitleLineHeight = 12.sp
}

@MultiLanguagePreviews
@Preview
@Composable
fun PreviewTimetableGridItem() {
KaigiTheme {
Expand All @@ -414,7 +413,7 @@ fun PreviewTimetableGridItem() {
}
}

@MultiLanguagePreviews
@Preview
@Composable
fun PreviewTimetableGridLongTitleItem() {
val fake = Session.fake()
Expand Down Expand Up @@ -443,7 +442,7 @@ fun PreviewTimetableGridLongTitleItem() {
}
}

@MultiThemePreviews
@Preview
@Composable
fun PreviewTimetableGridMultiSpeakersItem() {
KaigiTheme {
Expand All @@ -457,7 +456,7 @@ fun PreviewTimetableGridMultiSpeakersItem() {
}
}

@MultiThemePreviews
@Preview
@Composable
internal fun PreviewTimetableGridItem(
@PreviewParameter(PreviewTimeTableItemRoomProvider::class) timetableItem: TimetableItem,
Expand All @@ -473,7 +472,7 @@ internal fun PreviewTimetableGridItem(
}
}

@MultiThemePreviews
@Preview
@Composable
fun PreviewTimetableGridItemWelcomeTalk() {
KaigiTheme {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ import androidx.compose.ui.unit.Constraints
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import io.github.droidkaigi.confsched.designsystem.preview.MultiLanguagePreviews
import io.github.droidkaigi.confsched.designsystem.preview.MultiThemePreviews
import io.github.droidkaigi.confsched.model.DroidKaigi2023Day
import io.github.droidkaigi.confsched.model.Timetable
import io.github.droidkaigi.confsched.model.TimetableItem
Expand All @@ -85,6 +83,7 @@ import kotlinx.datetime.TimeZone
import kotlinx.datetime.minus
import kotlinx.datetime.toInstant
import kotlinx.datetime.toLocalDateTime
import org.jetbrains.compose.ui.tooling.preview.Preview
import kotlin.math.roundToInt

data class TimetableGridUiState(val timetable: Timetable)
Expand Down Expand Up @@ -333,8 +332,7 @@ fun TimetableGrid(
}
}

@MultiThemePreviews
@MultiLanguagePreviews
@Preview
@Composable
fun TimetablePreview() {
TimetableGrid(
Expand Down

0 comments on commit 23abc8b

Please sign in to comment.