Installation

Installation

Install the Flutter package.

flutter pub add dyte_client

Android

( The below instructions are for the release builds, debug builds should work without any additional steps )

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'
        }
    }

🚧

Android Minimum SDK Version

Check /android/app/build.gradle to ensure that the minimum SDK version of your Flutter Android project is 21.

IOS

Note: Please make sure you running your xcode using Rosetta

Add the fonts and permission entries in info.plist

<key>UIAppFonts</key>
    <array>
        <string>MaterialCommunityIcons.ttf</string>
        <string>MaterialIcons.ttf</string>
    </array>
    <key>NSBluetoothPeripheralUsageDescription</key>
    <string>We will use your Bluetooth to access your Bluetooth headphones.</string>
    <key>NSBluetoothAlwaysUsageDescription</key>
    <string>We will use your Bluetooth to access your Bluetooth headphones.</string>
    <key>NSCameraUsageDescription</key>
    <string>For people to see you during meetings, we need access to your camera.</string>
    <key>NSMicrophoneUsageDescription</key>
    <string>For people to hear you during meetings, we need access to your microphone.</string>
    <key>NSPhotoLibraryUsageDescription</key>
    <string>For people to share, we need access to your photos.</string>
  <key>UIViewControllerBasedStatusBarAppearance</key>
  <false/>

Ensure in your Podfile you have an entry like below declaring platform of 11.0 or above and disable BITCODE.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end