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/35496 This commit includes a series of fixes needed for better integration with libraries for 0.71: - I've added an `android/README.md` file as some libraries were failing the build if the folder was missing - RNGP now applies dep substitution on app and all the libraries project - RNGP now adds repositories on app and all the libraries project - I've removed the maven local repo to the `/android` folder as now is empty - I've fixed the path for the JSC repo for Windows users - I've added a bit of backward compat by re-adding an empty `project.react.ext` block that libraries might read from. - I've removed `codegenDir` from the `GenerateCodegenArtifactsTask` which was unused. Changelog: [Internal] [Changed] - RNGP - Various improvements needed for 3rd party libs Reviewed By: cipolleschi Differential Revision: D41549489 fbshipit-source-id: 2252da0180ac24fd3fe5a55300527da6781f0f8c
22 lines
1.1 KiB
Markdown
22 lines
1.1 KiB
Markdown
# The `/android` folder inside `react-native`
|
|
|
|
Starting from React Native 0.71, we're not shipping the `/android` folder inside the React Native NPM package
|
|
anymore due to sizing constraints on NPM. The Android artifacts are distributed via Maven Central.
|
|
You can read more about it in this RFC:
|
|
https://github.com/react-native-community/discussions-and-proposals/pull/508
|
|
|
|
If you're a library author and you're manipulating the React Native .aar files, to extract headers,
|
|
extract `.so` files or do anything with it, you're probably doing something wrong. React Native
|
|
0.71 ships with all the necessary logic to let you consume it transparently by just using:
|
|
|
|
```
|
|
implementation("com.facebook.react:react-android")
|
|
// or to keep backward compatibility with older versions of React Native:
|
|
implementation("com.facebook.react:react-native:+")
|
|
```
|
|
|
|
You should consider refactoring your library code not to unzip/manipulate the React Native .aar files.
|
|
|
|
This README.md file is kept in this folder as some libraries are checking the existence of the `/android` folder
|
|
and failing user builds if the folder is missing.
|