Cometchat Android V6 Migration logo

Cometchat Android V6 Migration

Organization
cometchat
cometchat-android-v6-migration

Upgrade an Android app from the CometChat v5 UI Kit (Java, XML Views) to v6 (Kotlin — XML Views or Jetpack Compose): artifact and package changes, the CometChatThreadedMessagesHeader rename, LiveData→StateFlow, events→CometChatEvents SharedFlow, style objects→theme attributes/style data classes, and minSdk 28. Triggers: 'upgrade cometchat android v5 to v6', 'migrate android ui kit to v6', 'v6 import paths android', 'cometchat android breaking changes'.

Overview

Publishercometchat
Repositorycometchat-skills
Skill namecometchat-android-v6-migration
Stars
109
Forks
2
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by cometchat on GitHub. Read the source before you install it.

Installation

Install the Cometchat Android V6 Migration AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cometchat/cometchat-skills.git /tmp/cometchat-skills
mkdir -p .claude/skills
cp -r /tmp/cometchat-skills/skills/cometchat-android-v6-migration .claude/skills/cometchat-android-v6-migration
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cometchat Android V6 Migration in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cometchat Android V6 Migration on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cometchat Android V6 Migration is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Ground truth: the live page /ui-kit/android/upgrading-from-v5 (the authoritative breaking-change map — every mapping below is quoted from it) + catalog android-v6.json (what exists AFTER the upgrade) + COVERAGE.md (the v5→v6 verdict table). Removed/renamed v5 names appear in PROSE only — never emit a v5 symbol in a code fence.

⚠️ Before you touch code: a v5→v6 upgrade hits two build blockers the moment the new artifact resolves. Set android.useAndroidX=true + android.enableJetifier=true in gradle.properties (the Chat SDK still pulls a pre-AndroidX transitive → Duplicate class android.support.v4.*) and keep configurations.all { exclude(group = "org.jetbrains", module = "annotations-java5") }. Floors also rise: minSdk 28 · Kotlin 2.1 · AGP 8.9.1.

Companion skills (read first)

  • cometchat-android-v6-core — the v6 install, credentials (assets/cometchat-settings.json), initFromSettings → login → render. The migration ENDS in core's golden path; this skill gets you there.
  • After migrating: cometchat-android-v6-{kotlin,compose}-customization (styling moved), cometchat-android-v6-events (events moved).

Use this skill when

"upgrade our Android UI Kit from v5 to v6", "we're on the Java UI Kit, move us to Kotlin/Compose", "what breaks in v6?", "fix these v5 imports". This is reconciliation, not onboarding — a version_conflict is expected here and resolving it IS the job.

Prerequisites & install

Before touching code: confirm the current artifact + version, that the app builds, and minSdk. v6 requires minSdk 28 (v5 allowed 24) — if the app targets lower, that's a product decision to raise it; surface it FIRST, it can block the whole migration.

Breaking-change map (from the docs table)

AreaV5V6
LanguageJavaKotlin
Modulessingle com.cometchat:chat-uikit-android (the v5 id — not chatuikit-kotlin-android, which only ever published 6.x)chatuikit-kotlin-android (XML) or chatuikit-compose-android (Compose) + shared chatuikit-core-android
Import rootcom.cometchat.chatuikit.*com.cometchat.uikit.kotlin.presentation.* / com.cometchat.uikit.compose.presentation.*
CometChatUIKitcom.cometchat.chatuikit.shared.cometchatuikit.CometChatUIKitcom.cometchat.uikit.core.CometChatUIKit
UIKitSettingscom.cometchat.chatuikit.shared.cometchatuikit.UIKitSettingscom.cometchat.uikit.core.UIKitSettings
StateLiveData observersStateFlow / coroutines
ArchitectureView + ViewModel + Adapter (2 layers)View → ViewModel → Repository → DataSource (4 layers)
EventsCometChat*Events.addListener()/removeListener()CometChatEvents singleton, SharedFlow collected in a coroutine scope
ThemingPalette + Typography objectsXML attrs extending CometChatTheme.DayNight, or the CometChatTheme {} composable
StylingsetStyle(ComponentStyle)XML @StyleRes theme attributes, or style data classes .default().copy()
ViewModel accessJava ViewModel + LiveDataKotlin ViewModel + StateFlow (getViewModel()/setViewModel())
List opsadapter manipulationListOperations<T> (addItem, removeItem, updateItem, moveItemToTop, batch {})
Repositorynot exposedswappable via factory (*ViewModelFactory)
minSdk2428

Component renames — only ONE: CometChatThreadedMessagesHeaderCometChatThreadHeader. Everything else (CometChatConversations, CometChatUsers, CometChatGroups, CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer, CometChatIncomingCall, CometChatOutgoingCall, CometChatCallButtons, CometChatCallLogs, CometChatGroupMembers) keeps its name and only moves package.

