Summary: The support libraries where out of sync between the projects, causing the sample build to fail with ``` > Android dependency 'com.android.support:appcompat-v7' has different version for the compile (26.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution ``` This makes sure that the sample submodule uses the top-level dependencies and same versions. Closes https://github.com/facebook/Sonar/pull/77 Reviewed By: emilsjolander Differential Revision: D8447186 Pulled By: passy fbshipit-source-id: e391501edd97fdbe6456b32cd7305d8be26e20db
62 lines
1.6 KiB
Groovy
62 lines
1.6 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
|
|
compileSdkVersion rootProject.compileSdkVersion
|
|
buildToolsVersion rootProject.buildToolsVersion
|
|
defaultConfig {
|
|
minSdkVersion rootProject.minSdkVersion
|
|
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
|
|
applicationId "com.facebook.sonar.sample"
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile './AndroidManifest.xml'
|
|
java {
|
|
srcDir 'src'
|
|
}
|
|
res {
|
|
srcDir 'res'
|
|
}
|
|
}
|
|
}
|
|
packagingOptions {
|
|
pickFirst 'lib/armeabi-v7a/libfb.so'
|
|
pickFirst 'lib/x86/libfb.so'
|
|
pickFirst 'lib/x86_64/libfb.so'
|
|
pickFirst 'lib/arm64-v8a/libfb.so'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation deps.supportAppCompat
|
|
implementation deps.supportConstraintLayout
|
|
implementation deps.supportDesign
|
|
testImplementation deps.junit
|
|
androidTestImplementation deps.supportTestRunner
|
|
androidTestImplementation deps.supportEspresso
|
|
// Litho
|
|
implementation deps.lithoCore
|
|
implementation deps.lithoWidget
|
|
compileOnly deps.lithoAnnotations
|
|
|
|
annotationProcessor deps.lithoProcessor
|
|
|
|
// SoLoader
|
|
implementation deps.soloader
|
|
|
|
// For integration with Fresco
|
|
implementation deps.lithoFresco
|
|
|
|
// For testing
|
|
testImplementation deps.lithoTesting
|
|
|
|
implementation deps.okhttp3
|
|
implementation project(':android')
|
|
}
|