Installation

  1. In your project, add the Maven repository https://maven.dyte.in and the dependency com.dyteclientmobile:sdk into your build.gradle files.

The repository typically goes into the build.gradle file in the root of your project:

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "https://maven.dyte.in"
        }
    }
}

Dependency definitions belong in the individual module build.gradle files

dependencies {
    // (other dependencies)
        implementation "com.dyteclientmobile:sdk:+"
    // optionally if you app does not have support libraries 
    implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
}
  1. (optional) Register the activity in AndroidManifest.xml
<activity
            android:name="com.dyteclientmobile.DyteMeetingActivity"
            android:launchMode="singleTask"
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
            android:windowSoftInputMode="adjustResize">
 </activity>

❗️

Proguard Rules

Additional configuration is required for release builds

Edit your android/gradle.properties and add the following line

android.enableDexingArtifactTransform.desugaring=false

Create / append to the file android/app/proguard-rules.pro

-keep class org.webrtc.** { *; }
-dontwarn org.chromium.build.BuildHooksAndroid

In your android/app/build.gradle edit the release configuration and add the following line importing the proguard configuration

buildTypes {
        release {
            ...
            ...
            ...
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }