All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avito.plugin.SignBundleTask.kt Maven / Gradle / Ivy

Go to download

Collection of infrastructure libraries and gradle plugins of Avito Android project

There is a newer version: 2022.1
Show newest version
package com.avito.plugin

import org.gradle.api.file.RegularFileProperty
import org.gradle.api.model.ObjectFactory
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.OutputFile
import java.io.File
import javax.inject.Inject

@Suppress("UnstableApiUsage")
abstract class SignBundleTask @Inject constructor(objects: ObjectFactory) : SignArtifactTask(objects) {

    @InputFile
    val unsignedFileProperty: RegularFileProperty = objects.fileProperty()

    @OutputFile
    val signedFileProperty: RegularFileProperty = objects.fileProperty()

    override fun unsignedFile(): File {
        return unsignedFileProperty.get().asFile
    }

    override fun signedFile(): File {
        return signedFileProperty.get().asFile
    }

    override fun hackForArtifactsApi() {
        signedFile().copyTo(unsignedFile(), overwrite = true)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy