Skip to main content

Quick Start

Gradle
For JitPack, you also need to add this to your main project’s build.gradle file:
Since the SDK uses SQLCipher encrypted database and Curve25519 encryption algorithm, you need to add these libraries to your project:

Alternative Installation Methods

Maven

Manual Integration

  1. Download the latest AAR file from GitHub Releases
  2. Place the AAR file in your app/libs directory
  3. Add to your app/build.gradle:

ProGuard Configuration

Add the following ProGuard rules to your proguard-rules.pro file:

Permissions

Add necessary permissions to your AndroidManifest.xml:

Basic Setup

Initialize in Application

Create or modify your Application class:
Don’t forget to register your Application class in AndroidManifest.xml:

Configuration Options

You can configure various options during initialization:

Verification

To verify that the SDK is properly integrated, add this test code:

Troubleshooting

Common Issues

  1. Build Error: “Could not resolve dependency”
    • Make sure you’ve added the JitPack repository
    • Check if the version number is correct
  2. Runtime Error: “ClassNotFoundException”
    • Verify ProGuard rules are correctly configured
    • Check if all required dependencies are included
  3. Database Error: “SQLCipher not found”
    • Ensure SQLCipher dependency is added
    • Check if ProGuard rules for SQLCipher are included
  4. Encryption Error: “Curve25519 not found”
    • Verify Curve25519 dependencies are included
    • Check ProGuard rules for encryption libraries

Debug Mode

Enable debug mode to get more detailed logs:

Next Steps

Basic Features

Learn basic SDK functionality usage

Message Handling

Implement message sending and receiving

Channel Management

Manage channels and groups

Conversation Management

Handle conversation lists