Skip to content

Installation

Pallab Gain edited this page Nov 7, 2025 · 11 revisions
  1. We need to add the following maven repository to the project dependency repositories
      maven {
          url "https://raw.githubusercontent.com/somia/ninchat-sdk-android/master"
      }
  2. Then we need to add the following dependency to the project dependencies
      implementation ("com.ninchat:sdk:0.16.2")
Notes ( This is no longer valid and needed for SDK 0.16.2 and upward )

If we are using v0.15.1, we will be encountering multiple dex issue if the host app and SDK use same react-native libraries. List of react-native libraries that SDK depends on are.

"@react-native-async-storage/async-storage": "1.17.3",
"react-native-background-timer": "2.4.1",
"react-native-calendar-events": "2.2.0",
"react-native-default-preference": "1.4.4",
"react-native-device-info": "8.4.8",
"react-native-gesture-handler": "2.9.0",
"react-native-get-random-values": "1.7.2",
"react-native-immersive": "2.0.0",
"react-native-keep-awake": "4.0.0",
"react-native-orientation-locker": "1.5.0",
"react-native-pager-view": "5.4.9",
"react-native-paper": "5.1.2",
"react-native-performance": "2.1.0",
"react-native-safe-area-context": "4.4.1",
"react-native-screens": "3.13.1",
"react-native-sound": "0.11.1",
"react-native-splash-screen": "3.3.0",
"react-native-svg": "12.4.3",
"react-native-video": "https://git@github.com/react-native-video/react-native-video#7c48ae7c8544b2b537fb60194e9620b9fcceae52",
"react-native-webrtc": "106.0.5",
"react-native-webview": "11.15.1",

One possible approach to solve this issue is by updating our Gradle script. Gradle allows us to exclude certain sub-dependencies. When we know which libraries are causing the conflict, we can exclude them using mentioned command

implementation ("com.ninchat:sdk:0.15.1") {
    //exclude group: 'com.facebook.react', module:'react-native-community-async-storage'
    //exclude group: 'com.facebook.react', module:'react-native-community_netinfo'
    exclude group: 'com.facebook.react', module:'react-native-svg'
    transitive true
}
Current SDK Support Android **API level 23 or higher
Starting from v0.19.2 we have removed our legacy video call feature in favor of enhanced group call feature

Next

Clone this wiki locally