Codemod / steps (in this order)

  1. Decide the cohort — staying on XML Views (chatuikit-kotlin-android, smallest diff) or moving to Compose (chatuikit-compose-android, a UI rewrite of the chat screens). Ask; don't assume. Never ship both.
  2. Raise minSdk to 28 and confirm Kotlin/AGP/JVM 11 are in place.
  3. Swap the dependency to the 6.x artifact for the chosen cohort (+ the CometChat Maven repo, core §Install). Remove the v5 artifact — grep the build file for com.cometchat:chat-uikit-android (that is the v5 id) — entirely — a leftover v5 dependency is the duplicate-class/version_conflict failure.
  4. Rewrite imports (the bulk of the diff, mechanical):
    • com.cometchat.chatuikit.shared.cometchatuikit.CometChatUIKitcom.cometchat.uikit.core.CometChatUIKit (same for UIKitSettings).
    • com.cometchat.chatuikit.<area>.<Component>com.cometchat.uikit.kotlin.presentation.<area>.ui.<Component> (XML Views) or …uikit.compose.presentation.<area>.ui.<Component> (Compose).
    • Grep targets: com.cometchat.chatuikit. (any hit is v5) and CometChatThreadedMessagesHeader (the one rename).
  5. Migrate init to v6 — the v6 default is CometChatUIKit.initFromSettings(context, callback) reading app/src/main/assets/cometchat-settings.json, then login in onSuccess (core). Move credentials out of source while you're here.
  6. Events — replace every addListener/removeListener pair with a CometChatEvents.<domain>Events.collect { } in lifecycleScope (Views) or LaunchedEffect (Compose). No manual removal (→ cometchat-android-v6-events).
  7. StateLiveData.observe(...) → collecting StateFlow in a lifecycle-aware scope.
  8. Styling/theming — style objects → theme attributes (themes.xml extending CometChatTheme.DayNight) or Compose style data classes (→ cometchat-android-v6-{kotlin,compose}-customization).
  9. Compose only: rebuild the chat screens as composables (core's golden path / cometchat-android-v6-{kotlin,compose}-placement recipes) — XML layouts hosting kit views don't carry over.
  10. Build, then run — fix per component using the docs page's "Component-by-Component Migration" section (fetch it: /ui-kit/android/upgrading-from-v5.md).

Before → after patterns

java
// V5 (Java) — imports + init
import com.cometchat.chatuikit.shared.cometchatuikit.CometChatUIKit;
import com.cometchat.chatuikit.conversations.CometChatConversations;
kotlin
// V6 (Kotlin, XML Views cohort)
import com.cometchat.uikit.core.CometChatUIKit
import com.cometchat.uikit.kotlin.presentation.conversations.ui.CometChatConversations
kotlin
// V6 events — the old addListener/removeListener pair becomes a scoped collect
lifecycleScope.launch {
    CometChatEvents.messageEvents.collect { event -> /* when (event) { … } */ }
}

The thread header is the one rename to grep for; everything else is a package move. Full per-component diffs (Conversations, Users, Groups, Message Header/List/Composer): the docs page's component sections.

Common pitfalls

Leaving the v5 artifact in the tree (duplicate classes) · mixing both v6 cohorts · missing the minSdk 28 bump · migrating imports but keeping LiveData observers · keeping addListener/removeListener for UI-Kit events (now flows) · missing the CometChatThreadedMessagesHeaderCometChatThreadHeader rename · carrying v5 style objects forward · keeping the classic init(...) instead of moving to initFromSettings · assuming Compose is a drop-in for XML screens · migrating code but leaving credentials hardcoded.

Verify it works

Zero matches for com.cometchat.chatuikit. and CometChatThreadedMessagesHeader in the source; only ONE cometchat UI-Kit artifact resolves (./gradlew :app:dependencies); the fence gate compiles (./gradlew :app:assembleDebug # in YOUR app (npm run verify:fences:android-v6 is a pack-repo gate)). On device: init + login succeed, conversations → messages works, threads/search round-trip, events fire once, theming still matches the brand, calls/push (if used) still work. Any capability that existed in v5 and has no v6 equivalent must be reported to the user, not silently dropped — see COVERAGE.md.

Frequently asked questions

What does the Cometchat Android V6 Migration AI skill do?

Upgrade an Android app from the CometChat v5 UI Kit (Java, XML Views) to v6 (Kotlin — XML Views or Jetpack Compose): artifact and package changes, the CometChatThreadedMessagesHeader rename, LiveData→StateFlow, events→CometChatEvents SharedFlow, style objects→theme attributes/style data classes, and minSdk 28. Triggers: 'upgrade cometchat android v5 to v6', 'migrate android ui kit to v6', 'v6 import paths android', 'cometchat android breaking changes'.

Why use Cometchat Android V6 Migration on TypingMind?

Because you install it once and use it with any model. Cometchat Android V6 Migration is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cometchat Android V6 Migration in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-android-v6-migration. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cometchat Android V6 Migration?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cometchat Android V6 Migration?

As many as you like. As long as a model supports skills, you can use Cometchat Android V6 Migration with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cometchat Android V6 Migration AI skill free?

Yes. It is published on GitHub by cometchat under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