Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/src/main/java/com/hello/curiosity/Exclude.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.tooling.preview.Preview
import com.hello.curiosity.Exclude
import com.hello.curiosity.R
import com.hello.curiosity.ui.theme.AppTheme.lightCyan
import com.hello.curiosity.ui.theme.AppTheme.metallicSeaweed
Expand Down Expand Up @@ -95,7 +94,6 @@ fun SettingsScene() {
}
}

@Exclude
@Preview
@Composable
internal fun SettingsScenePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.tooling.preview.Preview
import com.hello.curiosity.Exclude

@Composable
@Suppress("MagicNumber", "LongMethod")
Expand Down Expand Up @@ -75,7 +74,6 @@ internal fun ColorScene() {
}
}

@Exclude
@Preview
@Composable
internal fun ColorScenePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.hello.curiosity.Exclude

@Composable
internal fun ColorView(presentation: ColorPresentation) =
Expand All @@ -32,7 +31,6 @@ internal fun ColorView(presentation: ColorPresentation) =
Text(text = presentation.title)
}

@Exclude
@Preview
@Composable
internal fun ColorViewPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.hello.curiosity.Exclude
import com.hello.curiosity.R
import io.github.hellocuriosity.compose.ui.components.buttons.IconButton
import io.github.hellocuriosity.compose.ui.components.buttons.TextButton
Expand Down Expand Up @@ -89,7 +88,6 @@ fun ButtonScene() {
}
}

@Exclude
@Preview
@Composable
fun ButtonScenePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.navigation.NavHostController
import androidx.navigation.compose.rememberNavController
import com.hello.curiosity.Exclude
import com.hello.curiosity.ui.scenes.Scenes
import io.github.hellocuriosity.compose.ui.components.buttons.TextIconButton

Expand Down Expand Up @@ -52,7 +51,6 @@ fun ComponentScene(navController: NavHostController) {
}
}

@Exclude
@Preview
@Composable
fun ComponentScenePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.hello.curiosity.Exclude
import com.hello.curiosity.R
import com.hello.curiosity.ui.theme.inputTextFieldColors
import io.github.hellocuriosity.compose.ui.components.input.InputTextField
Expand Down Expand Up @@ -73,7 +72,6 @@ fun InputScene() {

const val INPUT_SCENE_VIEW_TEST_TAG = "INPUT_SCENE_VIEW_TEST_TAG"

@Exclude
@Preview
@Composable
fun InputScenePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.hello.curiosity.Exclude
import io.github.hellocuriosity.compose.ui.components.text.ContentLarge
import io.github.hellocuriosity.compose.ui.components.text.ContentMedium
import io.github.hellocuriosity.compose.ui.components.text.LabelLarge
Expand Down Expand Up @@ -68,7 +67,6 @@ fun TextScene() {
}
}

@Exclude
@Preview
@Composable
fun TextScenePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.hello.curiosity.Exclude
import com.hello.curiosity.R
import com.hello.curiosity.ui.theme.checkColors
import com.hello.curiosity.ui.theme.dropDownMenuColors
Expand Down Expand Up @@ -67,7 +66,6 @@ fun ToggleScene() {
}
}

@Exclude
@Preview
@Composable
fun ToggleScenePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.hello.curiosity.Exclude

@Composable
@Suppress("LongMethod")
Expand Down Expand Up @@ -86,7 +85,6 @@ fun TypographyScene() {
}
}

@Exclude
@Preview
@Composable
fun TypographyScenePreview() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import io.github.hellocuriosity.compose.ui.Exclude
import io.github.hellocuriosity.compose.ui.components.text.LabelSmall
import io.github.hellocuriosity.compose.ui.components.text.LabelTiny

Expand Down Expand Up @@ -122,7 +121,6 @@ const val INPUT_TEXT_FIELD_CONTAINER_TEST_TAG = "INPUT_TEXT_FIELD_CONTAINER_TEST
const val INPUT_TEXT_FIELD_VALUE_TEST_TAG = "INPUT_TEXT_FIELD_VALUE_TEST_TAG"
const val INPUT_TEXT_FIELD_COUNTER_TEST_TAG = "INPUT_TEXT_FIELD_COUNTER_TEST_TAG"

