Stay organized with collections
Save and categorize content based on your preferences.
SigningConfig
interface SigningConfig
Defines a variant's signing config.
Summary
Properties
|
abstract Property<Boolean> |
Enable signing using JAR Signature Scheme (aka v1 signing).
|
abstract Property<Boolean> |
Enable signing using APK Signature Scheme v2 (aka v2 signing).
|
abstract Property<Boolean> |
Enable signing using APK Signature Scheme v3 (aka v3 signing).
|
abstract Property<Boolean> |
Enable signing using APK Signature Scheme v4 (aka v4 signing).
|
Public methods
Properties
enableV1Signing
abstract val enableV1Signing: Property<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
abstract val enableV2Signing: Property<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
abstract val enableV3Signing: Property<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
abstract val enableV4Signing: Property<Boolean>
Enable signing using APK Signature Scheme v4 (aka v4 signing).
This property will override any value set using the corresponding DSL.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SigningConfig\n=============\n\n```\ninterface SigningConfig\n```\n\n|--------------------------------------------------|\n| [com.android.build.api.variant.SigningConfig](#) |\n\nDefines a variant's signing config.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setConfig](#setConfig(com.android.build.api.dsl.SigningConfig))`(`signingConfig:` `[SigningConfig](../dsl/SigningConfig.html#)`)` Sets the [com.android.build.api.dsl.SigningConfig](../dsl/SigningConfig.html#) with information on how to retrieve the signing configuration. |\n\n| ### Properties ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)\\\u003e | [enableV1Signing](#enableV1Signing:org.gradle.api.provider.Property) Enable signing using JAR Signature Scheme (aka v1 signing). |\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)\\\u003e | [enableV2Signing](#enableV2Signing:org.gradle.api.provider.Property) Enable signing using APK Signature Scheme v2 (aka v2 signing). |\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)\\\u003e | [enableV3Signing](#enableV3Signing:org.gradle.api.provider.Property) Enable signing using APK Signature Scheme v3 (aka v3 signing). |\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)\\\u003e | [enableV4Signing](#enableV4Signing:org.gradle.api.provider.Property) Enable signing using APK Signature Scheme v4 (aka v4 signing). |\n\nPublic methods\n--------------\n\n### setConfig\n\n```\n@Incubating abstract fun setConfig(signingConfig: SigningConfig): Unit\n```\n\nSets the [com.android.build.api.dsl.SigningConfig](../dsl/SigningConfig.html#) with information on how to retrieve\nthe signing configuration.\n\nProperties\n----------\n\n### enableV1Signing\n\n```\nabstract val enableV1Signing: Property\u003cBoolean\u003e\n```\n\nEnable signing using JAR Signature Scheme (aka v1 signing).\n\nSee [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html)\n\nThis property will override any value set using the corresponding DSL. \n\n### enableV2Signing\n\n```\nabstract val enableV2Signing: Property\u003cBoolean\u003e\n```\n\nEnable signing using APK Signature Scheme v2 (aka v2 signing).\n\nSee [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html)\n\nThis property will override any value set using the corresponding DSL. \n\n### enableV3Signing\n\n```\nabstract val enableV3Signing: Property\u003cBoolean\u003e\n```\n\nEnable signing using APK Signature Scheme v3 (aka v3 signing).\n\nSee [APK Signature Scheme v3](https://source.android.com/security/apksigning/v3)\n\nThis property will override any value set using the corresponding DSL. \n\n### enableV4Signing\n\n```\nabstract val enableV4Signing: Property\u003cBoolean\u003e\n```\n\nEnable signing using APK Signature Scheme v4 (aka v4 signing).\n\nThis property will override any value set using the corresponding DSL."]]