From f087036713dc92b0e2d775a431c9af233865b242 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Wed, 1 Nov 2023 13:42:47 -0400 Subject: [PATCH 1/2] Make Zipline's EventListener public ZiplineLoader creates an EventListener and associates it with a Zipline instance. I'd like to later recover the created EventListener instance. --- zipline/src/hostMain/kotlin/app/cash/zipline/Zipline.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/src/hostMain/kotlin/app/cash/zipline/Zipline.kt b/zipline/src/hostMain/kotlin/app/cash/zipline/Zipline.kt index 98073c718e..f24756f4fd 100644 --- a/zipline/src/hostMain/kotlin/app/cash/zipline/Zipline.kt +++ b/zipline/src/hostMain/kotlin/app/cash/zipline/Zipline.kt @@ -44,7 +44,7 @@ actual class Zipline private constructor( userSerializersModule: SerializersModule, dispatcher: CoroutineDispatcher, private val scope: CoroutineScope, - private val eventListener: EventListener, + val eventListener: EventListener, ) { private val endpoint = Endpoint( scope = scope, From ce162905c72459a8bcb29afac29bedd170b29532 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Wed, 1 Nov 2023 14:24:53 -0400 Subject: [PATCH 2/2] ApiDump --- zipline/api/android/zipline.api | 1 + zipline/api/jvm/zipline.api | 1 + 2 files changed, 2 insertions(+) diff --git a/zipline/api/android/zipline.api b/zipline/api/android/zipline.api index 600eb191bd..be84b58589 100644 --- a/zipline/api/android/zipline.api +++ b/zipline/api/android/zipline.api @@ -167,6 +167,7 @@ public final class app/cash/zipline/Zipline { public final fun bind (Ljava/lang/String;Lapp/cash/zipline/ZiplineService;)V public final fun bind (Ljava/lang/String;Lapp/cash/zipline/ZiplineService;Lapp/cash/zipline/internal/bridge/ZiplineServiceAdapter;)V public final fun close ()V + public final fun getEventListener ()Lapp/cash/zipline/EventListener; public final fun getJson ()Lkotlinx/serialization/json/Json; public final fun getQuickJs ()Lapp/cash/zipline/QuickJs; public final fun loadJsModule (Ljava/lang/String;Ljava/lang/String;)V diff --git a/zipline/api/jvm/zipline.api b/zipline/api/jvm/zipline.api index 600eb191bd..be84b58589 100644 --- a/zipline/api/jvm/zipline.api +++ b/zipline/api/jvm/zipline.api @@ -167,6 +167,7 @@ public final class app/cash/zipline/Zipline { public final fun bind (Ljava/lang/String;Lapp/cash/zipline/ZiplineService;)V public final fun bind (Ljava/lang/String;Lapp/cash/zipline/ZiplineService;Lapp/cash/zipline/internal/bridge/ZiplineServiceAdapter;)V public final fun close ()V + public final fun getEventListener ()Lapp/cash/zipline/EventListener; public final fun getJson ()Lkotlinx/serialization/json/Json; public final fun getQuickJs ()Lapp/cash/zipline/QuickJs; public final fun loadJsModule (Ljava/lang/String;Ljava/lang/String;)V