Skip to content

Commit

Permalink
Upgrade to Zipline 1.7.0 (#1718)
Browse files Browse the repository at this point in the history
The '@contextual' is both unfortunate ane necessary.
There's no automatic way for Zipline to customize encoding
of built-in types, and the built-in encoding of longs
loses precision.

More details in this Zipline PR:
cashapp/zipline#1171
  • Loading branch information
squarejesse authored Dec 4, 2023
1 parent c5f2ed0 commit 738d55f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ androidx-activity = "1.8.1"
androidx-compose-ui = "1.5.4"
jbCompose = "1.5.11"
lint = "31.2.0"
zipline = "1.6.0"
zipline = "1.7.0"
coil = "2.5.0"
okio = "3.6.0"

Expand Down
1 change: 1 addition & 0 deletions redwood-treehouse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ kotlin {
dependencies {
api projects.redwoodCompose
api projects.redwoodProtocol
api libs.kotlinx.serialization.core
api libs.okio
api libs.zipline
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ import app.cash.redwood.protocol.Id
import app.cash.redwood.protocol.WidgetTag
import app.cash.zipline.ZiplineService
import kotlin.native.ObjCName
import kotlinx.serialization.Contextual

@ObjCName("AppLifecycle", exact = true)
public interface AppLifecycle : ZiplineService {
public fun start(host: Host)

public fun sendFrame(timeNanos: Long)
public fun sendFrame(timeNanos: @Contextual Long)

/** Platform features to the guest application. */
public interface Host : ZiplineService {
Expand Down

0 comments on commit 738d55f

Please sign in to comment.