From 96daf677b7eda7e4344da7e674d3d6c298875913 Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Wed, 21 Mar 2018 17:40:46 -0700 Subject: [PATCH] Fix OSS Android test failure Reviewed By: fkgozali, hramos Differential Revision: D7358801 fbshipit-source-id: 6f7979489fd7f5c9f7d9e1d7461121b7ff9f3ab0 --- ReactNative/DEFS.bzl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ReactNative/DEFS.bzl b/ReactNative/DEFS.bzl index b84007444..135bacfbc 100644 --- a/ReactNative/DEFS.bzl +++ b/ReactNative/DEFS.bzl @@ -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 )