@react-native/gradle-plugin 0.73.3 → 0.73.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.gradle.kts CHANGED
@@ -26,6 +26,10 @@ gradlePlugin {
26
26
  id = "com.facebook.react"
27
27
  implementationClass = "com.facebook.react.ReactPlugin"
28
28
  }
29
+ create("reactrootproject") {
30
+ id = "com.facebook.react.rootproject"
31
+ implementationClass = "com.facebook.react.ReactRootProjectPlugin"
32
+ }
29
33
  }
30
34
  }
31
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/gradle-plugin",
3
- "version": "0.73.3",
3
+ "version": "0.73.4",
4
4
  "description": "Gradle Plugin for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ package com.facebook.react
9
+
10
+ import org.gradle.api.Plugin
11
+ import org.gradle.api.Project
12
+
13
+ /**
14
+ * Gradle plugin applied to the `android/build.gradle` file.
15
+ *
16
+ * This plugin allows to specify project wide configurations that can be applied to both apps and
17
+ * libraries before they're evaluated.
18
+ */
19
+ class ReactRootProjectPlugin : Plugin<Project> {
20
+ override fun apply(project: Project) {
21
+ project.subprojects {
22
+ // As the :app project (i.e. ReactPlugin) configures both namespaces and JVM toolchains
23
+ // for libraries, its evaluation must happen before the libraries' evaluation.
24
+ // Eventually the configuration of namespace/JVM toolchain can be moved inside this plugin.
25
+ if (it.path != ":app") {
26
+ it.evaluationDependsOn(":app")
27
+ }
28
+ }
29
+ }
30
+ }