From 6f11b10a88235ad7de1a5777e5cdf7a582a231b7 Mon Sep 17 00:00:00 2001 From: Ruslan Lesiutin Date: Fri, 25 Nov 2022 10:29:36 -0800 Subject: [PATCH] refactor(react-native-gradle-plugin): rename react-native-gradle-plugin to @react-native/gradle-plugin (#35480) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35480 Changelog: [General][Changed] - rename react-native-gradle-plugin to react-native/gradle-plugin Reviewed By: cipolleschi Differential Revision: D41532746 fbshipit-source-id: 67b936a211ec8b91a2a96ca22145cbea94ba3e8c --- .circleci/verdaccio.yml | 3 --- package.json | 2 +- packages/react-native-gradle-plugin/README.md | 8 ++++---- packages/react-native-gradle-plugin/package.json | 2 +- template/android/settings.gradle | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.circleci/verdaccio.yml b/.circleci/verdaccio.yml index 67cd3dedc18e2c..67f855a753178f 100644 --- a/.circleci/verdaccio.yml +++ b/.circleci/verdaccio.yml @@ -22,9 +22,6 @@ packages: 'react-native-codegen': access: $all publish: $all - 'react-native-gradle-plugin': - access: $all - publish: $all '@*/*': access: $all publish: $authenticated diff --git a/package.json b/package.json index efa69df5aebdf6..63c1fe6e25181e 100644 --- a/package.json +++ b/package.json @@ -113,6 +113,7 @@ "@react-native-community/cli-platform-android": "10.0.0-alpha.4", "@react-native-community/cli-platform-ios": "10.0.0-alpha.3", "@react-native/assets": "1.0.0", + "@react-native/gradle-plugin": "^0.72.1", "@react-native/normalize-color": "2.1.0", "@react-native/polyfills": "2.0.0", "abort-controller": "^3.0.0", @@ -132,7 +133,6 @@ "pretty-format": "^26.5.2", "promise": "^8.3.0", "react-devtools-core": "^4.26.1", - "react-native-gradle-plugin": "^0.72.1", "react-refresh": "^0.4.0", "react-shallow-renderer": "^16.15.0", "regenerator-runtime": "^0.13.2", diff --git a/packages/react-native-gradle-plugin/README.md b/packages/react-native-gradle-plugin/README.md index dbe677a5740c7f..6d6889a8067989 100644 --- a/packages/react-native-gradle-plugin/README.md +++ b/packages/react-native-gradle-plugin/README.md @@ -1,4 +1,4 @@ -# react-native-gradle-plugin +# @react-native/gradle-plugin [![Version][version-badge]][package] @@ -7,10 +7,10 @@ A Gradle Plugin used to support development of React Native applications for And ## Installation ``` -yarn add react-native-gradle-plugin +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* -[version-badge]: https://img.shields.io/npm/v/react-native-gradle-plugin?style=flat-square -[package]: https://www.npmjs.com/package/react-native-gradle-plugin +[version-badge]: https://img.shields.io/npm/v/@react-native/gradle-plugin?style=flat-square +[package]: https://www.npmjs.com/package/@react-native/gradle-plugin diff --git a/packages/react-native-gradle-plugin/package.json b/packages/react-native-gradle-plugin/package.json index 366753a6a394c8..5685790c1336ca 100644 --- a/packages/react-native-gradle-plugin/package.json +++ b/packages/react-native-gradle-plugin/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-gradle-plugin", + "name": "@react-native/gradle-plugin", "version": "0.72.1", "description": "⚛️ Gradle Plugin for React Native", "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/react-native-gradle-plugin", diff --git a/template/android/settings.gradle b/template/android/settings.gradle index ab284c3a6bd22f..c2c0717d0b79fe 100644 --- a/template/android/settings.gradle +++ b/template/android/settings.gradle @@ -1,4 +1,4 @@ rootProject.name = 'HelloWorld' apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' -includeBuild('../node_modules/react-native-gradle-plugin') +includeBuild('../node_modules/@react-native/gradle-plugin')