react-native/packages/gradle-plugin
Nicola Corti 1f62529dc4 Properly handle paths with spaces in autolinking (#47388)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47388

Fixes https://github.com/facebook/react-native/issues/47364
Fixes https://github.com/facebook/react-native/issues/47377
Fixes https://github.com/facebook/react-native/issues/37124

We're having problems is a path contains a space ' ' because when autolinking,
the `add_subdirectory()` function of CMake consider the path with space as 2 parameters.

This fixes it by properly quoting the path.

Changelog:
[Android] [Fixed] - Properly handle paths with spaces in autolinking

Reviewed By: cipolleschi

Differential Revision: D65434413

fbshipit-source-id: b9147482f98f7e222405cc8d9e6f3c17a5f4ed02
2024-11-05 03:32:16 -08:00
..
gradle AGP to 8.7.2 (#47369) 2024-11-04 05:57:22 -08:00
react-native-gradle-plugin Properly handle paths with spaces in autolinking (#47388) 2024-11-05 03:32:16 -08:00
settings-plugin Bump Kotlin 1.9.x to 2.0.x (#46955) 2024-10-11 05:34:02 -07:00
shared Bump Kotlin 1.9.x to 2.0.x (#46955) 2024-10-11 05:34:02 -07:00
shared-testutil Bump Kotlin 1.9.x to 2.0.x (#46955) 2024-10-11 05:34:02 -07:00
.gitignore Fix core autolinking not working on Windows (#45572) 2024-07-23 04:41:54 -07:00
build.gradle.kts RNGP - Do not apply java-gradle-plugin on root build (#46755) 2024-10-01 10:04:57 -07:00
gradle.properties
gradlew Gradle to 8.9 (#45407) 2024-07-12 09:00:39 -07:00
gradlew.bat Gradle to 8.9 (#45407) 2024-07-12 09:00:39 -07:00
package.json Bump main to 0.77 2024-09-12 09:23:23 -07:00
README.md
settings.gradle.kts Fix core autolinking not working on Windows (#45572) 2024-07-23 04:41:54 -07:00

@react-native/gradle-plugin

Version

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:

  1. yarn to install the dependencies. You just need to run this once
  2. ./gradlew -p packages/gradle-plugin test.