SigningConfig

Added in 4.2.0

interface SigningConfig


Defines a variant's signing config.

Summary

Public functions

Unit

Sets the com.android.build.api.variant.SigningConfigInfo provider with information on how to retrieve the signing configuration lazily.

Unit
@Incubating
from(signingConfig: SigningConfig)

Sets the com.android.build.api.dsl.SigningConfig with information on how to retrieve the signing configuration.

Unit

This function is deprecated. Use from(SigningConfig) instead

Public properties

Property<Boolean>

Enable signing using JAR Signature Scheme (aka v1 signing).

Property<Boolean>

Enable signing using APK Signature Scheme v2 (aka v2 signing).

Property<Boolean>

Enable signing using APK Signature Scheme v3 (aka v3 signing).

Property<Boolean>

Enable signing using APK Signature Scheme v4 (aka v4 signing).

Public functions

from

Added in 9.4.0-alpha01
@Incubating
fun from(provider: Provider<SigningConfigInfo>): Unit

Sets the com.android.build.api.variant.SigningConfigInfo provider with information on how to retrieve the signing configuration lazily.

from

Added in 9.4.0-alpha01
@Incubating
fun from(signingConfig: SigningConfig): Unit

Sets the com.android.build.api.dsl.SigningConfig with information on how to retrieve the signing configuration.

setConfig

Added in 7.1.0
Deprecated in 9.4.0-alpha01
@Incubating
fun setConfig(signingConfig: SigningConfig): Unit

Sets the com.android.build.api.dsl.SigningConfig with information on how to retrieve the signing configuration.

Public properties

enableV1Signing

Added in 4.2.0
val enableV1SigningProperty<Boolean>

Enable signing using JAR Signature Scheme (aka v1 signing).

See Signing Your Applications

This property will override any value set using the corresponding DSL.

enableV2Signing

Added in 4.2.0
val enableV2SigningProperty<Boolean>

Enable signing using APK Signature Scheme v2 (aka v2 signing).

See Signing Your Applications

This property will override any value set using the corresponding DSL.

enableV3Signing

Added in 4.2.0
val enableV3SigningProperty<Boolean>

Enable signing using APK Signature Scheme v3 (aka v3 signing).

See APK Signature Scheme v3

This property will override any value set using the corresponding DSL.

enableV4Signing

Added in 4.2.0
val enableV4SigningProperty<Boolean>

Enable signing using APK Signature Scheme v4 (aka v4 signing).

This property will override any value set using the corresponding DSL.