Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sridatta Gorugantula
Stickers
Commits
ce202c7d
Commit
ce202c7d
authored
Apr 03, 2020
by
ar-arvind
Committed by
Simon Xu
May 01, 2020
Browse files
Bump Fresco lib to 2.2.0
parent
a9a40d8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Android/app/build.gradle
View file @
ce202c7d
...
...
@@ -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"
...
...
Android/app/src/main/java/com/example/samplestickerapp/StickerPackValidator.java
View file @
ce202c7d
...
...
@@ -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
.
create
FromByteArray
(
bytes
);
if
(
webPImage
.
getHeight
()
!=
IMAGE_HEIGHT
)
{
throw
new
IllegalStateException
(
"sticker height should be "
+
IMAGE_HEIGHT
+
", sticker pack identifier:"
+
identifier
+
", filename:"
+
fileName
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment