Skip to content

Commit 81c0c72

Browse files
committed
Remove unnecessary internal dependency detection
1 parent a689db8 commit 81c0c72

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

projectguard/src/main/kotlin/com/rubensousa/projectguard/plugin/internal/DependencyGraphBuilder.kt

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,10 @@ internal class DependencyGraphBuilder {
6969
}
7070

7171
is ExternalModuleDependency -> {
72-
if (dependency.group == null) {
73-
// Java/Kotlin libraries provided to android modules are treated as external modules
74-
// TODO: Improve detection
75-
graph.addInternalDependency(
76-
module = moduleId,
77-
dependency = ":${dependency.name}:${dependency.versionConstraint.displayName}"
78-
)
79-
} else {
80-
graph.addExternalDependency(
81-
module = moduleId,
82-
dependency = "${dependency.group}:${dependency.name}",
83-
)
84-
}
72+
graph.addExternalDependency(
73+
module = moduleId,
74+
dependency = "${dependency.group}:${dependency.name}",
75+
)
8576
}
8677
}
8778
}

sample/android/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ android {
1818
}
1919

2020
dependencies {
21-
implementation(":domain:a")
21+
implementation(project(":domain:a"))
2222
testImplementation(libs.junit)
2323
androidTestImplementation(project(":legacy:a"))
2424
}

0 commit comments

Comments
 (0)