mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-28 08:07:25 +08:00
Begin inverting dependency between new+old bridge
Reviewed By: mhorowitz Differential Revision: D3306510 fbshipit-source-id: 312a498a4461e980f1f749fe7858a13be14dfa2f
This commit is contained in:
committed by
Facebook Github Bot 0
parent
26a5b033f8
commit
5b871ad9d7
@@ -1,11 +1,7 @@
|
||||
include_defs('//ReactAndroid/DEFS')
|
||||
|
||||
XREACT_SRCS = [
|
||||
'XReactInstanceManager.java',
|
||||
'XReactInstanceManagerImpl.java',
|
||||
]
|
||||
|
||||
DEPS = [
|
||||
react_native_target('java/com/facebook/react/cxxbridge:bridge'),
|
||||
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'),
|
||||
@@ -23,25 +19,13 @@ DEPS = [
|
||||
|
||||
android_library(
|
||||
name = 'react',
|
||||
srcs = glob(['*.java'], excludes=XREACT_SRCS),
|
||||
srcs = glob(['*.java']),
|
||||
deps = DEPS,
|
||||
visibility = [
|
||||
'PUBLIC',
|
||||
],
|
||||
)
|
||||
|
||||
android_library(
|
||||
name = 'xreact',
|
||||
srcs = XREACT_SRCS,
|
||||
deps = DEPS + [
|
||||
':react',
|
||||
react_native_target('java/com/facebook/react/cxxbridge:bridge'),
|
||||
],
|
||||
visibility = [
|
||||
'PUBLIC',
|
||||
],
|
||||
)
|
||||
|
||||
project_config(
|
||||
src_target = ':react',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user