From e17c4a2ac9bbbf2def54348f43d20999cbfc466c Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 11 Aug 2023 14:31:05 -0700 Subject: [PATCH] Enable 'allWarningsAsErrors' for CI android build (#38969) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38969 As we migrate java to kotlin I noticed that we've introduced few warnings here and there. In this diff I'm enabling allWarningsAsErrors in the CI The reasoning is that we are just starting with Kotlin and I believe we should enable 'allWarningsAsErrors' for CI android builds to make sure the codebase grow healthy, this will also help us to cleanup apis. e.g. create APIs for deprecated java APIs. changelog: [internal] internal Reviewed By: NickGerleman Differential Revision: D48239603 fbshipit-source-id: dd7a5df98cea82bf9bab6b26c4b1baa9f743ccbf --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f45df490d60..068f10aee02 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1022,7 +1022,7 @@ jobs: steps: - run: name: Build & Test React Native using Gradle - command: ./gradlew build + command: ./gradlew build -PenableWarningsAsErrors=true - report_bundle_size: platform: android