Begin inverting dependency between new+old bridge

Reviewed By: mhorowitz

Differential Revision: D3306510

fbshipit-source-id: 312a498a4461e980f1f749fe7858a13be14dfa2f
This commit is contained in:
Chris Hopman
2016-06-07 13:25:20 -07:00
committed by Facebook Github Bot 0
parent 26a5b033f8
commit 5b871ad9d7
4 changed files with 47 additions and 85 deletions

View File

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