Skip to content

Commit

Permalink
Remove android annotations on the comment APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Jun 29, 2024
1 parent bd984ad commit e85bc53
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 7 deletions.
83 changes: 83 additions & 0 deletions colorpicker-compose/api/android/colorpicker-compose.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
public final class com/github/skydoves/colorpicker/compose/AlphaSliderKt {
public static final fun AlphaSlider-I89wPZw (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;FFJLandroidx/compose/ui/graphics/ImageBitmap;FJFLandroidx/compose/ui/graphics/Paint;JJFLandroidx/compose/ui/graphics/Color;Landroidx/compose/runtime/Composer;III)V
}

public final class com/github/skydoves/colorpicker/compose/AlphaTileKt {
public static final fun AlphaTile-Qd0NJH0 (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;JJJFLandroidx/compose/runtime/Composer;II)V
}

public final class com/github/skydoves/colorpicker/compose/BrightnessSliderKt {
public static final fun BrightnessSlider-AXzc6Sc (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;FFJLandroidx/compose/ui/graphics/ImageBitmap;FJFLandroidx/compose/ui/graphics/Paint;Landroidx/compose/ui/graphics/Color;Landroidx/compose/runtime/Composer;III)V
}

public final class com/github/skydoves/colorpicker/compose/ColorEnvelope {
public static final field $stable I
public synthetic fun <init> (JLjava/lang/String;ZLkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1-0d7_KjU ()J
public final fun component2 ()Ljava/lang/String;
public final fun component3 ()Z
public final fun copy-ek8zF_U (JLjava/lang/String;Z)Lcom/github/skydoves/colorpicker/compose/ColorEnvelope;
public static synthetic fun copy-ek8zF_U$default (Lcom/github/skydoves/colorpicker/compose/ColorEnvelope;JLjava/lang/String;ZILjava/lang/Object;)Lcom/github/skydoves/colorpicker/compose/ColorEnvelope;
public fun equals (Ljava/lang/Object;)Z
public final fun getColor-0d7_KjU ()J
public final fun getFromUser ()Z
public final fun getHexCode ()Ljava/lang/String;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
}

public final class com/github/skydoves/colorpicker/compose/ColorPickerController {
public static final field $stable I
public fun <init> ()V
public fun <init> (Lkotlinx/coroutines/CoroutineScope;)V
public synthetic fun <init> (Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getColorFlow (J)Lkotlinx/coroutines/flow/Flow;
public static synthetic fun getColorFlow$default (Lcom/github/skydoves/colorpicker/compose/ColorPickerController;JILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
public final fun getEnabled ()Z
public final fun getSelectedColor ()Landroidx/compose/runtime/State;
public final fun getSelectedPoint ()Landroidx/compose/runtime/State;
public final fun getWheelAlpha ()F
public final fun getWheelBitmap ()Landroidx/compose/ui/graphics/ImageBitmap;
public final fun getWheelColor-0d7_KjU ()J
public final fun getWheelPaint ()Landroidx/compose/ui/graphics/Paint;
public final fun getWheelRadius-D9Ej5fM ()F
public final fun selectByColor-DxMtmZc (JZ)V
public final fun selectByCoordinate (FFZ)V
public final fun selectByCoordinate-3MmeM6k (JZ)V
public final fun selectByHsv (FFFFZ)V
public final fun selectByHsv ([FFZ)V
public final fun selectCenter (Z)V
public final fun setAlpha (FZ)V
public final fun setBrightness (FZ)V
public final fun setEnabled (Z)V
public final fun setWheelAlpha (F)V
public final fun setWheelBitmap (Landroidx/compose/ui/graphics/ImageBitmap;)V
public final fun setWheelColor-8_81llA (J)V
public final fun setWheelPaint (Landroidx/compose/ui/graphics/Paint;)V
public final fun setWheelRadius-0680j_4 (F)V
}

public final class com/github/skydoves/colorpicker/compose/ColorPickerControllerKt {
public static final fun rememberColorPickerController (Landroidx/compose/runtime/Composer;I)Lcom/github/skydoves/colorpicker/compose/ColorPickerController;
}

public final class com/github/skydoves/colorpicker/compose/DrawScopeExtensionsKt {
public static final fun drawColorIndicator-wPWG1Vc (Landroidx/compose/ui/graphics/drawscope/DrawScope;JJ)V
}

public final class com/github/skydoves/colorpicker/compose/HsvColorPickerKt {
public static final fun HsvColorPicker-PIknLig (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;Landroidx/compose/ui/graphics/ImageBitmap;Lkotlin/jvm/functions/Function1;ZLkotlin/jvm/functions/Function1;Landroidx/compose/ui/graphics/Color;Landroidx/compose/runtime/Composer;II)V
}

public final class com/github/skydoves/colorpicker/compose/ImageColorPickerKt {
public static final fun ImageColorPicker (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;Landroidx/compose/ui/graphics/ImageBitmap;Landroidx/compose/ui/graphics/ImageBitmap;Lkotlin/jvm/functions/Function1;ZLcom/github/skydoves/colorpicker/compose/PaletteContentScale;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V
}

public final class com/github/skydoves/colorpicker/compose/PaletteContentScale : java/lang/Enum {
public static final field CROP Lcom/github/skydoves/colorpicker/compose/PaletteContentScale;
public static final field FIT Lcom/github/skydoves/colorpicker/compose/PaletteContentScale;
public static fun getEntries ()Lkotlin/enums/EnumEntries;
public static fun valueOf (Ljava/lang/String;)Lcom/github/skydoves/colorpicker/compose/PaletteContentScale;
public static fun values ()[Lcom/github/skydoves/colorpicker/compose/PaletteContentScale;
}

83 changes: 83 additions & 0 deletions colorpicker-compose/api/desktop/colorpicker-compose.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
public final class com/github/skydoves/colorpicker/compose/AlphaSliderKt {
public static final fun AlphaSlider-I89wPZw (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;FFJLandroidx/compose/ui/graphics/ImageBitmap;FJFLandroidx/compose/ui/graphics/Paint;JJFLandroidx/compose/ui/graphics/Color;Landroidx/compose/runtime/Composer;III)V
}

public final class com/github/skydoves/colorpicker/compose/AlphaTileKt {
public static final fun AlphaTile-Qd0NJH0 (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;JJJFLandroidx/compose/runtime/Composer;II)V
}

public final class com/github/skydoves/colorpicker/compose/BrightnessSliderKt {
public static final fun BrightnessSlider-AXzc6Sc (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;FFJLandroidx/compose/ui/graphics/ImageBitmap;FJFLandroidx/compose/ui/graphics/Paint;Landroidx/compose/ui/graphics/Color;Landroidx/compose/runtime/Composer;III)V
}

public final class com/github/skydoves/colorpicker/compose/ColorEnvelope {
public static final field $stable I
public synthetic fun <init> (JLjava/lang/String;ZLkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1-0d7_KjU ()J
public final fun component2 ()Ljava/lang/String;
public final fun component3 ()Z
public final fun copy-ek8zF_U (JLjava/lang/String;Z)Lcom/github/skydoves/colorpicker/compose/ColorEnvelope;
public static synthetic fun copy-ek8zF_U$default (Lcom/github/skydoves/colorpicker/compose/ColorEnvelope;JLjava/lang/String;ZILjava/lang/Object;)Lcom/github/skydoves/colorpicker/compose/ColorEnvelope;
public fun equals (Ljava/lang/Object;)Z
public final fun getColor-0d7_KjU ()J
public final fun getFromUser ()Z
public final fun getHexCode ()Ljava/lang/String;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
}

public final class com/github/skydoves/colorpicker/compose/ColorPickerController {
public static final field $stable I
public fun <init> ()V
public fun <init> (Lkotlinx/coroutines/CoroutineScope;)V
public synthetic fun <init> (Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getColorFlow (J)Lkotlinx/coroutines/flow/Flow;
public static synthetic fun getColorFlow$default (Lcom/github/skydoves/colorpicker/compose/ColorPickerController;JILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
public final fun getEnabled ()Z
public final fun getSelectedColor ()Landroidx/compose/runtime/State;
public final fun getSelectedPoint ()Landroidx/compose/runtime/State;
public final fun getWheelAlpha ()F
public final fun getWheelBitmap ()Landroidx/compose/ui/graphics/ImageBitmap;
public final fun getWheelColor-0d7_KjU ()J
public final fun getWheelPaint ()Landroidx/compose/ui/graphics/Paint;
public final fun getWheelRadius-D9Ej5fM ()F
public final fun selectByColor-DxMtmZc (JZ)V
public final fun selectByCoordinate (FFZ)V
public final fun selectByCoordinate-3MmeM6k (JZ)V
public final fun selectByHsv (FFFFZ)V
public final fun selectByHsv ([FFZ)V
public final fun selectCenter (Z)V
public final fun setAlpha (FZ)V
public final fun setBrightness (FZ)V
public final fun setEnabled (Z)V
public final fun setWheelAlpha (F)V
public final fun setWheelBitmap (Landroidx/compose/ui/graphics/ImageBitmap;)V
public final fun setWheelColor-8_81llA (J)V
public final fun setWheelPaint (Landroidx/compose/ui/graphics/Paint;)V
public final fun setWheelRadius-0680j_4 (F)V
}

public final class com/github/skydoves/colorpicker/compose/ColorPickerControllerKt {
public static final fun rememberColorPickerController (Landroidx/compose/runtime/Composer;I)Lcom/github/skydoves/colorpicker/compose/ColorPickerController;
}

public final class com/github/skydoves/colorpicker/compose/DrawScopeExtensionsKt {
public static final fun drawColorIndicator-wPWG1Vc (Landroidx/compose/ui/graphics/drawscope/DrawScope;JJ)V
}

public final class com/github/skydoves/colorpicker/compose/HsvColorPickerKt {
public static final fun HsvColorPicker-PIknLig (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;Landroidx/compose/ui/graphics/ImageBitmap;Lkotlin/jvm/functions/Function1;ZLkotlin/jvm/functions/Function1;Landroidx/compose/ui/graphics/Color;Landroidx/compose/runtime/Composer;II)V
}

public final class com/github/skydoves/colorpicker/compose/ImageColorPickerKt {
public static final fun ImageColorPicker (Landroidx/compose/ui/Modifier;Lcom/github/skydoves/colorpicker/compose/ColorPickerController;Landroidx/compose/ui/graphics/ImageBitmap;Landroidx/compose/ui/graphics/ImageBitmap;Lkotlin/jvm/functions/Function1;ZLcom/github/skydoves/colorpicker/compose/PaletteContentScale;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V
}

public final class com/github/skydoves/colorpicker/compose/PaletteContentScale : java/lang/Enum {
public static final field CROP Lcom/github/skydoves/colorpicker/compose/PaletteContentScale;
public static final field FIT Lcom/github/skydoves/colorpicker/compose/PaletteContentScale;
public static fun getEntries ()Lkotlin/enums/EnumEntries;
public static fun valueOf (Ljava/lang/String;)Lcom/github/skydoves/colorpicker/compose/PaletteContentScale;
public static fun values ()[Lcom/github/skydoves/colorpicker/compose/PaletteContentScale;
}

1 change: 1 addition & 0 deletions colorpicker-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ kotlin {
withMacosArm64()
}
}
withJs()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package com.github.skydoves.colorpicker.compose

import androidx.annotation.FloatRange
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -54,7 +53,7 @@ public fun AlphaSlider(
wheelImageBitmap: ImageBitmap? = null,
wheelRadius: Dp = 12.dp,
wheelColor: Color = Color.White,
@FloatRange(from = 0.0, to = 1.0) wheelAlpha: Float = 1.0f,
wheelAlpha: Float = 1.0f,
wheelPaint: Paint = Paint().apply {
color = wheelColor
alpha = wheelAlpha
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package com.github.skydoves.colorpicker.compose

import androidx.annotation.FloatRange
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -50,7 +49,7 @@ public fun BrightnessSlider(
wheelImageBitmap: ImageBitmap? = null,
wheelRadius: Dp = 12.dp,
wheelColor: Color = Color.White,
@FloatRange(from = 0.0, to = 1.0) wheelAlpha: Float = 1.0f,
wheelAlpha: Float = 1.0f,
wheelPaint: Paint = Paint().apply {
color = wheelColor
alpha = wheelAlpha
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package com.github.skydoves.colorpicker.compose

import androidx.annotation.FloatRange
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.gestures.detectHorizontalDragGestures
import androidx.compose.foundation.gestures.detectTapGestures
Expand Down Expand Up @@ -76,7 +75,7 @@ internal fun Slider(
wheelImageBitmap: ImageBitmap? = null,
wheelRadius: Dp = 12.dp,
wheelColor: Color = Color.White,
@FloatRange(from = 0.0, to = 1.0) wheelAlpha: Float = 1.0f,
wheelAlpha: Float = 1.0f,
wheelPaint: Paint = Paint().apply {
color = wheelColor
alpha = wheelAlpha
Expand Down Expand Up @@ -169,7 +168,7 @@ private fun Canvas.drawWheel(
wheelImageBitmap: ImageBitmap?,
wheelRadius: Float,
wheelColor: Color = Color.White,
@FloatRange(from = 0.0, to = 1.0) wheelAlpha: Float = 1.0f,
wheelAlpha: Float = 1.0f,
wheelPaint: Paint = Paint().apply {
color = wheelColor
alpha = wheelAlpha
Expand Down

0 comments on commit e85bc53

Please sign in to comment.