From f59d2bf453379cb703d685385050dcd272896550 Mon Sep 17 00:00:00 2001 From: Saket Narayan Date: Fri, 18 Oct 2024 22:52:33 -0400 Subject: [PATCH] Regenerate public API surface --- zoomable/api/api.txt | 6 +++--- .../me/saket/telephoto/zoomable/ZoomableContentLocation.kt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/zoomable/api/api.txt b/zoomable/api/api.txt index bacdfe8f..f2f82b97 100644 --- a/zoomable/api/api.txt +++ b/zoomable/api/api.txt @@ -95,7 +95,7 @@ package me.saket.telephoto.zoomable { public interface ZoomableContentLocation { method public androidx.compose.ui.geometry.Rect location(long layoutSize, androidx.compose.ui.unit.LayoutDirection direction); - method public long size(long layoutSize); + method @Deprecated public default long size(long layoutSize); field public static final me.saket.telephoto.zoomable.ZoomableContentLocation.Companion Companion; } @@ -113,7 +113,7 @@ package me.saket.telephoto.zoomable { } public static final class ZoomableContentLocation.Unspecified implements me.saket.telephoto.zoomable.ZoomableContentLocation { - method public Void location(long layoutSize, androidx.compose.ui.unit.LayoutDirection direction); + method public androidx.compose.ui.geometry.Rect location(long layoutSize, androidx.compose.ui.unit.LayoutDirection direction); method public long size(long layoutSize); field public static final me.saket.telephoto.zoomable.ZoomableContentLocation.Unspecified INSTANCE; } @@ -164,7 +164,7 @@ package me.saket.telephoto.zoomable { method @Deprecated public default suspend Object? resetZoom(boolean withAnimation, kotlin.coroutines.Continuation); method public void setAutoApplyTransformations(boolean); method public void setContentAlignment(androidx.compose.ui.Alignment); - method public suspend Object? setContentLocation(me.saket.telephoto.zoomable.ZoomableContentLocation location, kotlin.coroutines.Continuation); + method public void setContentLocation(me.saket.telephoto.zoomable.ZoomableContentLocation location); method public void setContentScale(androidx.compose.ui.layout.ContentScale); method public suspend Object? zoomBy(float zoomFactor, optional long centroid, optional androidx.compose.animation.core.AnimationSpec animationSpec, optional kotlin.coroutines.Continuation); method public suspend Object? zoomTo(float zoomFactor, optional long centroid, optional androidx.compose.animation.core.AnimationSpec animationSpec, optional kotlin.coroutines.Continuation); diff --git a/zoomable/src/commonMain/kotlin/me/saket/telephoto/zoomable/ZoomableContentLocation.kt b/zoomable/src/commonMain/kotlin/me/saket/telephoto/zoomable/ZoomableContentLocation.kt index ac2ff477..c173ef85 100644 --- a/zoomable/src/commonMain/kotlin/me/saket/telephoto/zoomable/ZoomableContentLocation.kt +++ b/zoomable/src/commonMain/kotlin/me/saket/telephoto/zoomable/ZoomableContentLocation.kt @@ -110,7 +110,7 @@ interface ZoomableContentLocation { * isn't calculated yet. The content will stay hidden until this is replaced. */ data object Unspecified : ZoomableContentLocation { - @Deprecated("No longer used") + @Suppress("OVERRIDE_DEPRECATION") override fun size(layoutSize: Size): Size = Size.Unspecified override fun location(layoutSize: Size, direction: LayoutDirection): Rect = throw UnsupportedOperationException() } @@ -123,7 +123,7 @@ interface ZoomableContentLocation { * size, you should provide a different value using [ZoomableState.setContentLocation]. */ data object SameAsLayoutBounds : ZoomableContentLocation { - @Deprecated("No longer used") + @Suppress("OVERRIDE_DEPRECATION") override fun size(layoutSize: Size): Size = layoutSize override fun location(layoutSize: Size, direction: LayoutDirection) = Rect(Offset.Zero, layoutSize) }