Build React Native with Buck

Reviewed By: bestander

Differential Revision: D2834002

fb-gh-sync-id: ebd5303a05fe9a01545365e4205d4cb8724a77a8
This commit is contained in:
Martin Konicek 2016-01-18 12:37:59 -08:00 committed by facebook-github-bot-8
parent b6c1593d14
commit 9fea485138
23 changed files with 10 additions and 1 deletions

8
.buckconfig Normal file
View File

@ -0,0 +1,8 @@
[android]
target = Google Inc.:Google APIs:23
[maven_repositories]
central = https://repo1.maven.org/maven2

View File

@ -228,6 +228,7 @@ android {
jniLibs.srcDir "$buildDir/react-ndk/exported"
res.srcDirs = ['src/main/res/devsupport', 'src/main/res/shell']
java {
srcDirs = ['src/main/java', 'src/main/libraries/soloader']
exclude 'com/facebook/react/processing'
}
}
@ -244,7 +245,7 @@ android {
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile fileTree(dir: 'src/main/third-party/java/infer-annotations/', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.facebook.fresco:fresco:0.8.1'