From c9dbaf2893b3befda37b05a715ba0f124fe541ae Mon Sep 17 00:00:00 2001 From: Anshuman Pathania Date: Fri, 8 May 2026 19:30:14 +0530 Subject: [PATCH 1/3] fix: update Flutter v5 UIKit dependencies to ^5.0.0 (stable pub.dev format) --- ui-kit/flutter/calling-integration.mdx | 2 +- ui-kit/flutter/custom-mentions-formatter-guide.mdx | 4 ++-- ui-kit/flutter/getting-started.mdx | 4 ++-- ui-kit/flutter/overview.mdx | 2 +- ui-kit/flutter/troubleshooting.mdx | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui-kit/flutter/calling-integration.mdx b/ui-kit/flutter/calling-integration.mdx index 13b3dbf1d..e4de5931c 100644 --- a/ui-kit/flutter/calling-integration.mdx +++ b/ui-kit/flutter/calling-integration.mdx @@ -17,7 +17,7 @@ Add the following dependency to your `pubspec.yaml` file: ```yaml dependencies: - cometchat_calls_uikit: ^5.0.15 + cometchat_calls_uikit: ^5.0.0 ``` ## Step 2: Update Android build.gradle diff --git a/ui-kit/flutter/custom-mentions-formatter-guide.mdx b/ui-kit/flutter/custom-mentions-formatter-guide.mdx index a9322a839..9a58a3e17 100644 --- a/ui-kit/flutter/custom-mentions-formatter-guide.mdx +++ b/ui-kit/flutter/custom-mentions-formatter-guide.mdx @@ -11,7 +11,7 @@ description: "Create a custom mentions formatter to filter suggestions, style me | Key class | `CometChatMentionsFormatter` (from `cometchat_uikit_shared`) | | Init | `CometChatUIKit.init(uiKitSettings)` then `CometChatUIKit.login(uid)` | | Purpose | Customize @mention suggestion behavior — filter who appears, style mentions, handle taps | -| Version | v5.2.13 | +| Version | v5.0.0+ | | Sample app | [GitHub](https://github.com/cometchat/cometchat-uikit-flutter/tree/v5/sample_app) | | Related | [Mentions Formatter](/ui-kit/flutter/mentions-formatter-guide) · [Custom Text Formatter](/ui-kit/flutter/custom-text-formatter-guide) · [All Guides](/ui-kit/flutter/guide-overview) | @@ -20,7 +20,7 @@ description: "Create a custom mentions formatter to filter suggestions, style me This guide walks you through creating a custom mentions formatter that extends `CometChatMentionsFormatter` to control the `@mention` suggestion behavior inside the message composer — letting you filter who appears in the suggestion list, customize mention styling, and handle tap interactions. This works with both `CometChatMessageComposer` and `CometChatCompactMessageComposer`. -This guide requires `cometchat_chat_uikit` version **5.2.13** or above. Earlier versions do not expose the APIs needed to subclass `CometChatMentionsFormatter` in this way. +This guide requires `cometchat_chat_uikit` version **5.0.0** or above. ## Setup diff --git a/ui-kit/flutter/getting-started.mdx b/ui-kit/flutter/getting-started.mdx index 1e58549c3..691d232ba 100644 --- a/ui-kit/flutter/getting-started.mdx +++ b/ui-kit/flutter/getting-started.mdx @@ -86,8 +86,8 @@ Add to your `pubspec.yaml`: dependencies: flutter: sdk: flutter - cometchat_chat_uikit: ^5.2.14 - cometchat_calls_uikit: ^5.0.15 # Optional: for voice/video calling + cometchat_chat_uikit: ^5.0.0 + cometchat_calls_uikit: ^5.0.0 # Optional: for voice/video calling ``` Then run: diff --git a/ui-kit/flutter/overview.mdx b/ui-kit/flutter/overview.mdx index 6f5dfc714..d0b0b18fa 100644 --- a/ui-kit/flutter/overview.mdx +++ b/ui-kit/flutter/overview.mdx @@ -12,7 +12,7 @@ description: "Prebuilt Flutter widgets for chat, voice, and video calling. Works | Field | Value | | --- | --- | -| Package | `cometchat_chat_uikit` v5.2.x | +| Package | `cometchat_chat_uikit` ^5.0.0 | | Calling | Optional — `cometchat_calls_uikit` | | Platforms | iOS 13.0+, Android API 21+ | | Flutter | 3.0+ recommended | diff --git a/ui-kit/flutter/troubleshooting.mdx b/ui-kit/flutter/troubleshooting.mdx index dd24b6e9f..20be1dcb0 100644 --- a/ui-kit/flutter/troubleshooting.mdx +++ b/ui-kit/flutter/troubleshooting.mdx @@ -173,7 +173,7 @@ void dispose() { | Build fails with Dart version error | Dart SDK too old | Upgrade Flutter: `flutter upgrade` | | iOS build fails | Pod dependencies outdated | Run `cd ios && pod update` | | Android build fails with Gradle error | Gradle version mismatch | Update Gradle in `android/gradle/wrapper/gradle-wrapper.properties` | -| Package not found | Package not in pubspec.yaml | Add `cometchat_chat_uikit: ^5.x.x` to dependencies | +| Package not found | Package not in pubspec.yaml | Add `cometchat_chat_uikit: ^5.0.0` to dependencies | --- From 374d94e42e4a08fc5dfbfa4c1d15f1c70d1a35d1 Mon Sep 17 00:00:00 2001 From: Anshuman Pathania Date: Fri, 8 May 2026 19:32:53 +0530 Subject: [PATCH 2/3] Revert "fix: update Flutter v5 UIKit dependencies to ^5.0.0 (stable pub.dev format)" This reverts commit 748a2ca23353f1fd9e1f9e4b2a96f90f8a0dc90c. --- ui-kit/flutter/calling-integration.mdx | 2 +- ui-kit/flutter/custom-mentions-formatter-guide.mdx | 4 ++-- ui-kit/flutter/getting-started.mdx | 4 ++-- ui-kit/flutter/overview.mdx | 2 +- ui-kit/flutter/troubleshooting.mdx | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui-kit/flutter/calling-integration.mdx b/ui-kit/flutter/calling-integration.mdx index e4de5931c..13b3dbf1d 100644 --- a/ui-kit/flutter/calling-integration.mdx +++ b/ui-kit/flutter/calling-integration.mdx @@ -17,7 +17,7 @@ Add the following dependency to your `pubspec.yaml` file: ```yaml dependencies: - cometchat_calls_uikit: ^5.0.0 + cometchat_calls_uikit: ^5.0.15 ``` ## Step 2: Update Android build.gradle diff --git a/ui-kit/flutter/custom-mentions-formatter-guide.mdx b/ui-kit/flutter/custom-mentions-formatter-guide.mdx index 9a58a3e17..a9322a839 100644 --- a/ui-kit/flutter/custom-mentions-formatter-guide.mdx +++ b/ui-kit/flutter/custom-mentions-formatter-guide.mdx @@ -11,7 +11,7 @@ description: "Create a custom mentions formatter to filter suggestions, style me | Key class | `CometChatMentionsFormatter` (from `cometchat_uikit_shared`) | | Init | `CometChatUIKit.init(uiKitSettings)` then `CometChatUIKit.login(uid)` | | Purpose | Customize @mention suggestion behavior — filter who appears, style mentions, handle taps | -| Version | v5.0.0+ | +| Version | v5.2.13 | | Sample app | [GitHub](https://github.com/cometchat/cometchat-uikit-flutter/tree/v5/sample_app) | | Related | [Mentions Formatter](/ui-kit/flutter/mentions-formatter-guide) · [Custom Text Formatter](/ui-kit/flutter/custom-text-formatter-guide) · [All Guides](/ui-kit/flutter/guide-overview) | @@ -20,7 +20,7 @@ description: "Create a custom mentions formatter to filter suggestions, style me This guide walks you through creating a custom mentions formatter that extends `CometChatMentionsFormatter` to control the `@mention` suggestion behavior inside the message composer — letting you filter who appears in the suggestion list, customize mention styling, and handle tap interactions. This works with both `CometChatMessageComposer` and `CometChatCompactMessageComposer`. -This guide requires `cometchat_chat_uikit` version **5.0.0** or above. +This guide requires `cometchat_chat_uikit` version **5.2.13** or above. Earlier versions do not expose the APIs needed to subclass `CometChatMentionsFormatter` in this way. ## Setup diff --git a/ui-kit/flutter/getting-started.mdx b/ui-kit/flutter/getting-started.mdx index 691d232ba..1e58549c3 100644 --- a/ui-kit/flutter/getting-started.mdx +++ b/ui-kit/flutter/getting-started.mdx @@ -86,8 +86,8 @@ Add to your `pubspec.yaml`: dependencies: flutter: sdk: flutter - cometchat_chat_uikit: ^5.0.0 - cometchat_calls_uikit: ^5.0.0 # Optional: for voice/video calling + cometchat_chat_uikit: ^5.2.14 + cometchat_calls_uikit: ^5.0.15 # Optional: for voice/video calling ``` Then run: diff --git a/ui-kit/flutter/overview.mdx b/ui-kit/flutter/overview.mdx index d0b0b18fa..6f5dfc714 100644 --- a/ui-kit/flutter/overview.mdx +++ b/ui-kit/flutter/overview.mdx @@ -12,7 +12,7 @@ description: "Prebuilt Flutter widgets for chat, voice, and video calling. Works | Field | Value | | --- | --- | -| Package | `cometchat_chat_uikit` ^5.0.0 | +| Package | `cometchat_chat_uikit` v5.2.x | | Calling | Optional — `cometchat_calls_uikit` | | Platforms | iOS 13.0+, Android API 21+ | | Flutter | 3.0+ recommended | diff --git a/ui-kit/flutter/troubleshooting.mdx b/ui-kit/flutter/troubleshooting.mdx index 20be1dcb0..dd24b6e9f 100644 --- a/ui-kit/flutter/troubleshooting.mdx +++ b/ui-kit/flutter/troubleshooting.mdx @@ -173,7 +173,7 @@ void dispose() { | Build fails with Dart version error | Dart SDK too old | Upgrade Flutter: `flutter upgrade` | | iOS build fails | Pod dependencies outdated | Run `cd ios && pod update` | | Android build fails with Gradle error | Gradle version mismatch | Update Gradle in `android/gradle/wrapper/gradle-wrapper.properties` | -| Package not found | Package not in pubspec.yaml | Add `cometchat_chat_uikit: ^5.0.0` to dependencies | +| Package not found | Package not in pubspec.yaml | Add `cometchat_chat_uikit: ^5.x.x` to dependencies | --- From b1bcbdcad07fa29cf72f1e2dc3c900e2fe2a209b Mon Sep 17 00:00:00 2001 From: Anshuman Pathania Date: Fri, 8 May 2026 19:34:16 +0530 Subject: [PATCH 3/3] fix: update Flutter SDK v5 dependency to simple pub.dev format (cometchat_sdk: ^5.0.0) --- sdk/flutter/setup.mdx | 9 ++------- sdk/flutter/upgrading-from-v4-guide.mdx | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/sdk/flutter/setup.mdx b/sdk/flutter/setup.mdx index 14e1fa426..7b811bb79 100644 --- a/sdk/flutter/setup.mdx +++ b/sdk/flutter/setup.mdx @@ -21,16 +21,11 @@ Minimum Requirement ### Add the CometChat Dependency -### Cloudsmith - -Add the Cloudsmith hosted repository and dependency to your `pubspec.yaml`: +Add the dependency to your `pubspec.yaml`: ```yaml dependencies: - cometchat_sdk: - hosted: - url: https://dart.cloudsmith.io/cometchat/cometchat/ - version: 5.0.0 + cometchat_sdk: ^5.0.0 ``` Then run: diff --git a/sdk/flutter/upgrading-from-v4-guide.mdx b/sdk/flutter/upgrading-from-v4-guide.mdx index 04728b860..c1b69bfc4 100644 --- a/sdk/flutter/upgrading-from-v4-guide.mdx +++ b/sdk/flutter/upgrading-from-v4-guide.mdx @@ -6,16 +6,11 @@ This guide helps you migrate your Flutter application from CometChat SDK v4 to v ## Installation -### Cloudsmith - -Add the Cloudsmith hosted repository and dependency to your `pubspec.yaml`: +Add the dependency to your `pubspec.yaml`: ```yaml dependencies: - cometchat_sdk: - hosted: - url: https://dart.cloudsmith.io/cometchat/cometchat/ - version: 5.0.0 + cometchat_sdk: ^5.0.0 ``` Then run: