MCPcopy Index your code
hub / github.com/QuickBlox/quickblox-android-sdk

github.com/QuickBlox/quickblox-android-sdk @4.5.0-conference-java

Chat with this repo
repository ↗ · DeepWiki ↗ · release 4.5.0-conference-java ↗ · + Follow
5,743 symbols 13,832 edges 484 files 185 documented · 3% updated 5mo ago1.13.0-ui-kit · 2025-01-15★ 4237 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
    <a href="https://discord.com/invite/3cKRunq8ZZ"><img src="https://img.shields.io/discord/1042743094833065985?color=5865F2&logo=discord&logoColor=white&label=QuickBlox%20Discord%20server&style=for-the-badge" alt="Discord server" /></a>

QuickBlox Android SDK

This project contains:

Overview

QuickBlox is a communications service provider. The platform provides chat using the XMPP protocol, WebRTC signaling for video/voice calling and API for sending push notifications. It provides a user management system, data storage and more.

Sample structure

Each "NEW" sample is an independent project, which contains final dependencies and all "Utils" and "Helpers" are included into it to be more understandable and clever. Each sample shows how to create your own project with QuickBlox SDK, and how to use it to extend your existing project.

Each "OLD" sample depends on the Sample-Core module, which contains mutual dependencies such as CoreApp, BaseActivity, BaseListAdapter and other useful utils such as ImagePicker, KeyboardUtils, NotificationUtils, etc. Also the Sample-Core module keeps common resources colors, strings, dimens and others. It makes your code more clean and clear, and also more object-oriented. In addition the Samples have been renewed with up-to-date design.

How to run samples

To run samples on Android Studio go to menu File - Import Project. Select path to sample, select Use default gradle wrapper(recommended) and click OK.

Configure sample credentials

