ApkSigningConfig

public interface ApkSigningConfig extends SigningConfig, Named


DSL object to configure signing configs.

Summary

Public methods

abstract Boolean

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

abstract Boolean

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

abstract Boolean

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

abstract Boolean

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

abstract boolean

Whether signing using JAR Signature Scheme (aka v1 signing) is enabled.

abstract boolean

Whether signing using APK Signature Scheme v2 (aka v2 signing) is enabled.

abstract void
setEnableV1Signing(Boolean enableV1Signing)

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

abstract void
setEnableV2Signing(Boolean enableV2Signing)

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

abstract void
setEnableV3Signing(Boolean enableV3Signing)

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

abstract void
setEnableV4Signing(Boolean enableV4Signing)

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

abstract void
setV1SigningEnabled(boolean isV1SigningEnabled)

Whether signing using JAR Signature Scheme (aka v1 signing) is enabled.

abstract void
setV2SigningEnabled(boolean isV2SigningEnabled)

Whether signing using APK Signature Scheme v2 (aka v2 signing) is enabled.

Inherited methods

From org.gradle.api.Named
abstract @NonNull String
From com.android.build.api.dsl.SigningConfig
abstract String

Key alias used when signing.

abstract String

Key password used when signing.

abstract File

Store file used when signing.

abstract String

Store password used when signing.

abstract String

Store type used when signing.

abstract void

Copies all properties from the given signing config.

abstract void
setKeyAlias(String keyAlias)

Key alias used when signing.

abstract void
setKeyPassword(String keyPassword)

Key password used when signing.

abstract void
setStoreFile(File storeFile)

Store file used when signing.

abstract void
setStorePassword(String storePassword)

Store password used when signing.

abstract void
setStoreType(String storeType)

Store type used when signing.

Public methods

getEnableV1Signing

abstract Boolean getEnableV1Signing()

Enable signing using JAR Signature Scheme (aka v1 signing). If null, a default value is used.

See Signing Your Applications

getEnableV2Signing

abstract Boolean getEnableV2Signing()

Enable signing using APK Signature Scheme v2 (aka v2 signing). If null, a default value is used.

See Signing Your Applications

getEnableV3Signing

abstract Boolean getEnableV3Signing()

Enable signing using APK Signature Scheme v3 (aka v3 signing). If null, a default value is used.

See APK Signature Scheme v3

getEnableV4Signing

abstract Boolean getEnableV4Signing()

Enable signing using APK Signature Scheme v4 (aka v4 signing). If null, a default value is used.

isV1SigningEnabled

abstract boolean isV1SigningEnabled()

Whether signing using JAR Signature Scheme (aka v1 signing) is enabled.

See Signing Your Applications

isV2SigningEnabled

abstract boolean isV2SigningEnabled()

Whether signing using APK Signature Scheme v2 (aka v2 signing) is enabled.

See Signing Your Applications

setEnableV1Signing

abstract void setEnableV1Signing(Boolean enableV1Signing)

Enable signing using JAR Signature Scheme (aka v1 signing). If null, a default value is used.

See Signing Your Applications

setEnableV2Signing

abstract void setEnableV2Signing(Boolean enableV2Signing)

Enable signing using APK Signature Scheme v2 (aka v2 signing). If null, a default value is used.

See Signing Your Applications

setEnableV3Signing

abstract void setEnableV3Signing(Boolean enableV3Signing)

Enable signing using APK Signature Scheme v3 (aka v3 signing). If null, a default value is used.

See APK Signature Scheme v3

setEnableV4Signing

abstract void setEnableV4Signing(Boolean enableV4Signing)

Enable signing using APK Signature Scheme v4 (aka v4 signing). If null, a default value is used.

setV1SigningEnabled

abstract void setV1SigningEnabled(boolean isV1SigningEnabled)

Whether signing using JAR Signature Scheme (aka v1 signing) is enabled.

See Signing Your Applications

setV2SigningEnabled

abstract void setV2SigningEnabled(boolean isV2SigningEnabled)

Whether signing using APK Signature Scheme v2 (aka v2 signing) is enabled.

See Signing Your Applications