From 555e33a89afdab703eb3725152c5408edfdb27de Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Wed, 30 Mar 2022 20:22:28 -0400 Subject: [PATCH] chore: add webp support --- .circleci/config.yml | 1 + android/app/build.gradle | 2 ++ android/gradle.properties | 3 +++ 3 files changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index ac5e942a3..dd4d76e5d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -115,6 +115,7 @@ commands: echo -e "android.useAndroidX=true" >> ./gradle.properties echo -e "android.enableJetifier=true" >> ./gradle.properties echo -e "FLIPPER_VERSION=0.51.0" >> ./gradle.properties + echo -e "FRESCO_VERSION=2.0.0" >> ./gradle.properties echo -e "VERSIONCODE=$CIRCLE_BUILD_NUM" >> ./gradle.properties if [[ $CIRCLE_JOB == "android-build-official" ]]; then diff --git a/android/app/build.gradle b/android/app/build.gradle index bedf03d37..d74ff9277 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -304,6 +304,8 @@ dependencies { implementation jscFlavor } + implementation "com.facebook.fresco:animated-webp:${FRESCO_VERSION}" + implementation "com.facebook.fresco:webpsupport:${FRESCO_VERSION}" implementation "com.google.code.gson:gson:2.8.5" implementation "com.github.bumptech.glide:glide:4.9.0" annotationProcessor "com.github.bumptech.glide:compiler:4.9.0" diff --git a/android/gradle.properties b/android/gradle.properties index 6cc7957ce..87bfbd48b 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -29,6 +29,9 @@ android.enableJetifier=true # Version of flipper SDK to use with React Native FLIPPER_VERSION=0.75.1 +# Version of fresco for WebP support on React Native +FRESCO_VERSION=2.0.0 + # Application ID APPLICATION_ID=chat.rocket.reactnative