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:
Taras Tsugrii 2018-12-20 11:14:13 -08:00 committed by Facebook Github Bot
parent 8e79a74bc2
commit 4d9f02f568
1 changed files with 2 additions and 2 deletions

View File

@ -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",