PrivacySandboxSdkExtension

Added in 7.4.1

@Incubating
interface PrivacySandboxSdkExtension


Summary

Public functions

Unit
Unit
@Incubating
lint(action: Lint.() -> Unit)

Specifies options for the lint tool.

Unit

Specifies options for the R8/D8 optimization tool.

Unit

Public properties

String

Specifies the version of the SDK Build Tools to use when building your project.

PrivacySandboxSdkBundle
Int?

Specifies the API level to compile your project against.

Int?
String?
MutableMap<StringAny>
Lint

Specifies options for the lint tool.

Int?
String?
String?
PrivacySandboxSdkOptimization

Specifies options for the R8/D8 optimization tool.

SigningConfig
Int?

Public functions

bundle

Added in 7.4.1
@Incubating
fun bundle(action: PrivacySandboxSdkBundle.() -> Unit): Unit

lint

Added in 8.8.0-alpha09
@Incubating
fun lint(action: Lint.() -> Unit): Unit

Specifies options for the lint tool.

For more information about the properties you can configure in this block, see Lint.

optimization

Added in 8.4.0
@Incubating
fun optimization(action: PrivacySandboxSdkOptimization.() -> Unit): Unit

Specifies options for the R8/D8 optimization tool.

For more information about the properties you can configure in this block, see PrivacySandboxSdkOptimization.

signingConfig

Added in 8.1.0
@Incubating
fun signingConfig(action: SigningConfig?.() -> Unit): Unit

Public properties

buildToolsVersion

Added in 7.4.1
var buildToolsVersionString

Specifies the version of the SDK Build Tools to use when building your project.

By default, the plugin uses the minimum version of the build tools required by the version of the plugin you're using. To specify a different version of the build tools for the plugin to use, specify the version as follows:

android {
// Specifying this property is optional.
buildToolsVersion "26.0.0"
}

For a list of build tools releases, read the release notes.

Note that the value assigned to this property is parsed and stored in a normalized form, so reading it back may give a slightly different result.

bundle

Added in 7.4.1
val bundlePrivacySandboxSdkBundle

compileSdk

Added in 7.4.1
var compileSdkInt?

Specifies the API level to compile your project against. The Android plugin requires you to configure this property.

This means your code can use only the Android APIs included in that API level and lower. You can configure the compile sdk version by adding the following to the android block: compileSdk = 26.

You should generally use the most up-to-date API level available. If you are planning to also support older API levels, it's good practice to use the Lint tool to check if you are using APIs that are not available in earlier API levels.

The value you assign to this property is parsed and stored in a normalized form, so reading it back may return a slightly different value.

compileSdkExtension

Added in 7.4.1
var compileSdkExtensionInt?

compileSdkPreview

Added in 7.4.1
var compileSdkPreviewString?

experimentalProperties

Added in 8.2.0
val experimentalPropertiesMutableMap<StringAny>

lint

Added in 8.8.0-alpha09
val lintLint

Specifies options for the lint tool.

Android Studio and the Android SDK provide a code scanning tool called lint that can help you to identify and correct problems with the structural quality of your code without having to execute the app or write test cases. Each problem the tool detects is reported with a description message and a severity level, so that you can quickly prioritize the critical improvements that need to be made.

This property allows you to configure certain lint options, such as which checks to run or ignore. If you're using Android Studio, you can configure similar lint options from the IDE.

To learn more about using and running lint, read Improve Your Code with Lint.

See also
LintOptions

minSdk

Added in 7.4.1
var minSdkInt?

minSdkPreview

Added in 7.4.1
var minSdkPreviewString?

namespace

Added in 7.4.1
Deprecated in 7.4.1
var namespaceString?

optimization

Added in 8.4.0
val optimizationPrivacySandboxSdkOptimization

Specifies options for the R8/D8 optimization tool.

For more information about the properties you can configure in this block, see PrivacySandboxSdkOptimization.

signingConfig

Added in 8.1.0
val signingConfigSigningConfig

targetSdk

Added in 8.8.0-alpha09
var targetSdkInt?