chat-builder/src/main/java/com/cometchat/builder/. This guide helps you navigate the structure so you know exactly where to make changes.
Root Files
| File | Purpose |
|---|---|
CometChatBuilderSettings.kt | Auto-generated feature flags and configuration constants from Builder |
BuilderSettingsHelper.kt | Utility class for applying Builder settings to CometChat UI components |
AppCredentials.kt | CometChat app credentials (APP_ID, AUTH_KEY, REGION) |
Key Folders
data/
Contains data layer components including enums, interfaces, and repositories.
ui/
Contains all UI-related components organized by type.
utils/
Utility functions and application-level helpers.
viewmodels/
ViewModels for managing UI state and business logic.
res/ Folder Structure
layout/
XML layout files for activities, fragments, and custom views.
values/
Resource values including strings, colors, and themes.
font/
Font resources for typography customization.
drawable/
Drawable resources including icons, shapes, and backgrounds.
Quick Reference: Where to Customize
| What you want to change | Where to look |
|---|---|
| Enable/disable features | CometChatBuilderSettings.kt |
| Apply settings to components | BuilderSettingsHelper.kt |
| Theme colors & styles | res/values/themes.xml, res/values/colors.xml |
| Typography & fonts | res/font/ |
| Screen layouts | res/layout/ |
| Text & translations | res/values/strings.xml, res/values-<locale>/ |
| Activity behavior | ui/activity/ |
| Fragment behavior | ui/fragments/ |
| App credentials | AppCredentials.kt |
Prefer using
CometChatBuilderSettings.kt for feature toggles and themes.xml for styling. For extensive changes, extend existing components instead of modifying core files directly.Next Steps
UI Kit Builder Settings
Configure feature toggles and behavior
Customizations
Modify component props, styling, and behavior
Theming
Customize colors, typography, and styling
Localization
Add multi-language support