Switch to snikket webrtc build

Stephen Paul Weber created

Approved by F-Droid for use and is up to date

Change summary

build.gradle | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)

Detailed changes

build.gradle 🔗

@@ -23,20 +23,6 @@ repositories {
     maven { url 'https://jitpack.io' }
 }
 
-// https://stackoverflow.com/a/38105112/8611
-def urlFile = { url, name ->
-    File file = new File("$buildDir/download/${name}")
-    file.parentFile.mkdirs()
-    if (!file.exists()) {
-        new URL(url).withInputStream { downloadStream ->
-            file.withOutputStream { fileOut ->
-                fileOut << downloadStream
-            }
-        }
-    }
-    files(file.absolutePath)
-}
-
 def tags = grgit.tag.list().findAll { it.dateTime != null }.sort { it.dateTime }
 
 configurations {
@@ -111,7 +97,7 @@ dependencies {
     implementation 'com.github.ipld:java-cid:v1.3.1'
     implementation 'com.splitwise:tokenautocomplete:3.0.2'
     implementation 'me.saket:better-link-movement-method:2.2.0'
-    implementation urlFile('https://gateway.pinata.cloud/ipfs/QmeqMiLxHi8AAjXobxr3QTfa1bSSLyAu86YviAqQnjxCjM/libwebrtc.aar', 'libwebrtc.aar')
+    implementation 'org.snikket:webrtc-android:107.0.0'
     // INSERT
 }