Stay organized with collections
Save and categorize content based on your preferences.
SigningConfig
interface SigningConfig
DSL object for configuring options related to signing for APKs and bundles.
ApkSigningConfig
extends this with options relating to just APKs
Summary
Public functions |
@Incubating Unit |
Copies all properties from the given signing config.
|
Public properties |
String? |
Key alias used when signing.
|
String? |
Key password used when signing.
|
File? |
Store file used when signing.
|
String? |
Store password used when signing.
|
String? |
Store type used when signing.
|
Public functions
Public properties
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\nKnown direct subclasses \n[ApkSigningConfig](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/ApkSigningConfig) \n\n|------------------------------------------------------------------------------------------------|------------------------------------------|\n| [ApkSigningConfig](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/ApkSigningConfig) | DSL object to configure signing configs. |\n\n*** ** * ** ***\n\nDSL object for configuring options related to signing for APKs and bundles.\n\n[ApkSigningConfig](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/ApkSigningConfig) extends this with options relating to just APKs\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) | [initWith](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/SigningConfig#initWith(com.android.build.api.dsl.SigningConfig))`(that: `[SigningConfig](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/SigningConfig)`?)` Copies all properties from the given signing config. |\n\n| ### Public properties ||\n|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [keyAlias](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/SigningConfig#keyAlias()) Key alias used when signing. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [keyPassword](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/SigningConfig#keyPassword()) Key password used when signing. |\n| [File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)`?` | [storeFile](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/SigningConfig#storeFile()) Store file used when signing. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [storePassword](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/SigningConfig#storePassword()) Store password used when signing. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [storeType](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/SigningConfig#storeType()) Store type used when signing. |\n\nPublic functions\n----------------\n\n### initWith\n\n```\n@Incubating\nfun initWith(that: SigningConfig?): Unit\n```\n\nCopies all properties from the given signing config.\n\nPublic properties\n-----------------\n\n### keyAlias\n\n```\nval keyAlias: String?\n```\n\nKey alias used when signing.\n\nSee [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html) \n\n### keyPassword\n\n```\nval keyPassword: String?\n```\n\nKey password used when signing.\n\nSee [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html) \n\n### storeFile\n\n```\nval storeFile: File?\n```\n\nStore file used when signing.\n\nSee [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html) \n\n### storePassword\n\n```\nval storePassword: String?\n```\n\nStore password used when signing.\n\nSee [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html) \n\n### storeType\n\n```\nval storeType: String?\n```\n\nStore type used when signing.\n\nSee [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html)"]]