diff --git a/ReactAndroid/src/main/java/com/facebook/csslayout/BUCK b/ReactAndroid/src/main/java/com/facebook/csslayout/BUCK new file mode 100644 index 000000000..da7888de9 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/csslayout/BUCK @@ -0,0 +1,15 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'csslayout', + srcs = glob(['**/*.java']), + deps = [ + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = ['PUBLIC'], +) + +project_config( + src_target = ':csslayout', +) diff --git a/ReactAndroid/src/main/java/com/facebook/jni/BUCK b/ReactAndroid/src/main/java/com/facebook/jni/BUCK new file mode 100644 index 000000000..220371dba --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/jni/BUCK @@ -0,0 +1,17 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'jni', + srcs = glob(['**/*.java']), + deps = [ + react_native_dep('java/com/facebook/proguard/annotations:annotations'), + react_native_dep('libraries/soloader/java/com/facebook/soloader:soloader'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':jni', +) diff --git a/ReactAndroid/src/main/java/com/facebook/perftest/BUCK b/ReactAndroid/src/main/java/com/facebook/perftest/BUCK new file mode 100644 index 000000000..655817f6e --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/perftest/BUCK @@ -0,0 +1,11 @@ +android_library( + name = 'perftest', + srcs = glob(['*.java']), + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':perftest', +) diff --git a/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK b/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK new file mode 100644 index 000000000..27de0b88a --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK @@ -0,0 +1,14 @@ +android_library( + name = 'annotations', + srcs = glob(['*.java']), + proguard_config = 'proguard_annotations.pro', + deps = [ + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':annotations', +) diff --git a/ReactAndroid/src/main/java/com/facebook/quicklog/BUCK b/ReactAndroid/src/main/java/com/facebook/quicklog/BUCK new file mode 100644 index 000000000..911bbd556 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/quicklog/BUCK @@ -0,0 +1,14 @@ +android_library( + name = 'quicklog', + srcs = glob(['*.java']), + exported_deps = [ + '//java/com/facebook/quicklog/identifiers:identifiers', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':quicklog', +) diff --git a/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/BUCK b/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/BUCK new file mode 100644 index 000000000..38d3b1bfa --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/BUCK @@ -0,0 +1,11 @@ +android_library( + name = 'identifiers', + srcs = glob(['*.java']), + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':identifiers', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/BUCK b/ReactAndroid/src/main/java/com/facebook/react/BUCK new file mode 100644 index 000000000..8102c187c --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/BUCK @@ -0,0 +1,27 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'react', + srcs = glob(['*.java']), + deps = [ + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/devsupport:devsupport'), + react_native_target('java/com/facebook/react/modules/core:core'), + react_native_target('java/com/facebook/react/modules/debug:debug'), + react_native_target('java/com/facebook/react/modules/systeminfo:systeminfo'), + react_native_target('java/com/facebook/react/modules/toast:toast'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + 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/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':react', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/BUCK b/ReactAndroid/src/main/java/com/facebook/react/animation/BUCK new file mode 100644 index 000000000..6a3307d02 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/BUCK @@ -0,0 +1,18 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'animation', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC' + ], +) + +project_config( + src_target = ':animation', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK b/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK new file mode 100644 index 000000000..9d8c59acd --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK @@ -0,0 +1,41 @@ +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']), + deps = [ + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + react_native_target('java/com/facebook/react/common:common'), + react_native_target('jni/react/jni:jni'), + react_native_dep('libraries/soloader/java/com/facebook/soloader:soloader'), + react_native_dep('java/com/facebook/systrace:systrace'), + 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/okhttp:okhttp-ws'), + ], + exported_deps = [ + react_native_dep('java/com/facebook/jni:jni'), + react_native_dep('java/com/facebook/proguard/annotations:annotations'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':bridge', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/BUCK b/ReactAndroid/src/main/java/com/facebook/react/common/BUCK new file mode 100644 index 000000000..d034ce6ec --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/common/BUCK @@ -0,0 +1,29 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'common', + srcs = glob(['**/*.java']), + deps = [ + ':build_config', + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC', + ], +) + +android_build_config( + name = 'build_config', + package = 'com.facebook.react', + visibility = [ + 'PUBLIC', + ], + values = [ + 'boolean IS_INTERNAL_BUILD = true', + ], +) + +project_config( + src_target = ':common', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK new file mode 100644 index 000000000..06bf27bc4 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK @@ -0,0 +1,31 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'devsupport', + manifest = 'AndroidManifest.xml', + srcs = glob(['**/*.java']), + deps = [ + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + react_native_target('res:devsupport'), + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/modules/debug:debug'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + react_native_dep('third-party/java/okhttp:okhttp'), + react_native_dep('third-party/java/okio:okio'), + ], + visibility = [ + react_native_target('java/com/facebook/react/...'), + '//instrumentation_tests/com/facebook/catalyst/...', + '//java/com/facebook/catalyst/...', + '//java/com/facebook/groups/treehouse/react/...', + '//java/com/facebook/fbreact/...', + '//javatests/com/facebook/catalyst/...', + '//javatests/com/facebook/react/...', + ], +) + +project_config( + src_target = ':devsupport', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/common/BUCK b/ReactAndroid/src/main/java/com/facebook/react/modules/common/BUCK new file mode 100644 index 000000000..d099b3c2e --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/common/BUCK @@ -0,0 +1,20 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'common', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + '//third-party/java/infer-annotations:infer-annotations', + '//third-party/java/jsr-305:jsr-305', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':common', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK b/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK new file mode 100644 index 000000000..5507ede15 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK @@ -0,0 +1,22 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'core', + srcs = glob(['**/*.java']), + deps = [ + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/devsupport:devsupport'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':core', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK new file mode 100644 index 000000000..6f5d6b9b1 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK @@ -0,0 +1,21 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'debug', + srcs = glob(['**/*.java']), + deps = [ + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':debug', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/BUCK b/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/BUCK new file mode 100644 index 000000000..18e1e514c --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/BUCK @@ -0,0 +1,28 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'fresco', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/modules/common:common'), + react_native_target('java/com/facebook/react/modules/network:network'), + react_native_dep('java/com/facebook/systrace:systrace'), + '//libraries/fbcore/src/main/java/com/facebook/common/internal:internal', + '//libraries/fbcore/src/main/java/com/facebook/common/soloader:soloader', + '//libraries/fresco/drawee-backends/drawee-pipeline/src/main/java/com/facebook/drawee/backends/pipeline:pipeline', + '//libraries/fresco/imagepipeline-backends/imagepipeline-okhttp/src/main/java/com/facebook/imagepipeline/backends/okhttp:okhttp', + '//libraries/imagepipeline/src/main/java/com/facebook/cache/common:common', + '//libraries/imagepipeline/src/main/java/com/facebook/cache/disk:disk', + '//libraries/imagepipeline/src/main/java/com/facebook/imagepipeline/core:core', + '//libraries/soloader/java/com/facebook/soloader:soloader', + '//third-party/java/okhttp:okhttp', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':fresco', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK b/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK new file mode 100644 index 000000000..2de89f0d3 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK @@ -0,0 +1,24 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'network', + srcs = glob(['**/*.java']), + deps = [ + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/modules/core:core'), + react_native_target('java/com/facebook/react/common:common'), + '//third-party/java/android/support/v4:lib-support-v4', + '//third-party/java/infer-annotations:infer-annotations', + '//third-party/java/jsr-305:jsr-305', + '//third-party/java/okhttp:okhttp', + '//third-party/java/okio:okio', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':network', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/storage/BUCK b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/BUCK new file mode 100644 index 000000000..723db50f7 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/BUCK @@ -0,0 +1,21 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'storage', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/modules/common:common'), + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + '//third-party/java/infer-annotations:infer-annotations', + '//third-party/java/jsr-305:jsr-305', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':storage', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK b/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK new file mode 100644 index 000000000..deac058df --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK @@ -0,0 +1,19 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'systeminfo', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + '//third-party/java/infer-annotations:infer-annotations', + '//third-party/java/jsr-305:jsr-305', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':systeminfo', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK b/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK new file mode 100644 index 000000000..497ef5bd0 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK @@ -0,0 +1,19 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'toast', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + '//third-party/java/infer-annotations:infer-annotations', + '//third-party/java/jsr-305:jsr-305', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':toast', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK b/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK new file mode 100644 index 000000000..92ab5d859 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK @@ -0,0 +1,22 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'websocket', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/modules/core:core'), + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + '//third-party/java/infer-annotations:infer-annotations', + '//third-party/java/jsr-305:jsr-305', + '//third-party/java/okhttp:okhttp-ws', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':websocket', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK b/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK new file mode 100644 index 000000000..7043f36df --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK @@ -0,0 +1,43 @@ +include_defs('//instrumentation_tests/DEFS') +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'shell', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('res:shell'), + react_native_target('java/com/facebook/react:react'), + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/devsupport:devsupport'), + react_native_target('java/com/facebook/react/views/drawer:drawer'), + react_native_target('java/com/facebook/react/views/image:image'), + react_native_target('java/com/facebook/react/views/progressbar:progressbar'), + react_native_target('java/com/facebook/react/views/scroll:scroll'), + react_native_target('java/com/facebook/react/views/switchview:switchview'), + react_native_target('java/com/facebook/react/views/text:text'), + react_native_target('java/com/facebook/react/views/textinput:textinput'), + react_native_target('java/com/facebook/react/views/toolbar:toolbar'), + react_native_target('java/com/facebook/react/views/view:view'), + react_native_target('java/com/facebook/react/views/viewpager:viewpager'), + react_native_target('java/com/facebook/react/modules/core:core'), + react_native_target('java/com/facebook/react/modules/debug:debug'), + react_native_target('java/com/facebook/react/modules/fresco:fresco'), + react_native_target('java/com/facebook/react/modules/network:network'), + react_native_target('java/com/facebook/react/modules/storage:storage'), + react_native_target('java/com/facebook/react/modules/toast:toast'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_target('java/com/facebook/react/modules/websocket:websocket'), + react_native_dep('libraries/soloader/java/com/facebook/soloader:soloader'), + react_native_dep('third-party/java/android/support/v4:lib-support-v4'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':shell', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/touch/BUCK b/ReactAndroid/src/main/java/com/facebook/react/touch/BUCK new file mode 100644 index 000000000..44cea8fdc --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/touch/BUCK @@ -0,0 +1,17 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'touch', + srcs = glob(['**/*.java']), + deps = [ + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC' + ], +) + +project_config( + src_target = ':touch', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK b/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK new file mode 100644 index 000000000..128e87f67 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK @@ -0,0 +1,25 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'uimanager', + srcs = glob(['**/*.java']), + deps = [ + '//libraries/fbcore/src/main/java/com/facebook/common/logging:logging', + react_native_target('java/com/facebook/react/animation:animation'), + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/csslayout:csslayout'), + react_native_target('java/com/facebook/react/touch:touch'), + react_native_dep('java/com/facebook/systrace:systrace'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + react_native_dep('third-party/java/android/support/v4:lib-support-v4'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':uimanager', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK new file mode 100644 index 000000000..1bef74069 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK @@ -0,0 +1,22 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'drawer', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/csslayout:csslayout'), + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_target('java/com/facebook/react/views/scroll:scroll'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + '//third-party/java/android/support/v4:lib-support-v4', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':drawer', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK new file mode 100644 index 000000000..52c2e0b1e --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK @@ -0,0 +1,29 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'image', + srcs = glob(['*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + '//libraries/drawee/src/main/java/com/facebook/drawee/controller:controller', + '//libraries/drawee/src/main/java/com/facebook/drawee/drawable:drawable', + '//libraries/drawee/src/main/java/com/facebook/drawee/generic:generic', + '//libraries/drawee/src/main/java/com/facebook/drawee/interfaces:interfaces', + '//libraries/drawee/src/main/java/com/facebook/drawee/view:view', + '//libraries/fbcore/src/main/java/com/facebook/common/references:references', + '//libraries/fbcore/src/main/java/com/facebook/common/util:util', + '//libraries/fresco/drawee-backends/drawee-pipeline/src/main/java/com/facebook/drawee/backends/pipeline:pipeline', + '//libraries/imagepipeline/src/main/java/com/facebook/imagepipeline/bitmaps:bitmaps', + '//libraries/imagepipeline/src/main/java/com/facebook/imagepipeline/common:common', + '//libraries/imagepipeline/src/main/java/com/facebook/imagepipeline/request:request', + '//third-party/java/jsr-305:jsr-305', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':image', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK new file mode 100644 index 000000000..ef7fc9609 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK @@ -0,0 +1,21 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'progressbar', + srcs = glob(['*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/csslayout:csslayout'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + '//third-party/java/infer-annotations:infer-annotations', + '//third-party/java/jsr-305:jsr-305', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':progressbar', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/recyclerview/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/recyclerview/BUCK new file mode 100644 index 000000000..54414c312 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/recyclerview/BUCK @@ -0,0 +1,25 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'recyclerview', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/touch:touch'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_target('java/com/facebook/react/views/scroll:scroll'), + react_native_target('java/com/facebook/react/views/view:view'), + '//third-party/android-support-v7/recyclerview:recyclerview', + '//third-party/java/android/support/v4:lib-support-v4', + '//third-party/java/infer-annotations:infer-annotations', + '//third-party/java/jsr-305:jsr-305', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':recyclerview', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK new file mode 100644 index 000000000..d08719512 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK @@ -0,0 +1,23 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'scroll', + srcs = glob(['*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/views/view:view'), + react_native_target('java/com/facebook/react/touch:touch'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + react_native_dep('third-party/java/android/support/v4:lib-support-v4'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':scroll', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK new file mode 100644 index 000000000..6c353cbe8 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK @@ -0,0 +1,21 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'switchview', + srcs = glob(['*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/csslayout:csslayout'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + '//third-party/android-support-for-standalone-apps/v7/appcompat:appcompat-23.1', + '//third-party/android-support-for-standalone-apps/v7/appcompat:res-for-react-native', + '//third-party/java/jsr-305:jsr-305', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':switchview', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK new file mode 100644 index 000000000..cd0f60c1b --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK @@ -0,0 +1,21 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'text', + srcs = glob(['*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/csslayout:csslayout'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':text', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK new file mode 100644 index 000000000..4c7142f68 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK @@ -0,0 +1,23 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'textinput', + srcs = glob(['*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/views/text:text'), + react_native_target('java/com/facebook/csslayout:csslayout'), + react_native_target('java/com/facebook/react/modules/core:core'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':textinput', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/BUCK new file mode 100644 index 000000000..35a06f331 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/BUCK @@ -0,0 +1,33 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'toolbar', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/csslayout:csslayout'), + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_target('java/com/facebook/react/common:common'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + '//libraries/imagepipeline/src/main/java/com/facebook/imagepipeline/bitmaps:bitmaps', + '//libraries/imagepipeline/src/main/java/com/facebook/imagepipeline/common:common', + '//libraries/imagepipeline/src/main/java/com/facebook/imagepipeline/request:request', + '//libraries/imagepipeline/src/main/java/com/facebook/imagepipeline/image:image', + '//libraries/drawee/src/main/java/com/facebook/drawee/controller:controller', + '//libraries/drawee/src/main/java/com/facebook/drawee/drawable:drawable', + '//libraries/drawee/src/main/java/com/facebook/drawee/generic:generic', + '//libraries/drawee/src/main/java/com/facebook/drawee/interfaces:interfaces', + '//libraries/drawee/src/main/java/com/facebook/drawee/view:view', + '//libraries/fresco/drawee-backends/drawee-pipeline/src/main/java/com/facebook/drawee/backends/pipeline:pipeline', + '//third-party/android-support-for-standalone-apps/v7/appcompat:appcompat-23.1', + '//third-party/android-support-for-standalone-apps/v7/appcompat:res-for-react-native', + '//third-party/java/android/support/v4:lib-support-v4', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':toolbar', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK new file mode 100644 index 000000000..428372baa --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK @@ -0,0 +1,22 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'view', + srcs = glob(['*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/csslayout:csslayout'), + react_native_target('java/com/facebook/react/touch:touch'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_dep('third-party/java/infer-annotations:infer-annotations'), + react_native_dep('third-party/java/jsr-305:jsr-305'), + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':view', +) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/BUCK new file mode 100644 index 000000000..8b0b881fa --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/BUCK @@ -0,0 +1,21 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'viewpager', + srcs = glob(['**/*.java']), + deps = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('java/com/facebook/react/common:common'), + react_native_target('java/com/facebook/react/uimanager:uimanager'), + react_native_target('java/com/facebook/react/views/scroll:scroll'), + '//third-party/java/android/support/v4:lib-support-v4', + '//third-party/java/jsr-305:jsr-305', + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':viewpager', +) diff --git a/ReactAndroid/src/main/java/com/facebook/soloader/BUCK b/ReactAndroid/src/main/java/com/facebook/soloader/BUCK new file mode 100644 index 000000000..322ba2204 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/soloader/BUCK @@ -0,0 +1,20 @@ +include_defs('//ReactAndroid/DEFS') + +android_library( + name = 'soloader', + srcs = glob(['*.java']), + proguard_config = 'soloader.pro', + deps = [ + react_native_dep('third-party/java/jsr-305:jsr-305'), + # Be very careful adding new dependencies here, because this code + # has to run very early in the app startup process. + # Definitely do *not* depend on lib-base or guava. + ], + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':soloader', +) diff --git a/ReactAndroid/src/main/java/com/facebook/systrace/BUCK b/ReactAndroid/src/main/java/com/facebook/systrace/BUCK new file mode 100644 index 000000000..6d222bb2a --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/systrace/BUCK @@ -0,0 +1,11 @@ +android_library( + name = 'systrace', + srcs = glob(['*.java']), + visibility = [ + 'PUBLIC', + ], +) + +project_config( + src_target = ':systrace', +) diff --git a/ReactAndroid/src/main/jni/react/BUCK b/ReactAndroid/src/main/jni/react/BUCK new file mode 100644 index 000000000..14e7e8ffe --- /dev/null +++ b/ReactAndroid/src/main/jni/react/BUCK @@ -0,0 +1,57 @@ +include_defs('//ReactAndroid/DEFS') + +# We depend on JSC, support the same platforms +SUPPORTED_PLATFORMS = '^android-(armv7|x86)$' + +cxx_library( + name = 'react', + soname = 'libreactnative.so', + header_namespace = 'react', + supported_platforms_regex = SUPPORTED_PLATFORMS, + force_static = True, + srcs = [ + 'Bridge.cpp', + 'Value.cpp', + 'MethodCall.cpp', + 'JSCHelpers.cpp', + 'JSCExecutor.cpp', + 'JSCTracing.cpp', + 'JSCPerfLogging.cpp', + 'JSCLegacyProfiler.cpp', + ], + headers = [ + 'JSCTracing.h', + 'JSCPerfLogging.h', + 'JSCLegacyProfiler.h', + ], + exported_headers = [ + 'Bridge.h', + 'Executor.h', + 'JSCExecutor.h', + 'JSCHelpers.h', + 'MethodCall.h', + 'Value.h', + ], + preprocessor_flags = [ + '-DLOG_TAG="ReactNative"', + '-DWITH_JSC_EXTRA_TRACING=1', + '-DWITH_FBSYSTRACE=1', + ], + compiler_flags = [ + '-Wall', + '-std=c++11', + '-fexceptions', + '-fvisibility=hidden', + ], + visibility = [ + react_native_target('jni/react/jni:jni'), + ], + deps = [ + '//native/fb:fb', + '//xplat/fbsystrace:fbsystrace', + '//native/jni:jni', + '//native/third-party/jsc:jsc', + '//native/third-party/jsc:jsc_legacy_profiler', + '//xplat/folly:json', + ], +) diff --git a/ReactAndroid/src/main/jni/react/jni/BUCK b/ReactAndroid/src/main/jni/react/jni/BUCK new file mode 100644 index 000000000..b70ecf239 --- /dev/null +++ b/ReactAndroid/src/main/jni/react/jni/BUCK @@ -0,0 +1,53 @@ +include_defs('//ReactAndroid/DEFS') + +# We depend on JSC, support the same platforms +SUPPORTED_PLATFORMS = '^android-(armv7|x86)$' + +cxx_library( + name = 'jni', + soname = 'libreactnativejni.so', + header_namespace = 'react/jni', + supported_platforms_regex = SUPPORTED_PLATFORMS, + srcs = [ + 'NativeArray.cpp', + 'OnLoad.cpp', + 'ProxyExecutor.cpp', + 'JSLoader.cpp', + ], + headers = [ + 'ProxyExecutor.h', + 'JSLoader.h', + ], + exported_headers = [ + 'NativeArray.h', + 'ReadableNativeArray.h', + ], + preprocessor_flags = [ + '-DLOG_TAG="ReactNativeJNI"', + '-DWITH_FBSYSTRACE=1', + ], + compiler_flags = [ + '-Wall', + '-Werror', + '-fexceptions', + '-std=c++11', + '-fvisibility=hidden', + '-frtti', + ], + visibility = [ + react_native_target('java/com/facebook/react/bridge:bridge'), + react_native_target('jni/react/...'), + react_native_dep('native/react/...') + ], + deps = [ + react_native_target('jni/react:react'), + '//native/jni:jni', + '//native/third-party/jsc:jsc', + '//native/third-party/jsc:jsc_legacy_profiler', + '//xplat/folly:json', + ], +) + +project_config( + src_target = ':jni', +) diff --git a/ReactAndroid/src/main/jni/react/perftests/BUCK b/ReactAndroid/src/main/jni/react/perftests/BUCK new file mode 100644 index 000000000..6358592fb --- /dev/null +++ b/ReactAndroid/src/main/jni/react/perftests/BUCK @@ -0,0 +1,21 @@ +include_defs('//ReactAndroid/DEFS') + +cxx_library( + name = 'perftests', + srcs = [ 'OnLoad.cpp' ], + soname = 'libreactnativetests.so', + preprocessor_flags = [ + '-DLOG_TAG=\"ReactPerftests\"', + ], + visibility = [ + '//instrumentation_tests/com/facebook/catalyst/...', + ], + deps = [ + '//native:base', + '//native/jni:jni', + ], +) + +project_config( + src_target = ':perftests', +) diff --git a/ReactAndroid/src/main/res/BUCK b/ReactAndroid/src/main/res/BUCK new file mode 100644 index 000000000..90f796a13 --- /dev/null +++ b/ReactAndroid/src/main/res/BUCK @@ -0,0 +1,19 @@ +include_defs('//ReactAndroid/DEFS') + +android_resource( + name = 'devsupport', + res = 'devsupport', + package = 'com.facebook.react', + visibility = [ + react_native_target('java/com/facebook/react/devsupport/...'), + ], +) + +android_resource( + name = 'shell', + res = 'shell', + package = 'com.facebook.react', + visibility = [ + 'PUBLIC', + ], +) diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..8c0fb64a8 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..0c71e760d --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Wed Apr 10 15:27:10 PDT 2013 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip