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

com.avito.plugin.SignerInterface.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
@file:Suppress("UnstableApiUsage")

package com.avito.plugin

import com.android.build.api.component.ComponentIdentity
import com.avito.android.taskName
import com.avito.kotlin.dsl.typedNamed
import org.gradle.api.tasks.TaskContainer
import org.gradle.api.tasks.TaskProvider
import java.util.Locale

internal fun signApkTaskName(variantName: String): String =
    "signApkViaService${variantName.capitalize(Locale.getDefault())}"

internal fun signApkTaskName(component: ComponentIdentity): String = taskName("signApkViaService", component)

internal fun signBundleTaskName(variantName: String): String =
    "signBundleViaService${variantName.capitalize(Locale.getDefault())}"

internal fun signBundleTaskName(component: ComponentIdentity): String = taskName("signBundleViaService", component)

public fun TaskContainer.signedApkTaskProvider(variantName: String): TaskProvider {
    return typedNamed(signApkTaskName(variantName))
}

public fun TaskContainer.signedApkTaskProvider(component: ComponentIdentity): TaskProvider {
    return typedNamed(signApkTaskName(component))
}

public fun TaskContainer.signedBundleTaskProvider(variantName: String): TaskProvider {
    return typedNamed(signBundleTaskName(variantName))
}

public fun TaskContainer.signedBundleTaskProvider(component: ComponentIdentity): TaskProvider {
    return typedNamed(signBundleTaskName(component))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy