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
54 lines
1.5 KiB
Groovy
54 lines
1.5 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.compileSdkVersion
|
|
buildToolsVersion rootProject.buildToolsVersion
|
|
defaultConfig {
|
|
minSdkVersion rootProject.minSdkVersion
|
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
|
applicationId 'com.facebook.flipper.sample'
|
|
targetSdkVersion 28
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile './AndroidManifest.xml'
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
// Android Support Library
|
|
implementation deps.supportAppCompat
|
|
|
|
// Litho
|
|
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
|
|
androidTestImplementation deps.testRules
|
|
|
|
implementation project(':android')
|
|
}
|