Skip to content

Commit

Permalink
update libraries (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
kul3r4 authored Nov 12, 2024
1 parent bd3166f commit 2c389cf
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 24 deletions.
6 changes: 2 additions & 4 deletions DataLayer/Wearable/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plugins {
}

android {
compileSdk = 34
compileSdk = 35

namespace = "com.example.android.wearable.datalayer"

Expand Down Expand Up @@ -125,9 +125,7 @@ dependencies {
testImplementation(libs.roborazzi.compose)
testImplementation(libs.roborazzi.rule)
testImplementation(libs.test.ext.junit)
testImplementation(libs.horologist.roboscreenshots) {
exclude(group = "com.github.QuickBirdEng.kotlin-snapshot-testing")
}
testImplementation(libs.horologist.roboscreenshots)

androidTestImplementation(libs.test.ext.junit)
androidTestImplementation(libs.test.espresso.core)
Expand Down
4 changes: 2 additions & 2 deletions DataLayer/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ compose-compiler = "1.5.15"
ktlint = "0.50.0"
org-jetbrains-kotlin = "1.9.25"
org-jetbrains-kotlinx = "1.9.0"
horologist = "0.6.20"
compose-ui-tooling = "1.4.0"
robolectric = "4.13"
roborazzi = "1.29.0"
roborazzi = "1.31.0"
ui-test-junit4 = "1.7.5"
ui-test-manifest = "1.7.5"
horologist = "0.7.4-alpha"

[libraries]
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activity" }
Expand Down
9 changes: 5 additions & 4 deletions WearSpeakerSample/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ compose-ui-tooling = "1.4.0"
ktlint = "0.50.0"
org-jetbrains-kotlin = "1.9.25"
robolectric = "4.13"
roborazzi = "1.29.0"
roborazzi = "1.31.0"
ui-test-junit4 = "1.7.5"
ui-test-manifest = "1.7.5"
horologist = "0.6.20"
horologist = "0.7.4-alpha"

[libraries]
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activity" }
Expand All @@ -23,17 +23,18 @@ androidx-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", versi
androidx-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "ui-test-manifest" }
androidx-media = "androidx.media:media:1.7.0"
compose-compiler = { module = "androidx.compose.compiler:compiler", version.ref = "compose-compiler" }
compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4" }
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
desugar-jdk-libs = "com.android.tools:desugar_jdk_libs:2.1.2"
desugar-jdk-libs = "com.android.tools:desugar_jdk_libs:2.1.3"
horologist-compose-layout = { module = "com.google.android.horologist:horologist-compose-layout", version.ref = "horologist" }
horologist-compose-material = { module = "com.google.android.horologist:horologist-compose-material", version.ref = "horologist" }
horologist-roboscreenshots = { module = "com.google.android.horologist:horologist-roboscreenshots", version.ref = "horologist" }
horologist-audio-ui = { module = "com.google.android.horologist:horologist-audio-ui", version.ref = "horologist" }
horologist-audio-ui-model = { module = "com.google.android.horologist:horologist-audio-ui-model", version.ref = "horologist" }
horologist-images-coil = { module = "com.google.android.horologist:horologist-images-coil", version.ref = "horologist" }
horologist-media-data = { module = "com.google.android.horologist:horologist-media-data", version.ref = "horologist" }
horologist-media-ui = { module = "com.google.android.horologist:horologist-media-ui", version.ref = "horologist" }
horologist-media-ui-model = { module = "com.google.android.horologist:horologist-media-ui-model", version.ref = "horologist" }
junit = "junit:junit:4.13.2"
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "org-jetbrains-kotlin" }
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
Expand Down
13 changes: 4 additions & 9 deletions WearSpeakerSample/wear/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plugins {
}

android {
compileSdk = 34
compileSdk = 35

namespace = "com.example.android.wearable.speaker"

Expand Down Expand Up @@ -104,7 +104,9 @@ dependencies {

// Horologist Media toolkit
implementation(libs.horologist.media.ui)
implementation(libs.horologist.media.ui.model)
implementation(libs.horologist.audio.ui)
implementation(libs.horologist.audio.ui.model)
implementation(libs.horologist.media.data)
implementation(libs.horologist.images.coil)

Expand All @@ -131,14 +133,7 @@ dependencies {
testImplementation(libs.roborazzi)
testImplementation(libs.roborazzi.compose)
testImplementation(libs.roborazzi.rule)
testImplementation(libs.horologist.roboscreenshots) {
exclude(group = "com.github.QuickBirdEng.kotlin-snapshot-testing")
}

androidTestImplementation(libs.test.ext.junit)
androidTestImplementation(libs.test.espresso.core)
androidTestImplementation(libs.compose.ui.test.junit4)
androidTestImplementation(composeBom)
testImplementation(libs.horologist.roboscreenshots)

debugImplementation(libs.compose.ui.tooling)
debugImplementation(libs.androidx.ui.test.manifest)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ class SpeakerRecordingScreenTest(override val device: WearDevice) : WearScreensh
override val tolerance = 0.02f

@Test
fun speakerRecordingScreenTest() = runTest {
AppScaffold(
timeText = { ResponsiveTimeText(timeSource = FixedTimeSource) }
) {
SpeakerScreenPreview(PlaybackState.Recording)
fun speakerRecordingScreenTest() {
runTest {
AppScaffold(
timeText = { ResponsiveTimeText(timeSource = FixedTimeSource) }
) {
SpeakerScreenPreview(PlaybackState.Recording)
}
}
}

Expand Down

0 comments on commit 2c389cf

Please sign in to comment.