Skip to content

Commit

Permalink
Update horologist to v0.6.6 (#1210)
Browse files Browse the repository at this point in the history
* Update horologist to v0.6.6
---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yuri Schimke <[email protected]>
  • Loading branch information
renovate[bot] and yschimke authored Mar 26, 2024
1 parent 155092d commit 38b8360
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ credentials-play-services-auth = "1.2.1"
decompose = "2.2.2"
essenty = "1.3.0"
googleid = "1.1.0"
horologist = "0.6.5"
horologist = "0.6.6"
image-loader = "1.7.7"
io-coil-kt = "2.6.0"
kmp-nativecoroutines = "1.0.0-ALPHA-24"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package dev.johnoreilly.confetti.wear.complication
import android.app.PendingIntent
import android.app.PendingIntent.FLAG_IMMUTABLE
import android.app.PendingIntent.FLAG_UPDATE_CURRENT
import android.content.Context
import android.content.Intent
import androidx.core.net.toUri
import androidx.wear.watchface.complications.data.ComplicationType
Expand All @@ -15,7 +14,6 @@ import dev.johnoreilly.confetti.ConfettiRepository
import dev.johnoreilly.confetti.auth.Authentication
import dev.johnoreilly.confetti.fragment.SessionDetails
import dev.johnoreilly.confetti.toTimeZone
import dev.johnoreilly.confetti.wear.MainActivity
import dev.johnoreilly.confetti.wear.settings.PhoneSettingsSync
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.runBlocking
Expand All @@ -38,13 +36,13 @@ class NextSessionComplicationService :

override fun onComplicationActivated(complicationInstanceId: Int, type: ComplicationType) {
runBlocking {
wearAppHelper.markComplicationAsActivated(this@NextSessionComplicationService.javaClass.simpleName, complicationInstanceId, type)
wearAppHelper.markComplicationAsActivated(this@NextSessionComplicationService.javaClass.name, complicationInstanceId, type)
}
}

override fun onComplicationDeactivated(complicationInstanceId: Int) {
runBlocking {
wearAppHelper.markComplicationAsDeactivated(this@NextSessionComplicationService.javaClass.simpleName, complicationInstanceId, ComplicationType.EMPTY)
wearAppHelper.markComplicationAsDeactivated(complicationInstanceId)
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package dev.johnoreilly.confetti.wear.navigation

import android.content.Intent
import android.os.Build
import android.util.Log
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.router.stack.ChildStack
Expand Down Expand Up @@ -115,8 +114,8 @@ class DefaultWearAppComponent(
override suspend fun waitForConference(): String {
val conference = appState.filterNotNull().map { it.defaultConference }.firstOrNull()

// Nasty hack to avoid failure on robolectric
if (!isRoboUnitTest()) {
// Workaround to avoid failure on robolectric
if (wearAppHelper.isAvailable()) {
if (conference == null) {
wearAppHelper.markSetupNoLongerComplete()
} else {
Expand All @@ -129,10 +128,6 @@ class DefaultWearAppComponent(
return conference ?: AppSettings.CONFERENCE_NOT_SET
}

fun isRoboUnitTest(): Boolean {
return "robolectric" == Build.FINGERPRINT
}

override val isWaitingOnThemeOrData: Boolean
get() = config is Config.Loading || appState.value == null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ class SettingsScreenTest(override val device: WearDevice) : BaseScreenshotTest()
composeRule.onNode(hasScrollToIndexAction())
.scrollToBottom()
takeScreenshot("_end")
composeRule.onNodeWithContentDescription("Logged in as John O'Reilly")
.assertHasClickAction()
}

@Test
Expand Down

0 comments on commit 38b8360

Please sign in to comment.