react-native-macos/template/android
Frieder Bluemle 87f94d5587 Skip lint check for dynamic react-native version (#26222)
Summary:
The `dependencies` section in the `build.gradle` Android template contains this line:

    implementation "com.facebook.react:react-native:+"  // From node_modules

It causes the following Gradle Lint warning:

> Avoid using '+' in version numbers, can lead to unpredictable or unrepeatable builds

In this case, as the `// From node_modules` comment suggests, the version is _not_ determined by Gradle but by the version specified in `package.json` - Using "+" is completely fine and intentional.

Therefore it can safely be ignored, which is what the added `//noinspection` comment does.

## Changelog

[Android] [Fixed] - Skip lint check for dynamic react-native version
Pull Request resolved: https://github.com/facebook/react-native/pull/26222

Test Plan: Projects generated with the new template no longer cause the warning anymore.

Differential Revision: D17091476

Pulled By: osdnk

fbshipit-source-id: 910b4ecf22ccd11cade9427af68087ffcce8bc8e
2019-09-09 06:33:06 -07:00
..
app Skip lint check for dynamic react-native version (#26222) 2019-09-09 06:33:06 -07:00
gradle/wrapper Update Gradle wrapper to 5.6.2 (#26349) 2019-09-06 00:25:53 -07:00
build.gradle bump android gradle plugin to 3.5.0 (#26129) 2019-08-29 07:35:41 -07:00
gradle.properties Move ReactNativeFlipper class to template 2019-09-03 16:28:24 -07:00
gradlew Update Gradle wrapper to 5.6.2 (#26349) 2019-09-06 00:25:53 -07:00
gradlew.bat Update Gradle wrapper to 5.6 (#26079) 2019-08-26 12:13:37 -07:00
settings.gradle Implement changes to enable native modules auto linking (#24506) 2019-04-24 06:17:05 -07:00