To create Quickblox account (if you don't have one) and find your own credentials you should visit our 5 minute guide

  • New samples
  • To set your own app credentials you should open App.java (or App.kt if you have downloaded the Kotlin sample) and paste the credentials into the values of constants: New Samples Credentials

  • Old samples

  • To set your own app credentials for the sample just update configuration file qb_config.json inside appropriate sample project in assets folder: Old Samples Credentials

  • To set additional sample settings use sample_config.json file inside assets folder.

Connect SDK to your existing apps

To get the QuickBlox SDK project running you will need to have installed Android Studio and Maven.

The repository https://github.com/QuickBlox/quickblox-android-sdk-releases contains binary distributions of QuickBlox Android SDK and manual on how to connect SDK to your project. Check it out.

Android Studio issues

If you can’t successfully build the gradle after updating to some of the Quickblox SDK version, try to resolve all errors appearing in Gradle Console (but not in code emphasized red!) It may occur because of some versions of Android Studio can’t completely resolve import dependencies while a project has internal errors.

If you still have problems with importing the SDK library from remote repo, go to the next section.

Add quickblox dependency as local repository

  1. Create local folder, for example /Users/igor/workspace/quickblox

  2. Clone or download the repository from https://github.com/QuickBlox/quickblox-android-sdk-releases

  3. Put the downloaded quickblox-android-sdk-releases-master into the created quickblox folder.

  4. In project replace build.grade file

maven {
            url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/"
        }

to

maven {
            url= "file://Users/igor/workspace/quickblox/quickblox-android-sdk-releases-master"
        }

and use any version of quickblox-android-sdk.

Customize Proguard in Android Studio

To use Proguard in your project create proguard-rules.pro file and put below rules for Quickblox modules :

##---------------Begin: proguard configuration for Gson  ---------- 
# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
-keepattributes Signature

# For using GSON @Expose annotation
-keepattributes *Annotation*

# Gson specific classes
-keep class sun.misc.Unsafe { *; }
#-keep class com.google.gson.stream.** { *; }

# Application classes that will be serialized/deserialized over Gson
-keep class com.quickblox.core.account.model.** { *; }

##---------------End: proguard configuration for Gson  ----------

##---------------Begin: proguard configuration for quickblox  ----------

#quickblox core module
-keep class com.quickblox.auth.parsers.** { *; }
-keep class com.quickblox.auth.model.** { *; }
-keep class com.quickblox.core.parser.** { *; }
-keep class com.quickblox.core.model.** { *; }
-keep class com.quickblox.core.server.** { *; }
-keep class com.quickblox.core.rest.** { *; }
-keep class com.quickblox.core.error.** { *; }
-keep class com.quickblox.core.Query { *; }

#quickblox users module
-keep class com.quickblox.users.parsers.** { *; }
-keep class com.quickblox.users.model.** { *; }

#quickblox messages module
-keep class com.quickblox.messages.parsers.** { *; }
-keep class com.quickblox.messages.model.** { *; }

#quickblox content module
-keep class com.quickblox.content.parsers.** { *; }
-keep class com.quickblox.content.model.** { *; }

#quickblox chat module
-keep class com.quickblox.chat.parser.** { *; }
-keep class com.quickblox.chat.model.** { *; }
-keep class org.jivesoftware.** { *; }
-keep class org.jxmpp.** { *; }
-dontwarn org.jivesoftware.smackx.**

#quickblox videochat-webrtc module
-keep class org.webrtc.** { *; }

##---------------End: proguard configuration for quickblox  ----------

##---------------End: proguard configuration ----------

To fix errors and force ProGuard to keep certain code, add a -keep line in the ProGuard configuration file.

For example:
-keep public class MyClass

Alternatively, you can add the @Keep annotation to the code you want to keep. Adding @Keep on a class keeps the entire class as-is. Adding it on a method or field will keep the method/field (and its name) as well as the class name intact.

Documentation

Questions and feedback

Please ask questions, requests for help etc. * Ask question on GitHub * Ask question on StackOverflow * Ask question on Quickblox Help Center

License

BSD

Extension points exported contracts — how you extend this code

AttachClickListener (Interface)
(no doc) [9 implementers]
sample-conference-java/app/src/main/java/com/quickblox/sample/videochat/conference/java/adapters/ChatAdapter.java
ManagingDialogsCallbacks (Interface)
(no doc) [7 implementers]
sample-chat-kotlin/app/src/main/java/com/quickblox/sample/chat/kotlin/managers/DialogsManager.kt
ManagingDialogsCallbacks (Interface)
(no doc) [7 implementers]
sample-chat-java/app/src/main/java/com/quickblox/sample/chat/java/managers/DialogsManager.java
CallTimerListener (Interface)
(no doc) [5 implementers]
sample-videochat-kotlin/app/src/main/java/com/quickblox/sample/videochat/kotlin/services/CallService.kt
CallTimerListener (Interface)
(no doc) [5 implementers]
sample-videochat-java/app/src/main/java/com/quickblox/sample/videochat/java/services/CallService.java
ExecutorTask (Interface)
* Created by Injoit in 2021-09-30. * Copyright © 2021 Quickblox. All rights reserved. */ [2 implementers]
sample-conference-kotlin/app/src/main/java/com/quickblox/sample/conference/kotlin/executor/ExecutorCallback.kt
Consts (Interface)
(no doc)
sample-pushnotifications-java/app/src/main/java/com/quickblox/sample/pushnotifications/java/utils/Consts.java
DialogsCallbacks (Interface)
(no doc) [7 implementers]
sample-conference-java/app/src/main/java/com/quickblox/sample/videochat/conference/java/managers/DialogsManager.java

Core symbols most depended-on inside this repo

getString
called by 350
sample-chat-java/app/src/main/java/com/quickblox/sample/chat/java/utils/ResourceUtils.java
setValue
called by 161
sample-conference-kotlin/app/src/main/java/com/quickblox/sample/conference/kotlin/presentation/LiveData.kt
getString
called by 151
sample-videochat-kotlin/app/src/main/java/com/quickblox/sample/videochat/kotlin/utils/UiUtils.kt
add
called by 108
sample-chat-java/app/src/main/java/com/quickblox/sample/chat/java/ui/adapter/AttachmentPreviewAdapter.java
onError
called by 106
sample-videochat-java/app/src/main/java/com/quickblox/sample/videochat/java/executor/ExecutorTask.java
get
called by 103
sample-conference-java/app/src/main/java/com/quickblox/sample/videochat/conference/java/utils/SharedPrefsHelper.java
getInstance
called by 92
sample-chat-java/app/src/main/java/com/quickblox/sample/chat/java/utils/chat/ChatHelper.java
add
called by 89
sample-conference-java/app/src/main/java/com/quickblox/sample/videochat/conference/java/adapters/AttachmentPreviewAdapter.java

Shape

Method 4,894
Class 616
Interface 124
Function 102
Enum 7

Languages

Java51%
Kotlin49%

Modules by API surface

sample-conference-java/app/src/main/java/com/quickblox/sample/videochat/conference/java/activities/ChatActivity.java110 symbols
sample-videochat-java/app/src/main/java/com/quickblox/sample/videochat/java/services/CallService.java105 symbols
sample-conference-java/app/src/main/java/com/quickblox/sample/videochat/conference/java/services/CallService.java105 symbols
sample-videochat-kotlin/app/src/main/java/com/quickblox/sample/videochat/kotlin/services/CallService.kt103 symbols
sample-videochat-kotlin/app/src/main/java/com/quickblox/sample/videochat/kotlin/activities/CallActivity.kt101 symbols
sample-videochat-java/app/src/main/java/com/quickblox/sample/videochat/java/activities/CallActivity.java99 symbols
sample-conference-java/app/src/main/java/com/quickblox/sample/videochat/conference/java/fragments/ConversationFragment.java96 symbols
sample-chat-java/app/src/main/java/com/quickblox/sample/chat/java/ui/activity/ChatActivity.java93 symbols
sample-chat-kotlin/app/src/main/java/com/quickblox/sample/chat/kotlin/ui/activity/ChatActivity.kt90 symbols
sample-videochat-kotlin/app/src/main/java/com/quickblox/sample/videochat/kotlin/fragments/VideoConversationFragment.kt82 symbols
sample-videochat-java/app/src/main/java/com/quickblox/sample/videochat/java/fragments/VideoConversationFragment.java80 symbols
sample-conference-java/app/src/main/java/com/quickblox/sample/videochat/conference/java/adapters/ChatAdapter.java79 symbols

For agents

$ claude mcp add quickblox-android-sdk \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact