mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48745 This is the first step in a series of diff to make RNGP more Gradle-compliant (specifically for the sake of configuration caching). Specifically the problem in those 2 tasks is that we're accessing `project.copy()` and other functions from the `project` field. The project should never be accessed at execution time. See more on this here: https://docs.gradle.org/8.12/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution This diff fixes it. Changelog: [Internal] [Changed] - Reviewed By: cipolleschi Differential Revision: D68282777 fbshipit-source-id: 6d474f266b5bc50fba57c8cd478173c995864bbc
@react-native/gradle-plugin
A Gradle Plugin used to support development of React Native applications for Android.
Installation
yarn add @react-native/gradle-plugin
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Testing
To run the tests in this package, run the following commands from the React Native root folder:
yarnto install the dependencies. You just need to run this once./gradlew -p packages/gradle-plugin test.