Fix OSS Android test failure

Reviewed By: fkgozali, hramos

Differential Revision: D7358801

fbshipit-source-id: 6f7979489fd7f5c9f7d9e1d7461121b7ff9f3ab0
This commit is contained in:
Jonathan Kim 2018-03-21 17:40:46 -07:00 committed by Facebook Github Bot
parent 6ae38feb65
commit 96daf677b7
1 changed files with 8 additions and 2 deletions

View File

@ -35,10 +35,16 @@ with allow_unsafe_import():
# Building is not supported in OSS right now
def rn_xplat_cxx_library(name, **kwargs):
_ignore = kwargs
new_kwargs = {
k: v
for k, v in kwargs.items()
if k.startswith("exported_")
}
native.cxx_library(
name=name,
visibility=kwargs.get("visibility", [])
visibility=kwargs.get("visibility", []),
**new_kwargs
)