mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 09:12:46 +08:00
Add BUCK files
This commit is contained in:
19
ReactAndroid/src/test/java/com/facebook/react/bridge/BUCK
Normal file
19
ReactAndroid/src/test/java/com/facebook/react/bridge/BUCK
Normal file
@@ -0,0 +1,19 @@
|
||||
include_defs('//ReactAndroid/DEFS')
|
||||
|
||||
STANDARD_TEST_SRCS = [
|
||||
'**/*Test.java',
|
||||
]
|
||||
|
||||
android_library(
|
||||
name = 'testhelpers',
|
||||
srcs = glob(['**/*.java'], excludes = STANDARD_TEST_SRCS),
|
||||
deps = [
|
||||
react_native_target('java/com/facebook/react/bridge:bridge'),
|
||||
react_native_target('java/com/facebook/react/uimanager:uimanager'),
|
||||
react_native_dep('third-party/java/mockito:mockito'),
|
||||
react_native_dep('third-party/java/robolectric3/robolectric:robolectric'),
|
||||
],
|
||||
visibility = [
|
||||
'PUBLIC'
|
||||
],
|
||||
)
|
||||
41
ReactAndroid/src/test/java/com/facebook/react/modules/BUCK
Normal file
41
ReactAndroid/src/test/java/com/facebook/react/modules/BUCK
Normal file
@@ -0,0 +1,41 @@
|
||||
include_defs('//ReactAndroid/DEFS')
|
||||
|
||||
robolectric3_test(
|
||||
# Please change the contact to the oncall of your team
|
||||
contacts = ['oncall+fbandroid_sheriff@xmail.facebook.com'],
|
||||
name = 'modules',
|
||||
srcs = glob(['**/*.java']),
|
||||
deps = [
|
||||
react_native_target('java/com/facebook/csslayout:csslayout'),
|
||||
react_native_target('java/com/facebook/react:react'),
|
||||
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/react/modules/clipboard:clipboard'),
|
||||
react_native_target('java/com/facebook/react/modules/common:common'),
|
||||
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/dialog:dialog'),
|
||||
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/systeminfo:systeminfo'),
|
||||
react_native_target('java/com/facebook/react/uimanager:uimanager'),
|
||||
react_native_target('java/com/facebook/react/touch:touch'),
|
||||
|
||||
react_native_tests_target('java/com/facebook/react/bridge:testhelpers'),
|
||||
react_native_dep('libraries/fbcore/src/test/java/com/facebook/powermock:powermock'),
|
||||
react_native_dep('third-party/java/robolectric3/robolectric:robolectric'),
|
||||
react_native_dep('third-party/java/fest:fest'),
|
||||
react_native_dep('third-party/java/junit:junit'),
|
||||
react_native_dep('third-party/java/okio:okio'),
|
||||
react_native_dep('third-party/java/mockito:mockito'),
|
||||
react_native_dep('third-party/java/okhttp:okhttp'),
|
||||
],
|
||||
visibility = [
|
||||
'PUBLIC'
|
||||
],
|
||||
)
|
||||
|
||||
project_config(
|
||||
test_target = ':modules',
|
||||
)
|
||||
16
ReactAndroid/src/test/java/org/mockito/configuration/BUCK
Normal file
16
ReactAndroid/src/test/java/org/mockito/configuration/BUCK
Normal file
@@ -0,0 +1,16 @@
|
||||
include_defs('//ReactAndroid/DEFS')
|
||||
|
||||
android_library(
|
||||
name = 'configuration',
|
||||
srcs = glob(['**/*.java']),
|
||||
deps = [
|
||||
react_native_dep('third-party/java/mockito:mockito'),
|
||||
],
|
||||
visibility = [
|
||||
'PUBLIC',
|
||||
],
|
||||
)
|
||||
|
||||
project_config(
|
||||
src_target = ':configuration',
|
||||
)
|
||||
Reference in New Issue
Block a user