Skip to content

Commit

Permalink
check if Input is required
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Aug 13, 2024
1 parent 7df625a commit 91bbfed
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,14 @@ import javax.inject.Inject

abstract class CopySekretNativeBinaryTask : DefaultTask() {

@get:Input
open val enabled: Property<Boolean> = project.objects.property(Boolean::class.java)

@get:InputDirectory
open val buildDirectory: DirectoryProperty = project.objects.directoryProperty()

@get:InputDirectory
open val sekretDirectory: DirectoryProperty = project.objects.directoryProperty()

@get:OutputDirectory
open val androidDirectory: DirectoryProperty = project.objects.directoryProperty()

@get:OutputDirectory
open val desktopComposeDirectory: DirectoryProperty = project.objects.directoryProperty()

@get:Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,12 @@ import javax.inject.Inject

open class GenerateSekretBuildScriptTask : DefaultTask() {

@get:Input
open val enabled: Property<Boolean> = project.objects.property(Boolean::class.java)

@get:Input
open val packageName: Property<String> = project.objects.property(String::class.java)

@get:Input
open val targets: SetProperty<Target> = project.objects.setProperty(Target::class.java)

@get:OutputDirectory
open val outputDirectory: DirectoryProperty = project.objects.directoryProperty()

@get:Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,19 @@ import javax.inject.Inject

open class GenerateSekretTask : DefaultTask() {

@get:Input
open val enabled: Property<Boolean> = project.objects.property(Boolean::class.java)

@get:Input
open val packageName: Property<String> = project.objects.property(String::class.java)

@get:Input
open val targets: SetProperty<Target> = project.objects.setProperty(Target::class.java)

@get:Input
open val encryptionKey: Property<String> = project.objects.property(String::class.java)

@get:OutputDirectory
open val outputDirectory: DirectoryProperty = project.objects.directoryProperty()

@get:Inject
open val projectLayout: ProjectLayout = project.layout

@get:InputFile
open val propertiesFile: RegularFileProperty = project.objects.fileProperty()

private val outputDir: File
Expand Down

0 comments on commit 91bbfed

Please sign in to comment.