diff --git a/samples/emoji-search/launcher/src/commonMain/kotlin/com/example/redwood/emojisearch/launcher/EmojiSearchAppSpec.kt b/samples/emoji-search/launcher/src/commonMain/kotlin/com/example/redwood/emojisearch/launcher/EmojiSearchAppSpec.kt index 66f1833d62..008821edf9 100644 --- a/samples/emoji-search/launcher/src/commonMain/kotlin/com/example/redwood/emojisearch/launcher/EmojiSearchAppSpec.kt +++ b/samples/emoji-search/launcher/src/commonMain/kotlin/com/example/redwood/emojisearch/launcher/EmojiSearchAppSpec.kt @@ -17,6 +17,8 @@ package com.example.redwood.emojisearch.launcher import app.cash.redwood.treehouse.TreehouseApp import app.cash.zipline.Zipline +import app.cash.zipline.ZiplineManifest +import app.cash.zipline.loader.FreshnessChecker import com.example.redwood.emojisearch.treehouse.EmojiSearchPresenter import com.example.redwood.emojisearch.treehouse.HostApi import com.example.redwood.emojisearch.treehouse.emojiSearchSerializersModule @@ -29,6 +31,11 @@ class EmojiSearchAppSpec( override val name = "emoji-search" override val serializersModule = emojiSearchSerializersModule + override val freshnessChecker: FreshnessChecker + get() = object : FreshnessChecker { + override fun isFresh(manifest: ZiplineManifest, freshAtEpochMs: Long) = true + } + override fun bindServices(zipline: Zipline) { zipline.bind("HostApi", hostApi) }