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

View File

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

View File

@ -0,0 +1,11 @@
android_library(
name = 'perftest',
srcs = glob(['*.java']),
visibility = [
'PUBLIC',
],
)
project_config(
src_target = ':perftest',
)

View File

@ -0,0 +1,14 @@
android_library(
name = 'annotations',
srcs = glob(['*.java']),
proguard_config = 'proguard_annotations.pro',
deps = [
],
visibility = [
'PUBLIC',
],
)
project_config(
src_target = ':annotations',
)

View File

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

View File

@ -0,0 +1,11 @@
android_library(
name = 'identifiers',
srcs = glob(['*.java']),
visibility = [
'PUBLIC',
],
)
project_config(
src_target = ':identifiers',
)

View File

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

View File

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,11 @@
android_library(
name = 'systrace',
srcs = glob(['*.java']),
visibility = [
'PUBLIC',
],
)
project_config(
src_target = ':systrace',
)

View File

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

View File

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

View File

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

View File

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

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View File

@ -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