Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
android: circumvent trouble with apps using Glide
Saúl Ibarra Corretgé053437c86e17
diff --git a/android/app/build.gradle b/android/app/build.gradleindex 4b846aa252..9ed4977d5d 100644--- a/android/app/build.gradle+++ b/android/app/build.gradle@@ -54,6 +54,14 @@ dependencies {debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'++ // Glide+ implementation("com.github.bumptech.glide:glide:${rootProject.ext.glideVersion}") {+ exclude group: "com.android.support", module: "glide"+ }+ implementation("com.github.bumptech.glide:annotations:${rootProject.ext.glideVersion}") {+ exclude group: "com.android.support", module: "annotations"+ }}gradle.projectsEvaluated {diff --git a/android/app/src/main/java/org/jitsi/meet/JitsiGlideModule.java b/android/app/src/main/java/org/jitsi/meet/JitsiGlideModule.javanew file mode 100644index 0000000000..ee1e5470d6--- /dev/null+++ b/android/app/src/main/java/org/jitsi/meet/JitsiGlideModule.java@@ -0,0 +1,16 @@+package org.jitsi.meet;++import com.bumptech.glide.annotation.GlideModule;+import com.bumptech.glide.module.AppGlideModule;++/**+ * An AppGlideModule needs to be present for image loading events to work in+ * react-native-fast-image. However, if this is defined by the SDK it will cause trouble with+ * apps which are using Glide themselves.+ *+ * In order to avoid the problem, define a Jitsi Glide module here, so applications already using+ * it are not in trouble.+ */+@GlideModule+public final class JitsiGlideModule extends AppGlideModule {+}diff --git a/android/build.gradle b/android/build.gradleindex a9d0870c52..1614856621 100644--- a/android/build.gradle+++ b/android/build.gradle@@ -182,6 +182,10 @@ ext {// third-party Maven repositories so we have to deploy to a Maven repository// of ours.moduleGroupId = 'com.facebook.react'++ // Glide+ excludeAppGlideModule = true+ glideVersion = "4.7.1" // keep in sync with react-native-fast-image}// If Android SDK is not installed, accept its license so that it