You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/expo/ExpoPublishingHelper.kt
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -353,18 +353,16 @@ open class ExpoPublishingHelper(val brownfieldAppProject: Project) {
353
353
depNodeList.childNodes.forEach { depNode ->
354
354
/**
355
355
* below: some nodes are not dependencies, but pure text, in which case their name is '#text'
356
-
*
357
-
* Only add dependencies with compile scope, if scope is null, default to compile
358
356
*/
359
-
val scope = depNode.getChildNodeByName("scope")?.textContent
360
-
if (depNode.nodeName =="dependency"&& (scope ==null|| scope =="compile")) {
357
+
if (depNode.nodeName =="dependency") {
361
358
val groupId = depNode.getChildNodeByName("groupId")!!.textContent
362
359
val maybeArtifactId = depNode.getChildNodeByName("artifactId")
363
360
364
361
val artifactId = maybeArtifactId!!.textContent
365
362
val version = depNode.getChildNodeByName("version")?.textContent
366
363
val optional = depNode.getChildNodeByName("optional")?.textContent
367
-
364
+
val scope = depNode.getChildNodeByName("scope")?.textContent
365
+
368
366
val dependencyInfo =
369
367
DependencyInfo(
370
368
groupId = groupId,
@@ -384,8 +382,25 @@ open class ExpoPublishingHelper(val brownfieldAppProject: Project) {
384
382
pkgProject:Project,
385
383
dependencies:VersionMediatingDependencySet,
386
384
) {
385
+
val excludedConfigurationNameParts =
386
+
setOf(
387
+
"test",
388
+
"androidTest",
389
+
"kapt",
390
+
"annotationProcessor",
391
+
"lint",
392
+
"detached",
393
+
)
387
394
val configurations = pkgProject.configurations.matching {
0 commit comments