Add BUCK files

This commit is contained in:
Martin Konicek
2016-01-22 16:03:51 +00:00
parent 36e0dd2d48
commit 581434ac04
82 changed files with 2025 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
include_defs('//ReactAndroid/DEFS')
# We package the JS files from the bundler and local directory into what we
# pretend is an ordinary JAR file. By putting them under the assets/ directory
# within the zip file and relying on Buck to merge its contents into the APK,
# our JS bundles arrive in a place accessible by the AssetManager at runtime.
python_binary(
name = 'package_js',
main = 'package_js.py',
visibility = [
'PUBLIC',
],
)
android_library(
name = 'bridge',
srcs = glob(['**/*.java']),
exported_deps = [
react_native_dep('java/com/facebook/jni:jni'),
react_native_dep('java/com/facebook/proguard/annotations:annotations'),
],
deps = [
react_native_target('java/com/facebook/react/common:common'),
react_native_dep('java/com/facebook/systrace:systrace'),
react_native_dep('libraries/fbcore/src/main/java/com/facebook/common/logging:logging'),
react_native_dep('libraries/soloader/java/com/facebook/soloader:soloader'),
react_native_dep('third-party/java/infer-annotations:infer-annotations'),
react_native_dep('third-party/java/jackson:core'),
react_native_dep('third-party/java/jsr-305:jsr-305'),
react_native_dep('third-party/java/okio:okio'),
react_native_dep('third-party/java/okhttp:okhttp'),
react_native_dep('third-party/java/okhttp:okhttp-ws'),
],
visibility = [
'PUBLIC',
],
)
project_config(
src_target = ':bridge',
)