From b0f75438c0dc12f75e55f49f819c9de85d144a3b Mon Sep 17 00:00:00 2001 From: Chris Banes Date: Tue, 1 Oct 2024 19:35:53 +0100 Subject: [PATCH] Prepare for release 0.9.0-beta02 --- gradle.properties | 2 +- haze-materials/api/0.9.0-beta02.txt | 36 +++++++++ haze/api/0.9.0-beta02.txt | 115 ++++++++++++++++++++++++++++ 3 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 haze-materials/api/0.9.0-beta02.txt create mode 100644 haze/api/0.9.0-beta02.txt diff --git a/gradle.properties b/gradle.properties index 687f35c3..0c170fad 100644 --- a/gradle.properties +++ b/gradle.properties @@ -40,7 +40,7 @@ SONATYPE_HOST=DEFAULT RELEASE_SIGNING_ENABLED=true GROUP=dev.chrisbanes.haze -VERSION_NAME=0.9.0-SNAPSHOT +VERSION_NAME=0.9.0-beta02 POM_DESCRIPTION=Haze POM_URL=https://github.com/chrisbanes/haze/ diff --git a/haze-materials/api/0.9.0-beta02.txt b/haze-materials/api/0.9.0-beta02.txt new file mode 100644 index 00000000..1c639657 --- /dev/null +++ b/haze-materials/api/0.9.0-beta02.txt @@ -0,0 +1,36 @@ +// Signature format: 4.0 +package dev.chrisbanes.haze.materials { + + public final class CupertinoMaterials { + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle regular(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle thick(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle thin(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle ultraThin(optional long containerColor); + field public static final dev.chrisbanes.haze.materials.CupertinoMaterials INSTANCE; + } + + @kotlin.RequiresOptIn(message="Experimental Haze Materials API", level=kotlin.RequiresOptIn.Level.WARNING) public @interface ExperimentalHazeMaterialsApi { + } + + @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public final class FluentMaterials { + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle accentAcrylicBase(optional long accentColor, optional boolean isDark); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle accentAcrylicDefault(optional long accentColor, optional boolean isDark); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle acrylicBase(optional boolean isDark); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle acrylicDefault(optional boolean isDark); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle mica(optional boolean isDark); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle micaAlt(optional boolean isDark); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle thinAcrylic(optional boolean isDark); + field public static final dev.chrisbanes.haze.materials.FluentMaterials INSTANCE; + } + + public final class HazeMaterials { + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle regular(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle thick(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle thin(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle ultraThick(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle ultraThin(optional long containerColor); + field public static final dev.chrisbanes.haze.materials.HazeMaterials INSTANCE; + } + +} + diff --git a/haze/api/0.9.0-beta02.txt b/haze/api/0.9.0-beta02.txt new file mode 100644 index 00000000..b6958964 --- /dev/null +++ b/haze/api/0.9.0-beta02.txt @@ -0,0 +1,115 @@ +// Signature format: 4.0 +package dev.chrisbanes.haze { + + public final class CanvasKt { + method public static inline void translate(androidx.compose.ui.graphics.drawscope.DrawScope, long offset, kotlin.jvm.functions.Function1 block); + } + + public final class HazeChildKt { + method @Deprecated public static androidx.compose.ui.Modifier hazeChild(androidx.compose.ui.Modifier, dev.chrisbanes.haze.HazeState state, androidx.compose.ui.graphics.Shape shape, dev.chrisbanes.haze.HazeStyle style); + method public static androidx.compose.ui.Modifier hazeChild(androidx.compose.ui.Modifier, dev.chrisbanes.haze.HazeState state, dev.chrisbanes.haze.HazeStyle style); + method public static androidx.compose.ui.Modifier hazeChild(androidx.compose.ui.Modifier, dev.chrisbanes.haze.HazeState state, kotlin.jvm.functions.Function1 block); + } + + public interface HazeChildScope { + method public void applyStyle(dev.chrisbanes.haze.HazeStyle style); + method public float getAlpha(); + method public long getBackgroundColor(); + method public float getBlurRadius(); + method public dev.chrisbanes.haze.HazeTint? getFallbackTint(); + method public androidx.compose.ui.graphics.Brush? getMask(); + method public float getNoiseFactor(); + method public java.util.List getTints(); + method public void setAlpha(float); + method public void setBackgroundColor(long); + method public void setBlurRadius(float); + method public void setFallbackTint(dev.chrisbanes.haze.HazeTint?); + method public void setMask(androidx.compose.ui.graphics.Brush?); + method public void setNoiseFactor(float); + method public void setTints(java.util.List); + property public abstract float alpha; + property public abstract long backgroundColor; + property public abstract float blurRadius; + property public abstract dev.chrisbanes.haze.HazeTint? fallbackTint; + property public abstract androidx.compose.ui.graphics.Brush? mask; + property public abstract float noiseFactor; + property public abstract java.util.List tints; + } + + public final class HazeDefaults { + method public float getBlurRadius(); + method public dev.chrisbanes.haze.HazeStyle style(long backgroundColor, optional dev.chrisbanes.haze.HazeTint tint, optional float blurRadius, optional float noiseFactor); + method @Deprecated public dev.chrisbanes.haze.HazeStyle style(optional long backgroundColor, long tint, optional float blurRadius, optional float noiseFactor); + method public dev.chrisbanes.haze.HazeTint tint(long color); + property public final float blurRadius; + field public static final dev.chrisbanes.haze.HazeDefaults INSTANCE; + field public static final float noiseFactor = 0.15f; + field public static final float tintAlpha = 0.7f; + } + + public final class HazeKt { + method public static androidx.compose.ui.Modifier haze(androidx.compose.ui.Modifier, dev.chrisbanes.haze.HazeState state); + } + + @androidx.compose.runtime.Stable public final class HazeState { + ctor public HazeState(); + method public androidx.compose.ui.graphics.layer.GraphicsLayer? getContentLayer(); + method public long getPositionOnScreen(); + property public final androidx.compose.ui.graphics.layer.GraphicsLayer? contentLayer; + property public final long positionOnScreen; + } + + @androidx.compose.runtime.Immutable public final class HazeStyle { + ctor public HazeStyle(optional long backgroundColor, optional dev.chrisbanes.haze.HazeTint? tint, optional float blurRadius, optional float noiseFactor, optional dev.chrisbanes.haze.HazeTint? fallbackTint); + ctor public HazeStyle(optional long backgroundColor, optional java.util.List tints, optional float blurRadius, optional float noiseFactor, optional dev.chrisbanes.haze.HazeTint? fallbackTint); + method public long component1-0d7_KjU(); + method public java.util.List component2(); + method public float component3-D9Ej5fM(); + method public float component4(); + method public dev.chrisbanes.haze.HazeTint? component5(); + method public dev.chrisbanes.haze.HazeStyle copy-cq6XJ1M(long backgroundColor, java.util.List tints, float blurRadius, float noiseFactor, dev.chrisbanes.haze.HazeTint? fallbackTint); + method public long getBackgroundColor(); + method public float getBlurRadius(); + method public dev.chrisbanes.haze.HazeTint? getFallbackTint(); + method public float getNoiseFactor(); + method public java.util.List getTints(); + property public final long backgroundColor; + property public final float blurRadius; + property public final dev.chrisbanes.haze.HazeTint? fallbackTint; + property public final float noiseFactor; + property public final java.util.List tints; + field public static final dev.chrisbanes.haze.HazeStyle.Companion Companion; + } + + public static final class HazeStyle.Companion { + method public dev.chrisbanes.haze.HazeStyle getUnspecified(); + property public final dev.chrisbanes.haze.HazeStyle Unspecified; + } + + @androidx.compose.runtime.Stable public interface HazeTint { + } + + public static final class HazeTint.Brush implements dev.chrisbanes.haze.HazeTint { + ctor public HazeTint.Brush(androidx.compose.ui.graphics.Brush brush, optional int blendMode); + method public androidx.compose.ui.graphics.Brush component1(); + method public int component2-0nO6VwU(); + method public dev.chrisbanes.haze.HazeTint.Brush copy-GB0RdKg(androidx.compose.ui.graphics.Brush brush, int blendMode); + method public int getBlendMode(); + method public androidx.compose.ui.graphics.Brush getBrush(); + property public final int blendMode; + property public final androidx.compose.ui.graphics.Brush brush; + } + + public static final class HazeTint.Color implements dev.chrisbanes.haze.HazeTint { + ctor public HazeTint.Color(long color, optional int blendMode); + method public long component1-0d7_KjU(); + method public int component2-0nO6VwU(); + method public dev.chrisbanes.haze.HazeTint.Color copy-xETnrds(long color, int blendMode); + method public int getBlendMode(); + method public long getColor(); + property public final int blendMode; + property public final long color; + } + +} +