From 68741d74eec61a41304f4c2acfcdaab0a3168924 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Thu, 27 Mar 2025 07:50:29 -0700 Subject: [PATCH] Delete react-native/android/ directory (#50319) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50319 Originally removed in 0.71, leaving a README file as an FYI, which is now removed. Changelog: [Internal] Reviewed By: robhogan Differential Revision: D71968498 fbshipit-source-id: 81d380570df346f709a35727090c8e3b8b043183 --- packages/react-native/android/README.md | 21 --------------------- packages/react-native/package.json | 1 - 2 files changed, 22 deletions(-) delete mode 100644 packages/react-native/android/README.md diff --git a/packages/react-native/android/README.md b/packages/react-native/android/README.md deleted file mode 100644 index 613d9a3f283..00000000000 --- a/packages/react-native/android/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# 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. diff --git a/packages/react-native/package.json b/packages/react-native/package.json index b8b34870337..f61df1f877d 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -32,7 +32,6 @@ "outputName": "js-test-results.xml" }, "files": [ - "android", "build.gradle.kts", "cli.js", "flow",