Skip to content

Commit

Permalink
Fix PureAndroidAndJavaConsumeMppLibIT working with test project
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tk3y authored and Space committed Nov 10, 2021
1 parent 46af453 commit 0d1f362
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ abstract class PureAndroidAndJavaConsumeMppLibIT : BaseGradleIT() {
gradleBuildScript("Lib").apply {
writeText(
// Remove the Kotlin plugin from the consumer project to check how pure-AGP Kotlin-less consumers resolve the dependency
readText().checkedReplace("apply plugin: 'kotlin-android'", "//").let { text ->
readText().checkedReplace("id 'org.jetbrains.kotlin.android'", "//").let { text ->
// If the test case doesn't assume flavors, remove the flavor setup lines:
if (useFlavors) text else text.lines().filter { !it.trim().startsWith("flavor") }.joinToString("\n")
} + "\n" + """
Expand Down

0 comments on commit 0d1f362

Please sign in to comment.