Commit ce202c7d authored by ar-arvind's avatar ar-arvind Committed by Simon Xu
Browse files

Bump Fresco lib to 2.2.0

parent a9a40d8b
......@@ -107,7 +107,7 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
def fresco_version = '2.1.0'
def fresco_version = '2.2.0'
implementation "com.facebook.fresco:fresco:$fresco_version"
implementation "com.facebook.fresco:webpsupport:$fresco_version"
implementation "com.facebook.fresco:animated-webp:$fresco_version"
......
......@@ -132,7 +132,7 @@ class StickerPackValidator {
throw new IllegalStateException("sticker should be less than " + STICKER_FILE_SIZE_LIMIT_KB + "KB, sticker pack identifier:" + identifier + ", filename:" + fileName);
}
try {
final WebPImage webPImage = WebPImage.create(bytes);
final WebPImage webPImage = WebPImage.createFromByteArray(bytes);
if (webPImage.getHeight() != IMAGE_HEIGHT) {
throw new IllegalStateException("sticker height should be " + IMAGE_HEIGHT + ", sticker pack identifier:" + identifier + ", filename:" + fileName);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment