Add gradle wrapper

Reviewed By: astreet

Differential Revision: D2590921

fb-gh-sync-id: cf870c96f772c06e1a8b69014ebd906978ea8c00
This commit is contained in:
Martin Konicek
2015-10-29 09:07:07 -07:00
committed by facebook-github-bot-4
parent 84f7602ed8
commit 5518279610
42 changed files with 957 additions and 0 deletions

View File

@@ -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',
)