Skip to content

Commit

Permalink
Merge pull request #954 from yschimke/fix_previews
Browse files Browse the repository at this point in the history
Fix Tile previews
  • Loading branch information
yschimke authored Nov 5, 2023
2 parents 511da6a + e82a198 commit ef5218d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions WearTilesKotlin/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ dependencies {
implementation libs.androidx.datastore

implementation libs.androidx.wear.tiles.material
implementation libs.androidx.wear.tooling.preview

implementation libs.coil
implementation libs.kotlinx.coroutines.android
implementation libs.kotlinx.coroutines.guava

implementation libs.compose.ui.tooling.preview

implementation libs.horologist.compose.tools
implementation libs.horologist.tiles

implementation libs.androidx.wear.tooling.preview
implementation libs.compose.ui.tooling.preview
debugImplementation libs.androidx.ui.tooling
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import androidx.wear.protolayout.material.layouts.MultiButtonLayout
import androidx.wear.protolayout.material.layouts.PrimaryLayout
import com.example.wear.tiles.R
import com.example.wear.tiles.tools.IconSizePreview
import com.example.wear.tiles.tools.WearLargeRoundDevicePreview
import com.example.wear.tiles.tools.WearSmallRoundDevicePreview
import com.example.wear.tiles.tools.emptyClickable
import com.google.android.horologist.compose.tools.LayoutElementPreview
Expand Down Expand Up @@ -98,6 +99,7 @@ private fun searchLayout(
.build()

@WearSmallRoundDevicePreview
@WearLargeRoundDevicePreview
@Composable
private fun MessageTilePreview() {
val context = LocalContext.current
Expand Down
1 change: 1 addition & 0 deletions WearTilesKotlin/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ horologist-tiles = { module = "com.google.android.horologist:horologist-tiles",
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "org-jetbrains-kotlin" }
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "org-jetbrains-kotlinx" }
kotlinx-coroutines-guava = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-guava", version.ref = "org-jetbrains-kotlinx" }
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", version.ref = "compose" }

[plugins]
com-android-application = { id = "com.android.application", version.ref = "android-gradle-plugin" }
Expand Down

0 comments on commit ef5218d

Please sign in to comment.