mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-08 22:42:05 +08:00
Summary: https://our.intern.facebook.com/intern/wiki/Buck/python-to-skylark/ Differential Revision: D8595731 fbshipit-source-id: 0e3046a7fd2a25e9b13462713ae9a008ad546770
41 lines
1.0 KiB
Python
41 lines
1.0 KiB
Python
load("//ReactNative: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",
|
|
],
|
|
)
|