Set up Fresco in sample app
Summary: This looks bad. There are two things I want to follow up on in future diffs before landing this: - Make loading the image conditional by adding another button. - Add a default constructor to the plugin that avoids this crazy bit of boilerplate. Reviewed By: oprisnik Differential Revision: D14165569 fbshipit-source-id: 25c5fbaee32e72c6469979cda694cc9f13a92166
This commit is contained in:
committed by
Facebook Github Bot
parent
2067e5e1fc
commit
d371a211a8
@@ -7,7 +7,7 @@ android {
|
||||
minSdkVersion rootProject.minSdkVersion
|
||||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||
applicationId 'com.facebook.flipper.sample'
|
||||
targetSdkVersion 24
|
||||
targetSdkVersion 28
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
@@ -29,11 +29,21 @@ dependencies {
|
||||
implementation deps.lithoCore
|
||||
implementation deps.lithoWidget
|
||||
implementation deps.lithoAnnotations
|
||||
// TODO(T40752310): Temporary while we depend on the jitpack artifact with a different group.
|
||||
implementation(deps.lithoFresco) {
|
||||
exclude group: 'com.facebook.fresco'
|
||||
}
|
||||
annotationProcessor deps.lithoProcessor
|
||||
|
||||
// Third-party
|
||||
implementation deps.soloader
|
||||
implementation deps.okhttp3
|
||||
// TODO(T40752310): Temporary till Fresco has a stable release.
|
||||
implementation('com.github.facebook:fresco:0ff379c262') {
|
||||
exclude group: 'com.squareup.okhttp3'
|
||||
exclude group: 'com.github.facebook.fresco', module: 'animated-base-test'
|
||||
exclude group: 'com.github.facebook.fresco', module: 'imagepipeline-test'
|
||||
}
|
||||
|
||||
// Integration test
|
||||
androidTestImplementation deps.testCore
|
||||
|
||||
Reference in New Issue
Block a user