mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-30 22:12:42 +08:00
Add gradle wrapper
Reviewed By: astreet Differential Revision: D2590921 fb-gh-sync-id: cf870c96f772c06e1a8b69014ebd906978ea8c00
This commit is contained in:
committed by
facebook-github-bot-4
parent
84f7602ed8
commit
5518279610
@@ -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',
|
||||
)
|
||||
@@ -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',
|
||||
)
|
||||
@@ -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',
|
||||
)
|
||||
@@ -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',
|
||||
)
|
||||
@@ -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',
|
||||
)
|
||||
@@ -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',
|
||||
)
|
||||
@@ -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',
|
||||
)
|
||||
@@ -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',
|
||||
)
|
||||
@@ -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',
|
||||
)
|
||||
Reference in New Issue
Block a user