blob: 13d401cb36fd5fd9c897674d25bf95a5aa198896 [file] [log] [blame]
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.build.api.dsl
import org.gradle.api.Named
/** DSL object to configure signing configs. */
interface ApkSigningConfig: SigningConfig, Named {
/**
* Whether signing using JAR Signature Scheme (aka v1 signing) is enabled.
*
* See [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html)
*/
@Deprecated("This property is deprecated", ReplaceWith("enableV1Signing"))
var isV1SigningEnabled: Boolean
/**
* Whether signing using APK Signature Scheme v2 (aka v2 signing) is enabled.
*
* See [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html)
*/
@Deprecated("This property is deprecated", ReplaceWith("enableV2Signing"))
var isV2SigningEnabled: Boolean
/**
* Enable signing using JAR Signature Scheme (aka v1 signing). If null, a default value is used.
*
* See [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html)
*/
var enableV1Signing: Boolean?
/**
* Enable signing using APK Signature Scheme v2 (aka v2 signing). If null, a default value is
* used.
*
* See [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html)
*/
var enableV2Signing: Boolean?
/**
* Enable signing using APK Signature Scheme v3 (aka v3 signing). If null, a default value is
* used.
*
* See [APK Signature Scheme v3](https://source.android.com/security/apksigning/v3)
*/
var enableV3Signing: Boolean?
/**
* Enable signing using APK Signature Scheme v4 (aka v4 signing). If null, a default value is
* used.
*/
var enableV4Signing: Boolean?
}