/cometchat-skills:cometchat-android-v6-migrationfrom cometchat-skills
Upgrades Android apps from CometChat v5 UI Kit (Java, XML Views) to v6 (Kotlin, XML Views or Jetpack Compose). Covers artifact/package changes, LiveData→StateFlow, events→SharedFlow, style migration, and minSdk 28 requirement.
Ships in cometchat-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Ground truth: the live page
/ui-kit/android/upgrading-from-v5(the authoritative breaking-change map — every mapping below is quoted from it) + catalogandroid-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: set
android.useAndroidX=trueingradle.properties. Target 6.1.1: its POMs carry theannotations-java5exclusion and its chat-sdk 5.0.7 is all-AndroidX, so neither Jetifier nor the exclude is needed (verified on a clean app). Stopping at 6.0.x? Then also setandroid.enableJetifier=true(pre-AndroidX transitive →Duplicate class android.support.v4.*) and keepconfigurations.all { exclude(group = "org.jetbrains", module = "annotations-java5") }. Floors also rise: minSdk 28 · Kotlin 2.1 · AGP 8.9.1.
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.cometchat-android-v6-{kotlin,compose}-customization (styling moved), cometchat-android-v6-events (events moved)."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.
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.
| Area | V5 | V6 |
|---|---|---|
| Language | Java | Kotlin |
| Modules | single 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 root | com.cometchat.chatuikit.* | com.cometchat.uikit.kotlin.presentation.* / com.cometchat.uikit.compose.presentation.* |
CometChatUIKit | com.cometchat.chatuikit.shared.cometchatuikit.CometChatUIKit | com.cometchat.uikit.core.CometChatUIKit |
UIKitSettings | com.cometchat.chatuikit.shared.cometchatuikit.UIKitSettings | com.cometchat.uikit.core.UIKitSettings |
| State | LiveData observers | StateFlow / coroutines |
| Architecture | View + ViewModel + Adapter (2 layers) | View → ViewModel → Repository → DataSource (4 layers) |
| Events | CometChat*Events.addListener()/removeListener() | CometChatEvents singleton, SharedFlow collected in a coroutine scope |
| Theming | Palette + Typography objects | XML attrs extending CometChatTheme.DayNight, or the CometChatTheme {} composable |
| Styling | setStyle(ComponentStyle) | XML @StyleRes theme attributes, or style data classes .default().copy() |
| ViewModel access | Java ViewModel + LiveData | Kotlin ViewModel + StateFlow (getViewModel()/setViewModel()) |
| List ops | adapter manipulation | ListOperations<T> (addItem, removeItem, updateItem, moveItemToTop, batch {}) |
| Repository | not exposed | swappable via factory (*ViewModelFactory) |
| minSdk | 24 | 28 |
Component renames — only ONE: CometChatThreadedMessagesHeader → CometChatThreadHeader. Everything else (CometChatConversations, CometChatUsers, CometChatGroups, CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer, CometChatIncomingCall, CometChatOutgoingCall, CometChatCallButtons, CometChatCallLogs, CometChatGroupMembers) keeps its name and only moves package.
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.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.com.cometchat.chatuikit.shared.cometchatuikit.CometChatUIKit → com.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).com.cometchat.chatuikit. (any hit is v5) and CometChatThreadedMessagesHeader (the one rename).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.addListener/removeListener pair with a CometChatEvents.<domain>Events.collect { } in lifecycleScope (Views) or LaunchedEffect (Compose). No manual removal (→ cometchat-android-v6-events).LiveData.observe(...) → collecting StateFlow in a lifecycle-aware scope.themes.xml extending CometChatTheme.DayNight) or Compose style data classes (→ cometchat-android-v6-{kotlin,compose}-customization).core's golden path / cometchat-android-v6-{kotlin,compose}-placement recipes) — XML layouts hosting kit views don't carry over./ui-kit/android/upgrading-from-v5.md).// V5 (Java) — imports + init
import com.cometchat.chatuikit.shared.cometchatuikit.CometChatUIKit;
import com.cometchat.chatuikit.conversations.CometChatConversations;
// V6 (Kotlin, XML Views cohort)
import com.cometchat.uikit.core.CometChatUIKit
import com.cometchat.uikit.kotlin.presentation.conversations.ui.CometChatConversations
// 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.
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 CometChatThreadedMessagesHeader → CometChatThreadHeader 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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cometchat, android-migration, ui-kit, breaking-changes, kotlin-migration
npx claudepluginhub cometchat/cometchat-skills --plugin cometchat-skills98 skills in this plugin
/cometchatEntry point for any CometChat task on any platform. Detects the framework + UI Kit version (React, Angular, iOS, Android, React Native, Flutter), then routes to that family's skills — for a NEW integration or a change to an existing one. Triggers: 'add chat', 'add cometchat', 'add chat to my app', 'add calling', 'change something in my chat', 'my chat is already set up', 'add a feature to the chat', 'add chat to my android app', 'integrate cometchat android', 'add chat to my ios app', 'integrate cometchat ios', 'add chat to my swift app', 'migrate my app to cometchat', 'migrate from sendbird', 'migrate from getstream / stream', 'replace sendbird / stream chat with cometchat', 'build a <app> clone', 'make a chat app like <app>', 'make it look and work like <app>'./cometchat-a11yKeep a CometChat integration accessible — the UI Kit is designed targeting WCAG 2.1 AA with keyboard navigation (verify per component in its docs; full conformance still needs manual testing), and this skill makes sure the HOST app doesn't break that, covering contrast, focus, screen-reader context, reduced motion, RTL, and calls accessibility. Cross-family. Triggers: 'is cometchat accessible', 'WCAG / 508 / ADA compliance', 'screen reader support', 'keyboard navigation', 'a11y audit', 'accessible chat', 'contrast/focus issues in chat'.Other plugins' skills for the same job