mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 03:50:11 +08:00
Do not use glob for static paths.
Summary:
```
>>> Lint for xplat/js/react-native-github/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK:
Warning (BUILDIFIERLINT2) constant-glob
Glob pattern `DisplayMetricsHolder.java` has no wildcard ('*'). Constant
patterns can be error-prone, move the file outside the glob.
(https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#constant-glob)
50 rn_android_library(
51 name = "DisplayMetrics",
52 srcs = glob([
>>> 53 "DisplayMetricsHolder.java",
54 ]),
55 required_for_source_only_abi = True,
56 visibility = [
```
Reviewed By: hramos
Differential Revision: D13519693
fbshipit-source-id: 1cb9721f541c22480e4dbdad03978092453b42ba
This commit is contained in:
committed by
Facebook Github Bot
parent
8e79a74bc2
commit
4d9f02f568
@@ -49,9 +49,9 @@ rn_android_library(
|
||||
|
||||
rn_android_library(
|
||||
name = "DisplayMetrics",
|
||||
srcs = glob([
|
||||
srcs = [
|
||||
"DisplayMetricsHolder.java",
|
||||
]),
|
||||
],
|
||||
required_for_source_only_abi = True,
|
||||
visibility = [
|
||||
"PUBLIC",
|
||||
|
||||
Reference in New Issue
Block a user