mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f24b815fe6
Summary: Internal code attribution update. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D21603406 fbshipit-source-id: c3da1823e26beb0092d97e66d731618c0433a2f7
47 lines
1.4 KiB
Python
47 lines
1.4 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,
|
|
),
|
|
is_androidx = True,
|
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
|
provided_deps = [
|
|
react_native_dep("third-party/android/androidx:annotation"),
|
|
react_native_dep("third-party/android/androidx:core"),
|
|
react_native_dep("third-party/android/androidx:fragment"),
|
|
react_native_dep("third-party/android/androidx:legacy-support-core-ui"),
|
|
react_native_dep("third-party/android/androidx:legacy-support-core-utils"),
|
|
],
|
|
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",
|
|
],
|
|
)
|