SigningConfig

public interface SigningConfig


Defines a variant's signing config.

Summary

Public methods

abstract @NonNull Property<@NonNull Boolean>

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

abstract @NonNull Property<@NonNull Boolean>

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

abstract @NonNull Property<@NonNull Boolean>

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

abstract @NonNull Property<@NonNull Boolean>

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

abstract void

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

Public methods

getEnableV1Signing

abstract @NonNull Property<@NonNull BooleangetEnableV1Signing()

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

See Signing Your Applications

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

getEnableV2Signing

abstract @NonNull Property<@NonNull BooleangetEnableV2Signing()

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.

getEnableV3Signing

abstract @NonNull Property<@NonNull BooleangetEnableV3Signing()

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.

getEnableV4Signing

abstract @NonNull Property<@NonNull BooleangetEnableV4Signing()

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

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

setConfig

@Incubating
abstract void setConfig(@NonNull SigningConfig signingConfig)

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