mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-04 21:09:21 +08:00
Summary: Back out D9614432 and partially revert D9623235 to unbreak OSS. Reviewed By: hramos Differential Revision: D9779548 fbshipit-source-id: 931c4987ed5acbae3790c42717662fed77599335
41 lines
1.0 KiB
Python
41 lines
1.0 KiB
Python
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_build_config", "rn_android_library")
|
|
|
|
SUB_PROJECTS = [
|
|
"network/**/*",
|
|
]
|
|
|
|
rn_android_library(
|
|
name = "common",
|
|
srcs = glob(
|
|
["**/*.java"],
|
|
exclude = SUB_PROJECTS,
|
|
),
|
|
provided_deps = [
|
|
react_native_dep("third-party/android/support/v4:lib-support-v4"),
|
|
],
|
|
required_for_source_only_abi = True,
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
deps = [
|
|
":build_config",
|
|
react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"),
|
|
react_native_dep("third-party/java/infer-annotations:infer-annotations"),
|
|
react_native_dep("third-party/java/jsr-305:jsr-305"),
|
|
],
|
|
exported_deps = [
|
|
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
|
|
],
|
|
)
|
|
|
|
rn_android_build_config(
|
|
name = "build_config",
|
|
package = "com.facebook.react",
|
|
values = [
|
|
"boolean IS_INTERNAL_BUILD = true",
|
|
],
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
)
|