Files
react-native/ReactAndroid/src/main/java/com/facebook/react/common/BUCK
T
Moti ZilbermanandFacebook GitHub Bot a7ff7229f0 Centralize HERMES_BYTECODE_VERSION setting
Summary: Changelog: [Internal]

Reviewed By: javache

Differential Revision: D31081032

fbshipit-source-id: e0e18e424a192f42daed6dc802155022b41b0067
2021-09-21 10:24:12 -07:00

50 lines
1.6 KiB
Python

load("//tools/build_defs/oss:rn_defs.bzl", "HERMES_BYTECODE_VERSION", "react_native_dep", "rn_android_build_config", "rn_android_library")
SUB_PROJECTS = [
"network/**/*",
"mapbuffer/**/*",
]
rn_android_library(
name = "common",
srcs = glob(
["**/*.java"],
exclude = SUB_PROJECTS,
),
autoglob = False,
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",
"int HERMES_BYTECODE_VERSION = {}".format(HERMES_BYTECODE_VERSION),
],
visibility = [
"PUBLIC",
],
)