Skip to content

Commit

Permalink
fix(CocoaPods): Added Sub Dependency Tracking for CocoaPods
Browse files Browse the repository at this point in the history
Signed-off-by: ksg97031 <[email protected]>
  • Loading branch information
ksg97031 committed Sep 21, 2023
1 parent 9267139 commit 0cccd1a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ private val NAME_AND_VERSION_REGEX = "(\\S+)\\s+(.*)".toRegex()

private fun getPackageReferences(podfileLock: File): Set<PackageReference> {
val versionForName = mutableMapOf<String, String>()
val dependenciesForName = mutableMapOf<String, MutableSet<String>>()
val root = yamlMapper.readTree(podfileLock)

root.get("PODS").asIterable().forEach { node ->
val entry = when (node) {
is ObjectNode -> node.fieldNames().asSequence().first()
Expand Down Expand Up @@ -267,7 +270,6 @@ private fun getPackageReferences(podfileLock: File): Set<PackageReference> {
}
}
}
}

fun createPackageReference(name: String): PackageReference =
PackageReference(
Expand Down

0 comments on commit 0cccd1a

Please sign in to comment.