com.avito.plugin.SignerInterface.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signer Show documentation
Show all versions of signer Show documentation
Collection of infrastructure libraries and gradle plugins of Avito Android project
@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
internal fun signApkTaskName(variantName: String): String = "signApkViaService${variantName.capitalize()}"
internal fun signApkTaskName(component: ComponentIdentity): String = taskName("signApkViaService", component)
internal fun signBundleTaskName(variantName: String): String = "signBundleViaService${variantName.capitalize()}"
internal fun signBundleTaskName(component: ComponentIdentity): String = taskName("signBundleViaService", component)
fun TaskContainer.signedApkTaskProvider(variantName: String): TaskProvider {
return typedNamed(signApkTaskName(variantName))
}
fun TaskContainer.signedApkTaskProvider(component: ComponentIdentity): TaskProvider {
return typedNamed(signApkTaskName(component))
}
fun TaskContainer.signedBundleTaskProvider(variantName: String): TaskProvider {
return typedNamed(signBundleTaskName(variantName))
}
fun TaskContainer.signedBundleTaskProvider(component: ComponentIdentity): TaskProvider {
return typedNamed(signBundleTaskName(component))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy