A fully functional Android app built entirely with Kotlin and Jetpack Compose
undo a bunch of extra changes
Eric Schmidt3fda0e329053
diff --git a/core/ui/src/main/kotlin/com/google/samples/apps/nowinandroid/core/ui/DevicePreviews.kt b/core/ui/src/main/kotlin/com/google/samples/apps/nowinandroid/core/ui/DevicePreviews.ktindex bb2b59466..27e5151fa 100644--- a/core/ui/src/main/kotlin/com/google/samples/apps/nowinandroid/core/ui/DevicePreviews.kt+++ b/core/ui/src/main/kotlin/com/google/samples/apps/nowinandroid/core/ui/DevicePreviews.kt@@ -16,14 +16,15 @@package com.google.samples.apps.nowinandroid.core.ui+import androidx.compose.ui.tooling.preview.Devicesimport androidx.compose.ui.tooling.preview.Preview/*** Multipreview annotation that represents various device sizes. Add this annotation to a composable* to render various devices.*/-@Preview(name = "phone", device = "spec:shape=Normal,width=360,height=640,unit=dp,dpi=480")-@Preview(name = "landscape", device = "spec:shape=Normal,width=640,height=360,unit=dp,dpi=480")-@Preview(name = "foldable", device = "spec:shape=Normal,width=673,height=841,unit=dp,dpi=480")-@Preview(name = "tablet", device = "spec:shape=Normal,width=1280,height=800,unit=dp,dpi=480")+@Preview(name = "phone", device = Devices.PHONE, showBackground = true)+@Preview(name = "foldable", device = Devices.FOLDABLE, showBackground = true)+@Preview(name = "tablet", device = Devices.TABLET, showBackground = true)+@Preview(name = "desktop", device = Devices.DESKTOP, showBackground = true)annotation class DevicePreviews