Skip to content

Commit

Permalink
feat(android): use fresco 3.2.0 in order to fix animation for gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinteodor committed Feb 7, 2025
1 parent 9e15df8 commit 03a763e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 03a763e

Please sign in to comment.