mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 00:07:05 +05:30
refactor(build-logic): cleanup Detekt issues
This commit is contained in:
parent
d963fd8ae4
commit
6ee00f6a27
2 changed files with 1 additions and 9 deletions
|
@ -50,12 +50,4 @@ class ApplicationPlugin : Plugin<Project> {
|
|||
project.configureBuildSigning()
|
||||
}
|
||||
}
|
||||
|
||||
private fun Project.isSnapshot(): Boolean {
|
||||
with(project.providers) {
|
||||
val workflow = environmentVariable("GITHUB_WORKFLOW")
|
||||
val snapshot = environmentVariable("SNAPSHOT")
|
||||
return workflow.isPresent || snapshot.isPresent
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ abstract class CollectApksTask : DefaultTask() {
|
|||
val outputDir = outputDirectory.asFile.get()
|
||||
outputDir.mkdirs()
|
||||
val builtArtifacts =
|
||||
builtArtifactsLoader.get().load(apkFolder.get()) ?: throw RuntimeException("Cannot load APKs")
|
||||
builtArtifactsLoader.get().load(apkFolder.get()) ?: error("Cannot load APKs")
|
||||
builtArtifacts.elements.forEach { artifact ->
|
||||
Files.copy(
|
||||
Paths.get(artifact.outputFile),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue