Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}


// Custom dependency configuration for ktlint
val ktlint by configurations.creating

Expand Down Expand Up @@ -164,6 +163,11 @@ tasks.register<Checkstyle>("runCheckstyle") {
xml.required = true
html.required = true
}

// run checkstyle for extractor when it is built from source
if (gradle.extra.has("extractorIncluded")) {
dependsOn(gradle.includedBuild("NewPipeExtractor").task(":extractor:checkstyleMain"))
}
}

val outputDir = project.layout.buildDirectory.dir("reports/ktlint/")
Expand Down
7 changes: 4 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ dependencyResolutionManagement {
maven(url = "https://repo.clojars.org")
}
}
include (":app")
include(":app")

// Use a local copy of NewPipe Extractor by uncommenting the lines below.
// We assume, that NewPipe and NewPipe Extractor have the same parent directory.
// If this is not the case, please change the path in includeBuild().

//includeBuild("../NewPipeExtractor") {
// includeBuild("../NewPipeExtractor") {
// dependencySubstitution {
// substitute(module("com.github.TeamNewPipe:NewPipeExtractor"))
// .using(project(":extractor"))
// }
//}
// }
// gradle.extra["extractorIncluded"] = true