File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
ReactAndroid/src/androidTest/java/com/facebook/react Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
# BUILD FILE SYNTAX: SKYLARK
2
2
load (
3
3
"//tools/build_defs/oss:rn_defs.bzl" ,
4
+ "IS_OSS_BUILD" ,
4
5
"react_native_dep" ,
5
6
"react_native_integration_tests_target" ,
6
7
"react_native_target" ,
@@ -13,9 +14,7 @@ rn_android_library(
13
14
visibility = [
14
15
"PUBLIC" ,
15
16
],
16
- deps = [
17
- react_native_dep ("java/com/facebook/testing/instrumentation:instrumentation" ),
18
- react_native_dep ("java/com/facebook/testing/instrumentation/base:base" ),
17
+ deps = ([
19
18
react_native_dep ("third-party/java/espresso:espresso" ),
20
19
react_native_dep ("third-party/java/jsr-305:jsr-305" ),
21
20
react_native_dep ("third-party/java/junit:junit" ),
@@ -31,5 +30,8 @@ rn_android_library(
31
30
react_native_target ("java/com/facebook/react/modules/core:core" ),
32
31
react_native_target ("java/com/facebook/react/shell:shell" ),
33
32
react_native_target ("java/com/facebook/react/uimanager:uimanager" ),
34
- ],
33
+ ]) + ([
34
+ react_native_dep ("java/com/facebook/testing/instrumentation:instrumentation" ),
35
+ react_native_dep ("java/com/facebook/testing/instrumentation/base:base" ),
36
+ ]) if not IS_OSS_BUILD else [],
35
37
)
Original file line number Diff line number Diff line change 1
1
# BUILD FILE SYNTAX: SKYLARK
2
2
load (
3
3
"//tools/build_defs/oss:rn_defs.bzl" ,
4
+ "IS_OSS_BUILD" ,
4
5
"react_native_dep" ,
5
6
"react_native_integration_tests_target" ,
6
7
"react_native_target" ,
10
11
rn_android_library (
11
12
name = "core" ,
12
13
srcs = glob (["*.java" ]),
13
- deps = [
14
- react_native_dep ("java/com/facebook/fbreact/testing:testing" ),
14
+ deps = ([
15
15
react_native_dep ("third-party/java/espresso:espresso" ),
16
16
react_native_dep ("third-party/java/fest:fest" ),
17
17
react_native_dep ("third-party/java/junit:junit" ),
@@ -22,5 +22,7 @@ rn_android_library(
22
22
react_native_target ("java/com/facebook/react/bridge:bridge" ),
23
23
react_native_target ("java/com/facebook/react/shell:shell" ),
24
24
react_native_target ("java/com/facebook/react/uimanager:uimanager" ),
25
- ],
25
+ ]) + ([
26
+ react_native_dep ("java/com/facebook/fbreact/testing:testing" ),
27
+ ]) if not IS_OSS_BUILD else [],
26
28
)
You can’t perform that action at this time.
0 commit comments