Skip to content

Commit

Permalink
Update processor test to have multipe custom annotations stacked
Browse files Browse the repository at this point in the history
  • Loading branch information
oas004 committed Aug 24, 2022
1 parent 8a96b9c commit 6af6b3c
Showing 1 changed file with 27 additions and 0 deletions.
@@ -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(
Expand All @@ -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() {

}

0 comments on commit 6af6b3c

Please sign in to comment.