mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
feat: add comments
This commit is contained in:
+3
-1
@@ -260,7 +260,9 @@ class ReactPlugin : Plugin<Project> {
|
||||
project.tasks.named("preBuild", Task::class.java).dependsOn(generatePackageListTask)
|
||||
|
||||
// We tell Android Gradle Plugin that inside /build/generated/autolinking/src/main/java there
|
||||
// are sources to be compiled as well.
|
||||
// are sources to be compiled as well. We only compile this code if project is not a library.
|
||||
// Without this, the compiler will link the generated files to each of the library including
|
||||
// the ones from OSS, which is not expected.
|
||||
if (!isLibrary) {
|
||||
project.extensions.getByType(AndroidComponentsExtension::class.java).apply {
|
||||
onVariants(selector().all()) { variant ->
|
||||
|
||||
Reference in New Issue
Block a user