mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
777397667c
Summary: Resolved a build error [issue https://github.com/facebook/react-native/issues/51297](https://github.com/facebook/react-native/issues/51297) caused by assigning a Boolean to a Property<Boolean>. Switched from direct assignment to using .set(...) to correctly configure allWarningsAsErrors from project properties. ## Changelog: - Gradle fix: assign allWarningsAsErrors using .set() for Property<Boolean> <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - [ANDROID] [FIXED] For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: https://github.com/facebook/react-native/pull/51300 Test Plan: Fixes build failure with React Native v0.79.2 and Gradle v8.0. ``` npm run start npm run android ``` no more build errors Reviewed By: cortinico Differential Revision: D74706741 Pulled By: rshest fbshipit-source-id: 31ec923f49a6da63fb5abb464bc38b99b1e8650a
React Native Gradle Plugin
This plugin is used by React Native Apps to configure themselves.
NOTE: It's important that this folder is called react-native-gradle-plugin as it's used
by users in their build.gradle file as follows:
buildscript {
// ...
dependencies {
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
The name of the artifact is imposed by the folder name.