@react-native/gradle-plugin 0.73.3 → 0.73.5
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
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import org.gradle.api.internal.classpath.ModuleRegistry
|
|
9
9
|
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
|
10
|
-
import org.gradle.configurationcache.extensions.serviceOf
|
|
11
10
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
12
11
|
|
|
13
12
|
plugins {
|
|
@@ -26,6 +25,10 @@ gradlePlugin {
|
|
|
26
25
|
id = "com.facebook.react"
|
|
27
26
|
implementationClass = "com.facebook.react.ReactPlugin"
|
|
28
27
|
}
|
|
28
|
+
create("reactrootproject") {
|
|
29
|
+
id = "com.facebook.react.rootproject"
|
|
30
|
+
implementationClass = "com.facebook.react.ReactRootProjectPlugin"
|
|
31
|
+
}
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
|
|
@@ -44,14 +47,6 @@ dependencies {
|
|
|
44
47
|
implementation(libs.javapoet)
|
|
45
48
|
|
|
46
49
|
testImplementation(libs.junit)
|
|
47
|
-
|
|
48
|
-
testRuntimeOnly(
|
|
49
|
-
files(
|
|
50
|
-
serviceOf<ModuleRegistry>()
|
|
51
|
-
.getModule("gradle-tooling-api-builders")
|
|
52
|
-
.classpath
|
|
53
|
-
.asFiles
|
|
54
|
-
.first()))
|
|
55
50
|
}
|
|
56
51
|
|
|
57
52
|
// We intentionally don't build for Java 17 as users will see a cryptic bytecode version
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|