Skip to content

Commit b3065e2

Browse files
committed
fix: account for variant specific configurations
1 parent a1ab2b5 commit b3065e2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/expo/ExpoPublishingHelper.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,11 @@ open class ExpoPublishingHelper(val brownfieldAppProject: Project) {
384384
pkgProject: Project,
385385
dependencies: VersionMediatingDependencySet,
386386
) {
387-
listOf("implementation", "api").forEach {
388-
val configuration = pkgProject.configurations.findByName(it)
389-
configuration?.dependencies?.forEach { dep ->
387+
val configurations = pkgProject.configurations.matching {
388+
it.name.contains("implementation", ignoreCase = true) || it.name.contains("api", ignoreCase = true)
389+
}
390+
configurations.forEach {
391+
it.dependencies.forEach { dep ->
390392
if (dep.group != null) {
391393
dependencies.add(
392394
DependencyInfo.fromGradleDep(

0 commit comments

Comments
 (0)