Skip to content

Commit

Permalink
fix: RNGP autolink not properly filter out pure C++ TurboModules
Browse files Browse the repository at this point in the history
The react-native gradle plugin didn't properly filter out
Pure C++ TurboModules for autolinking, which caused build
failures as an non-existing gradle depedency would be emitted.
  • Loading branch information
hsjoberg committed Sep 7, 2024
1 parent d687d38 commit dd55e1c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ abstract class ReactExtension @Inject constructor(val project: Project) {
?.dependencies
?.values
?.filter { it.platforms?.android !== null }
?.filterNot { it.platforms?.android?.isPureCxxDependency == true }
?.forEach { deps ->
val nameCleansed = deps.nameCleansed
val dependencyConfiguration = deps.platforms?.android?.dependencyConfiguration
Expand Down

0 comments on commit dd55e1c

Please sign in to comment.