Commit 2bf2582a authored by Simon Xu's avatar Simon Xu
Browse files

[Android] Upgrade Fresco to 2.5.0

and upgrade a few other dependencies. Change the applicationId back to com.example.samplestickerapp which will trigger warning to change the application id .
parent a0f327ed
......@@ -7,7 +7,7 @@ android {
}
compileSdkVersion 30
defaultConfig {
applicationId "com.example.samplestickerapp2"
applicationId "com.example.samplestickerapp"
minSdkVersion 15
targetSdkVersion 30
versionCode 1
......@@ -100,14 +100,14 @@ tasks.whenTaskAdded { task ->
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
def fresco_version = '2.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
def fresco_version = '2.5.0'
implementation "com.facebook.fresco:fresco:$fresco_version"
implementation "com.facebook.fresco:webpsupport:$fresco_version"
implementation "com.facebook.fresco:animated-webp:$fresco_version"
......
......@@ -19,6 +19,7 @@ import android.webkit.URLUtil;
import androidx.annotation.NonNull;
import com.facebook.animated.webp.WebPImage;
import com.facebook.imagepipeline.common.ImageDecodeOptions;
import java.io.IOException;
import java.net.MalformedURLException;
......@@ -142,7 +143,7 @@ class StickerPackValidator {
throw new IllegalStateException("animated sticker should be less than " + ANIMATED_STICKER_FILE_LIMIT_KB + "KB, current file is " + stickerInBytes.length / KB_IN_BYTES + " KB, sticker pack identifier: " + identifier + ", filename: " + fileName);
}
try {
final WebPImage webPImage = WebPImage.createFromByteArray(stickerInBytes);
final WebPImage webPImage = WebPImage.createFromByteArray(stickerInBytes, ImageDecodeOptions.defaults());
if (webPImage.getHeight() != IMAGE_HEIGHT) {
throw new IllegalStateException("sticker height should be " + IMAGE_HEIGHT + ", current height is " + webPImage.getHeight() + ", sticker pack identifier: " + identifier + ", filename: " + fileName);
}
......
#Thu Jun 17 18:51:07 PDT 2021
#Thu Aug 05 16:44:49 PDT 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
Supports Markdown
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