You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,14 @@
88
88
- Introduce `checkIconBackgroundColor`, `checkIconTintColor`, and `contentColor` to `AttachmentPickerTheme`. [#5903](https://github.com/GetStream/stream-chat-android/pull/5903)
89
89
90
90
### ⚠️ Changed
91
+
- Deprecate `StreamAttachmentFactories.defaultFactories()` in favor of `StreamAttachmentFactories.defaults()`. [#5908](https://github.com/GetStream/stream-chat-android/pull/5908)
92
+
- Deprecate `GiphyAttachmentContent` in favor of `GiphyAttachmentContent` with the `onItemClick` lambda parameter that accepts a `GiphyAttachmentClickData`. [#5908](https://github.com/GetStream/stream-chat-android/pull/5908)
93
+
- Deprecate `LinkAttachmentContent` in favor of `LinkAttachmentContent` with the `onItemClick` lambda parameter that accepts a `LinkAttachmentClickData`. [#5908](https://github.com/GetStream/stream-chat-android/pull/5908)
94
+
- Deprecate `MediaAttachmentContent` in favor of `MediaAttachmentContent` with the `onItemClick` lambda parameter that accepts a `MediaAttachmentClickData`. [#5908](https://github.com/GetStream/stream-chat-android/pull/5908)
95
+
- Deprecate `GiphyAttachmentFactory` constructor that accepts `onContentItemClick` in favor of the one that accepts `onItemClick` lambda parameter that accepts a `GiphyAttachmentClickData`. [#5908](https://github.com/GetStream/stream-chat-android/pull/5908)
96
+
- Deprecate `LinkAttachmentFactory` constructor that accepts `onContentItemClick` in favor of the one that accepts `onItemClick` lambda parameter that accepts a `LinkAttachmentClickData`. [#5908](https://github.com/GetStream/stream-chat-android/pull/5908)
97
+
- Deprecate `MediaAttachmentFactory` constructor that accepts `onContentItemClick` in favor of the one that accepts `onItemClick` lambda parameter that accepts a `MediaAttachmentClickData`. [#5908](https://github.com/GetStream/stream-chat-android/pull/5908)
Copy file name to clipboardExpand all lines: stream-chat-android-compose/api/stream-chat-android-compose.api
+70Lines changed: 70 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -456,6 +456,8 @@ public final class io/getstream/chat/android/compose/ui/attachments/StreamAttach
456
456
public final fun defaultFactories (Lkotlin/jvm/functions/Function0;ILio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;ZLkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function8;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Ljava/util/List;)Ljava/util/List;
457
457
public static synthetic fun defaultFactories$default (Lio/getstream/chat/android/compose/ui/attachments/StreamAttachmentFactories;Lkotlin/jvm/functions/Function0;ILio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;ZLkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function8;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Ljava/util/List;ILjava/lang/Object;)Ljava/util/List;
458
458
public final fun defaultQuotedFactories ()Ljava/util/List;
459
+
public final fun defaults (Lkotlin/jvm/functions/Function0;ILio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;ZLkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Ljava/util/List;)Ljava/util/List;
460
+
public static synthetic fun defaults$default (Lio/getstream/chat/android/compose/ui/attachments/StreamAttachmentFactories;Lkotlin/jvm/functions/Function0;ILio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;ZLkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Ljava/util/List;ILjava/lang/Object;)Ljava/util/List;
459
461
}
460
462
461
463
public final class io/getstream/chat/android/compose/ui/attachments/content/AudioRecordAttachmentContentKt {
@@ -532,8 +534,10 @@ public final class io/getstream/chat/android/compose/ui/attachments/content/Comp
532
534
public final class io/getstream/chat/android/compose/ui/attachments/content/ComposableSingletons$MediaAttachmentContentKt {
533
535
public static final field INSTANCE Lio/getstream/chat/android/compose/ui/attachments/content/ComposableSingletons$MediaAttachmentContentKt;
534
536
public static field lambda-1 Lkotlin/jvm/functions/Function3;
537
+
public static field lambda-2 Lkotlin/jvm/functions/Function3;
535
538
public fun <init> ()V
536
539
public final fun getLambda-1$stream_chat_android_compose_release ()Lkotlin/jvm/functions/Function3;
540
+
public final fun getLambda-2$stream_chat_android_compose_release ()Lkotlin/jvm/functions/Function3;
537
541
}
538
542
539
543
public final class io/getstream/chat/android/compose/ui/attachments/content/ComposableSingletons$MediaAttachmentPreviewContentKt {
@@ -584,19 +588,75 @@ public final class io/getstream/chat/android/compose/ui/attachments/content/File
584
588
public static final fun FileUploadItem (Lio/getstream/chat/android/models/Attachment;Landroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;II)V
585
589
}
586
590
591
+
public final class io/getstream/chat/android/compose/ui/attachments/content/GiphyAttachmentClickData {
592
+
public static final field $stable I
593
+
public final fun component1 ()Landroid/content/Context;
594
+
public final fun component2 ()Ljava/lang/String;
595
+
public final fun component3 ()Lio/getstream/chat/android/models/Attachment;
596
+
public final fun component4 ()Lio/getstream/chat/android/models/Message;
597
+
public fun equals (Ljava/lang/Object;)Z
598
+
public final fun getAttachment ()Lio/getstream/chat/android/models/Attachment;
599
+
public final fun getContext ()Landroid/content/Context;
600
+
public final fun getMessage ()Lio/getstream/chat/android/models/Message;
601
+
public final fun getUrl ()Ljava/lang/String;
602
+
public fun hashCode ()I
603
+
public fun toString ()Ljava/lang/String;
604
+
}
605
+
587
606
public final class io/getstream/chat/android/compose/ui/attachments/content/GiphyAttachmentContentKt {
607
+
public static final fun GiphyAttachmentContent (Lio/getstream/chat/android/compose/state/messages/attachments/AttachmentState;Landroidx/compose/ui/Modifier;Lio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V
588
608
public static final fun GiphyAttachmentContent (Lio/getstream/chat/android/compose/state/messages/attachments/AttachmentState;Landroidx/compose/ui/Modifier;Lio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V
589
609
}
590
610
591
611
public final class io/getstream/chat/android/compose/ui/attachments/content/ImageAttachmentPreviewContentKt {
592
612
public static final fun ImageAttachmentPreviewContent (Ljava/util/List;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;II)V
593
613
}
594
614
615
+
public final class io/getstream/chat/android/compose/ui/attachments/content/LinkAttachmentClickData {
616
+
public static final field $stable I
617
+
public final fun component1 ()Landroid/content/Context;
618
+
public final fun component2 ()Ljava/lang/String;
619
+
public final fun component3 ()Lio/getstream/chat/android/models/Attachment;
620
+
public final fun component4 ()Lio/getstream/chat/android/models/Message;
621
+
public fun equals (Ljava/lang/Object;)Z
622
+
public final fun getAttachment ()Lio/getstream/chat/android/models/Attachment;
623
+
public final fun getContext ()Landroid/content/Context;
624
+
public final fun getMessage ()Lio/getstream/chat/android/models/Message;
625
+
public final fun getUrl ()Ljava/lang/String;
626
+
public fun hashCode ()I
627
+
public fun toString ()Ljava/lang/String;
628
+
}
629
+
595
630
public final class io/getstream/chat/android/compose/ui/attachments/content/LinkAttachmentContentKt {
631
+
public static final fun LinkAttachmentContent (Lio/getstream/chat/android/compose/state/messages/attachments/AttachmentState;ILandroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V
596
632
public static final fun LinkAttachmentContent (Lio/getstream/chat/android/compose/state/messages/attachments/AttachmentState;ILandroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V
597
633
}
598
634
635
+
public final class io/getstream/chat/android/compose/ui/attachments/content/MediaAttachmentClickData {
636
+
public static final field $stable I
637
+
public final fun component1 ()Landroidx/activity/compose/ManagedActivityResultLauncher;
638
+
public final fun component2 ()Lio/getstream/chat/android/models/Message;
639
+
public final fun component3 ()I
640
+
public final fun component4 ()Z
641
+
public final fun component5 ()Lio/getstream/chat/android/ui/common/helper/DownloadAttachmentUriGenerator;
642
+
public final fun component6 ()Lio/getstream/chat/android/ui/common/helper/DownloadRequestInterceptor;
643
+
public final fun component7 ()Lio/getstream/chat/android/ui/common/images/resizing/StreamCdnImageResizing;
644
+
public final fun component8 ()Z
645
+
public fun equals (Ljava/lang/Object;)Z
646
+
public final fun getAttachmentPosition ()I
647
+
public final fun getDownloadAttachmentUriGenerator ()Lio/getstream/chat/android/ui/common/helper/DownloadAttachmentUriGenerator;
648
+
public final fun getDownloadRequestInterceptor ()Lio/getstream/chat/android/ui/common/helper/DownloadRequestInterceptor;
649
+
public final fun getMediaGalleryPreviewLauncher ()Landroidx/activity/compose/ManagedActivityResultLauncher;
650
+
public final fun getMessage ()Lio/getstream/chat/android/models/Message;
651
+
public final fun getSkipEnrichUrl ()Z
652
+
public final fun getStreamCdnImageResizing ()Lio/getstream/chat/android/ui/common/images/resizing/StreamCdnImageResizing;
653
+
public final fun getVideoThumbnailsEnabled ()Z
654
+
public fun hashCode ()I
655
+
public fun toString ()Ljava/lang/String;
656
+
}
657
+
599
658
public final class io/getstream/chat/android/compose/ui/attachments/content/MediaAttachmentContentKt {
659
+
public static final fun MediaAttachmentContent (Lio/getstream/chat/android/compose/state/messages/attachments/AttachmentState;Landroidx/compose/ui/Modifier;IZLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V
600
660
public static final fun MediaAttachmentContent (Lio/getstream/chat/android/compose/state/messages/attachments/AttachmentState;Landroidx/compose/ui/Modifier;IZLkotlin/jvm/functions/Function8;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V
601
661
}
602
662
@@ -637,9 +697,13 @@ public final class io/getstream/chat/android/compose/ui/attachments/factory/Comp
637
697
public static final field INSTANCE Lio/getstream/chat/android/compose/ui/attachments/factory/ComposableSingletons$MediaAttachmentFactoryKt;
638
698
public static field lambda-1 Lkotlin/jvm/functions/Function3;
639
699
public static field lambda-2 Lkotlin/jvm/functions/Function3;
700
+
public static field lambda-3 Lkotlin/jvm/functions/Function3;
701
+
public static field lambda-4 Lkotlin/jvm/functions/Function3;
640
702
public fun <init> ()V
641
703
public final fun getLambda-1$stream_chat_android_compose_release ()Lkotlin/jvm/functions/Function3;
642
704
public final fun getLambda-2$stream_chat_android_compose_release ()Lkotlin/jvm/functions/Function3;
705
+
public final fun getLambda-3$stream_chat_android_compose_release ()Lkotlin/jvm/functions/Function3;
706
+
public final fun getLambda-4$stream_chat_android_compose_release ()Lkotlin/jvm/functions/Function3;
643
707
}
644
708
645
709
public final class io/getstream/chat/android/compose/ui/attachments/factory/ComposableSingletons$QuotedAttachmentFactoryKt {
@@ -666,19 +730,25 @@ public final class io/getstream/chat/android/compose/ui/attachments/factory/File
666
730
public final class io/getstream/chat/android/compose/ui/attachments/factory/GiphyAttachmentFactory : io/getstream/chat/android/compose/ui/attachments/AttachmentFactory {
667
731
public static final field $stable I
668
732
public fun <init> ()V
733
+
public fun <init> (Lio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
734
+
public synthetic fun <init> (Lio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
669
735
public fun <init> (Lio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;)V
670
736
public synthetic fun <init> (Lio/getstream/chat/android/ui/common/utils/GiphyInfoType;Lio/getstream/chat/android/ui/common/utils/GiphySizingMode;Landroidx/compose/ui/layout/ContentScale;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
671
737
}
672
738
673
739
public final class io/getstream/chat/android/compose/ui/attachments/factory/LinkAttachmentFactory : io/getstream/chat/android/compose/ui/attachments/AttachmentFactory {
674
740
public static final field $stable I
741
+
public fun <init> (ILkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
742
+
public synthetic fun <init> (ILkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
675
743
public fun <init> (ILkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;)V
676
744
public synthetic fun <init> (ILkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
677
745
}
678
746
679
747
public final class io/getstream/chat/android/compose/ui/attachments/factory/MediaAttachmentFactory : io/getstream/chat/android/compose/ui/attachments/AttachmentFactory {
680
748
public static final field $stable I
681
749
public fun <init> ()V
750
+
public fun <init> (IZLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function3;)V
751
+
public synthetic fun <init> (IZLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
682
752
public fun <init> (IZLkotlin/jvm/functions/Function8;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function3;)V
683
753
public synthetic fun <init> (IZLkotlin/jvm/functions/Function8;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
Copy file name to clipboardExpand all lines: stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/attachments/StreamAttachmentFactories.kt
0 commit comments