Initial commit 🎉
fbshipit-source-id: b6fc29740c6875d2e78953b8a7123890a67930f2 Co-authored-by: Sebastian McKenzie <sebmck@fb.com> Co-authored-by: John Knox <jknox@fb.com> Co-authored-by: Emil Sjölander <emilsj@fb.com> Co-authored-by: Pritesh Nandgaonkar <prit91@fb.com>
This commit is contained in:
63
android/sample/build.gradle
Normal file
63
android/sample/build.gradle
Normal file
@@ -0,0 +1,63 @@
|
||||
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 'com.android.support:appcompat-v7:26.1.0'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
|
||||
implementation 'com.android.support:design:26.1.0'
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
||||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
||||
// ...
|
||||
// Litho
|
||||
implementation 'com.facebook.litho:litho-core:0.15.0'
|
||||
implementation 'com.facebook.litho:litho-widget:0.15.0'
|
||||
compileOnly 'com.facebook.litho:litho-annotations:0.15.0'
|
||||
|
||||
annotationProcessor 'com.facebook.litho:litho-processor:0.15.0'
|
||||
|
||||
// SoLoader
|
||||
implementation 'com.facebook.soloader:soloader:0.4.1'
|
||||
|
||||
// For integration with Fresco
|
||||
implementation 'com.facebook.litho:litho-fresco:0.15.0'
|
||||
|
||||
// For testing
|
||||
testImplementation 'com.facebook.litho:litho-testing:0.15.0'
|
||||
|
||||
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
|
||||
implementation project(':android')
|
||||
//implementation project(':sonar')
|
||||
}
|
||||
Reference in New Issue
Block a user