mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-08 17:46:35 +08:00
Reviewed By: dreiss Differential Revision: D6168048 fbshipit-source-id: 0e51319d93fd697db01ea3933f48cd06a6ffac12
41 lines
978 B
Python
41 lines
978 B
Python
include_defs("//ReactAndroid/DEFS")
|
|
|
|
SUB_PROJECTS = [
|
|
"network/**/*",
|
|
]
|
|
|
|
android_library(
|
|
name = "common",
|
|
srcs = glob(
|
|
["**/*.java"],
|
|
excludes = SUB_PROJECTS,
|
|
),
|
|
exported_deps = [
|
|
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
|
|
],
|
|
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"),
|
|
],
|
|
)
|
|
|
|
android_build_config(
|
|
name = "build_config",
|
|
package = "com.facebook.react",
|
|
values = [
|
|
"boolean IS_INTERNAL_BUILD = true",
|
|
],
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
)
|