mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable warningAsErrors for hermes-engine (#47320)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47320 I've solved all the warnings on ReactAndroid/hermes-engine. This enables warningsAsErrors for that part of the codebase so we can make sure no further warnings get introduced. Changelog: [Internal] [Changed] - Enable warningAsErrors for hermes-engine Reviewed By: NickGerleman Differential Revision: D65243753 fbshipit-source-id: 17c22d1a7a32d2c684d7f236f7554f6e26469e99
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b91a449e7f
commit
ecd138e267
@@ -330,6 +330,11 @@ afterEvaluate {
|
||||
tasks.getByName("preBuild").dependsOn(prepareHeadersForPrefab)
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.compilerArgs.add("-Xlint:deprecation,unchecked")
|
||||
options.compilerArgs.add("-Werror")
|
||||
}
|
||||
|
||||
/* Publishing Configuration */
|
||||
apply(from = "../publish.gradle")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user