Просмотр исходного кода

feat(android): use fresco 3.2.0 in order to fix animation for gifs

factor2
Calin-Teodor 4 месяцев назад
Родитель
Сommit
75b4049529
1 измененных файлов: 20 добавлений и 1 удалений
  1. 20
    1
      android/build.gradle

+ 20
- 1
android/build.gradle Просмотреть файл

@@ -69,10 +69,29 @@ allprojects {
69 69
         }
70 70
     }
71 71
 
72
+    // Due to a dependency conflict between React Native and the Fresco library used by GiphySDK,
73
+    // GIFs appear as static images instead of animating
74
+    // https://github.com/Giphy/giphy-react-native-sdk/commit/7fe466ed6fddfaec95f9cbc959d33bd75ad8f900
75
+
76
+    configurations.configureEach {
77
+        resolutionStrategy {
78
+            forcedModules = [
79
+                'com.facebook.fresco:fresco:3.2.0',
80
+                'com.facebook.fresco:animated-gif:3.2.0',
81
+                'com.facebook.fresco:animated-base:3.2.0',
82
+                'com.facebook.fresco:animated-drawable:3.2.0',
83
+                'com.facebook.fresco:animated-webp:3.2.0',
84
+                'com.facebook.fresco:webpsupport:3.2.0',
85
+                'com.facebook.fresco:imagepipeline-okhttp3:3.2.0',
86
+                'com.facebook.fresco:middleware:3.2.0',
87
+                'com.facebook.fresco:nativeimagetranscoder:3.2.0'
88
+            ]
89
+        }
90
+    }
91
+
72 92
     // Third-party react-native modules which Jitsi Meet SDK for Android depends
73 93
     // on and which are not available in third-party Maven repositories need to
74 94
     // be deployed in a Maven repository of ours.
75
-    //
76 95
 
77 96
     if (project.name.startsWith('react-native-')) {
78 97
         apply plugin: 'maven-publish'

Загрузка…
Отмена
Сохранить