From 6af6b3cdfbc31babf8a9c8de5fccb0a8f455789d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odin=20Asbj=C3=B8rnsen?= Date: Wed, 24 Aug 2022 11:13:50 +0200 Subject: [PATCH] Update processor test to have multipe custom annotations stacked --- .../input/Composables.kt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/composable_function_with_multiple_preview_functions_compiles/input/Composables.kt b/showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/composable_function_with_multiple_preview_functions_compiles/input/Composables.kt index b6b52c0c..aee38ac8 100644 --- a/showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/composable_function_with_multiple_preview_functions_compiles/input/Composables.kt +++ b/showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/composable_function_with_multiple_preview_functions_compiles/input/Composables.kt @@ -1,6 +1,8 @@ package com.airbnb.android.showkase_processor_testing +import android.content.res.Configuration.UI_MODE_NIGHT_YES import androidx.compose.runtime.Composable +import androidx.compose.ui.semantics.SemanticsProperties.Text import androidx.compose.ui.tooling.preview.Preview @Preview( @@ -15,10 +17,35 @@ import androidx.compose.ui.tooling.preview.Preview ) public annotation class FontScalePreviews +@Preview( + name = "small screen", + group = "device", +) +@Preview( + name = "large Screen", + group = "device", +) +public annotation class DevicePreviews + public class Composables { @FontScalePreviews @Composable public fun Component() { } +} + +@Preview( + name = "dark theme", + group = "themes", + uiMode = UI_MODE_NIGHT_YES +) +@FontScalePreviews +@DevicePreviews +public annotation class CombinedPreviews + +@CombinedPreviews +@Composable +public fun HelloWorldPreview() { + } \ No newline at end of file