Skip to content
Open
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
27 changes: 27 additions & 0 deletions WearWidget/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches: [ "main", "widgets-update-deps" ]
pull_request:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Run Tests
run: ./gradlew test
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.remote.tooling.preview.RemoteDocPreview
import androidx.compose.remote.tooling.preview.RemoteDocumentPreview
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
Expand Down Expand Up @@ -75,7 +75,7 @@ fun WearWidgetPreviewSnapshot(
modifier = Modifier.size(227.dp).clip(CircleShape).background(Color.Black),
contentAlignment = Alignment.Center,
) {
RemoteDocPreview(
RemoteDocumentPreview(
document,
modifier =
modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package com.google.example.wear_widget

import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.junit4.v2.createComposeRule
import com.github.takahirom.roborazzi.ExperimentalRoborazziApi
import com.github.takahirom.roborazzi.captureScreenRoboImage
import kotlin.OptIn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package com.google.example.wear_widget

import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.junit4.v2.createComposeRule
import com.github.takahirom.roborazzi.ExperimentalRoborazziApi
import com.github.takahirom.roborazzi.captureScreenRoboImage
import kotlin.OptIn
Expand Down
8 changes: 4 additions & 4 deletions WearWidget/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ desugar_jdk_libs = "2.1.5"
playServicesWearable = "20.0.1"
kotlin = "2.3.21"
composeBom = "2026.05.00"
remoteMaterialAlpha = "1.0.0-alpha03"
remoteComposeAlpha = "1.0.0-alpha010"
remoteMaterialAlpha = "1.0.0-alpha04"
remoteComposeAlpha = "1.0.0-alpha11"
runtime = "1.11.1"
uiTooling = "1.11.1"
wear = "1.0.0-alpha09"
wearCore = "1.0.0-alpha09"
wear = "1.0.0-alpha10"
wearCore = "1.0.0-alpha10"
wearToolingPreview = "1.0.0"
composeMaterial = "1.6.1"
activityCompose = "1.13.0"
Expand Down