From 03a763ed82d29715d7bae0b85444e0046f75f983 Mon Sep 17 00:00:00 2001 From: Calin-Teodor Date: Fri, 7 Feb 2025 16:37:10 +0200 Subject: [PATCH] feat(android): use fresco 3.2.0 in order to fix animation for gifs --- android/build.gradle | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index e1d0781b63ea..425f28ef9445 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -69,10 +69,29 @@ allprojects { } } + // Due to a dependency conflict between React Native and the Fresco library used by GiphySDK, + // GIFs appear as static images instead of animating + // https://github.com/Giphy/giphy-react-native-sdk/commit/7fe466ed6fddfaec95f9cbc959d33bd75ad8f900 + + configurations.configureEach { + resolutionStrategy { + forcedModules = [ + 'com.facebook.fresco:fresco:3.2.0', + 'com.facebook.fresco:animated-gif:3.2.0', + 'com.facebook.fresco:animated-base:3.2.0', + 'com.facebook.fresco:animated-drawable:3.2.0', + 'com.facebook.fresco:animated-webp:3.2.0', + 'com.facebook.fresco:webpsupport:3.2.0', + 'com.facebook.fresco:imagepipeline-okhttp3:3.2.0', + 'com.facebook.fresco:middleware:3.2.0', + 'com.facebook.fresco:nativeimagetranscoder:3.2.0' + ] + } + } + // Third-party react-native modules which Jitsi Meet SDK for Android depends // on and which are not available in third-party Maven repositories need to // be deployed in a Maven repository of ours. - // if (project.name.startsWith('react-native-')) { apply plugin: 'maven-publish'