From a263aab32f723670e7026f10ad08b2906d7d27f4 Mon Sep 17 00:00:00 2001 From: Ruslan Lesiutin Date: Fri, 25 Nov 2022 07:16:58 -0800 Subject: [PATCH] refactor(react-native-gradle-plugin): rename react-native-gradle-plugin to @react-native/gradle-plugin Summary: Changelog: [General][Changed] - rename react-native-gradle-plugin to react-native/gradle-plugin Differential Revision: D41532746 fbshipit-source-id: 57b276c5cd03197937ee1a89839141da80ef5933 --- .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 67cd3dedc18e..67f855a75317 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 efc43ed0877e..929d57f68e25 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 dbe677a5740c..6d6889a80679 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 366753a6a394..5685790c1336 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 ab284c3a6bd2..c2c0717d0b79 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')