@Exclude
@Preview
@Composable
fun InputTextFieldPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import io.github.hellocuriosity.compose.R
import io.github.hellocuriosity.compose.ui.Exclude
import io.github.hellocuriosity.compose.ui.components.text.LabelSmall

@OptIn(ExperimentalMaterialApi::class)
Expand Down Expand Up @@ -105,7 +104,6 @@ const val DROP_DOWN_MENU_CONTAINER_TEST_TAG = "DROP_DOWN_MENU_CONTAINER_TEST_TAG
const val DROP_DOWN_MENU_ICN_TEST_TAG = "DROP_DOWN_MENU_ICN_TEST_TAG"
const val DROP_DOWN_MENU_LIST_TEST_TAG = "DROP_DOWN_MENU_LIST_TEST_TAG"

@Exclude
@Preview
@Composable
fun DropDownMenuPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import io.github.hellocuriosity.compose.ui.Exclude

@Composable
fun ContentLarge(
Expand Down Expand Up @@ -51,7 +50,6 @@ fun ContentLarge(
maxLines = maxLines,
)

@Exclude
@Preview
@Composable
internal fun ContentLargePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import io.github.hellocuriosity.compose.ui.Exclude

@Composable
fun ContentMedium(
Expand Down Expand Up @@ -51,7 +50,6 @@ fun ContentMedium(
maxLines = maxLines,
)

@Exclude
@Preview
@Composable
internal fun ContentMediumPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import io.github.hellocuriosity.compose.ui.Exclude

@Composable
fun LabelLarge(
Expand Down Expand Up @@ -51,7 +50,6 @@ fun LabelLarge(
maxLines = maxLines,
)

@Exclude
@Preview
@Composable
internal fun LabelLargePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import io.github.hellocuriosity.compose.ui.Exclude

@Composable
fun LabelMedium(
Expand Down Expand Up @@ -51,7 +50,6 @@ fun LabelMedium(
maxLines = maxLines,
)

@Exclude
@Preview
@Composable
internal fun LabelMediumPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import io.github.hellocuriosity.compose.ui.Exclude

@Composable
fun LabelSmall(
Expand Down Expand Up @@ -51,7 +50,6 @@ fun LabelSmall(
maxLines = maxLines,
)

@Exclude
@Preview
@Composable
internal fun LabelSmallPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import io.github.hellocuriosity.compose.ui.Exclude

@Composable
fun LabelTiny(
Expand Down Expand Up @@ -51,7 +50,6 @@ fun LabelTiny(
maxLines = maxLines,
)

@Exclude
@Preview
@Composable
internal fun LabelTinyPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import io.github.hellocuriosity.compose.R
import io.github.hellocuriosity.compose.ui.Exclude

@OptIn(ExperimentalMaterialApi::class)
@Composable
Expand Down Expand Up @@ -66,7 +65,6 @@ fun CheckBox(
}
}

@Exclude
@Preview
@Composable
fun CheckboxPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import androidx.compose.ui.draw.clip
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import io.github.hellocuriosity.compose.ui.Exclude

@OptIn(ExperimentalMaterialApi::class)
@Composable
Expand Down Expand Up @@ -64,7 +63,6 @@ fun Toggle(
const val TOGGLE_CONTAINER_TEST_TAG = "TOGGLE_CONTAINER_TEST_TAG"
const val TOGGLE_BTN_TEST_TAG = "TOGGLE_BTN_TEST_TAG"

@Exclude
@Preview
@Composable
fun TogglePreview() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ fun ItemAction(
)
}

@Exclude
@Preview
@Composable
internal fun ItemActionPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ fun ItemDivider(
thickness = thickness,
)

@Exclude
@Preview
@Composable
internal fun ItemDividerPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ fun ItemDropDown(

const val ITEM_DROP_DOWN_CONTAINER_TEST_TAG = "ITEM_DROP_DOWN_CONTAINER_TEST_TAG"

@Exclude
@Preview
@Composable
internal fun ItemDropDownPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ fun ItemInfo(
}
}

@Exclude
@Preview
@Composable
internal fun ItemInfoPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ fun ItemSection(
style = style,
)

@Exclude
@Preview
@Composable
internal fun ItemSectionPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ fun ItemToggle(

const val ITEM_TOGGLE_TEST_TAG = "ITEM_TOGGLE_TEST_TAG"

@Exclude
@Preview
@Composable
internal fun ItemTogglePreview() {
Expand Down