Add repository in the root gradle file:
...
allprojects {
repositories {
...
maven {
url 'https://raw.github.com/abdularis/libwebrtc-android/repo/'
}
}
}
Add dependency to your app module (such as app/build.gradle), latest availabe stable version in this repo is M83:
dependencies {
implementation 'com.aar.app:google-webrtc:M83'
}
This is precompiled google webrtc library for android, https://webrtc.org/. repo branch
read this article on how to compile webrtc for android.
Use maven to add .aar library into the existing maven repository using:
mvn install:install-file -Dfile=./google-webrtc-M74.aar -DgroupId=com.aar.app -DartifactId=google-webrtc -Dversion=M74 -Dpackaging=aar -DlocalRepositoryPath=./libwebrtc-android -DcreateChecksum=true