Stay organized with collections
Save and categorize content based on your preferences.
SigningConfig
interface SigningConfig
Defines a variant's signing config.
Summary
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
Public properties
enableV4Signing
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SigningConfig\n=============\n\n\n```\ninterface SigningConfig\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDefines a variant's signing config.\n\nSummary\n-------\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setConfig](/reference/tools/gradle-api/8.2/com/android/build/api/variant/SigningConfig#setConfig(com.android.build.api.dsl.SigningConfig))`(signingConfig: `[SigningConfig](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/SigningConfig)`)` Sets the [com.android.build.api.dsl.SigningConfig](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/SigningConfig) with information on how to retrieve the signing configuration. |\n\n| ### Public properties ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [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](/reference/tools/gradle-api/8.2/com/android/build/api/variant/SigningConfig#enableV1Signing()) Enable signing using JAR Signature Scheme (aka v1 signing). |\n| [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](/reference/tools/gradle-api/8.2/com/android/build/api/variant/SigningConfig#enableV2Signing()) Enable signing using APK Signature Scheme v2 (aka v2 signing). |\n| [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](/reference/tools/gradle-api/8.2/com/android/build/api/variant/SigningConfig#enableV3Signing()) Enable signing using APK Signature Scheme v3 (aka v3 signing). |\n| [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](/reference/tools/gradle-api/8.2/com/android/build/api/variant/SigningConfig#enableV4Signing()) Enable signing using APK Signature Scheme v4 (aka v4 signing). |\n\nPublic functions\n----------------\n\n### setConfig\n\n```\n@Incubating\nfun setConfig(signingConfig: SigningConfig): Unit\n```\n\nSets the [com.android.build.api.dsl.SigningConfig](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/SigningConfig) with information on how to retrieve the signing configuration.\n\nPublic properties\n-----------------\n\n### enableV1Signing\n\n```\nval 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```\nval 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```\nval 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```\nval 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."]]