PrivacySandboxSdkExtension

@Incubating
public interface PrivacySandboxSdkExtension


Summary

Public methods

abstract void
abstract @NonNull String

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

abstract @NonNull PrivacySandboxSdkBundle
abstract Integer

Specifies the API level to compile your project against.

abstract Integer
abstract String
abstract @NonNull Map<@NonNull String, @NonNull Object>
abstract Integer
abstract String
abstract String

This method is deprecated. namespace is replaced with applicationId in bundle block

abstract @NonNull SigningConfig
abstract void

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

abstract void

Specifies the API level to compile your project against.

abstract void
abstract void
abstract void
abstract void
abstract void

This method is deprecated. namespace is replaced with applicationId in bundle block

abstract void

Public methods

bundle

@Incubating
abstract void bundle(
    @ExtensionFunctionType @NonNull Function1<@NonNull PrivacySandboxSdkBundleUnit> action
)

getBuildToolsVersion

@Incubating
abstract @NonNull String getBuildToolsVersion()

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.

getCompileSdk

@Incubating
abstract Integer getCompileSdk()

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.

getCompileSdkExtension

@Incubating
abstract Integer getCompileSdkExtension()

getCompileSdkPreview

@Incubating
abstract String getCompileSdkPreview()

getExperimentalProperties

@Incubating
abstract @NonNull Map<@NonNull String, @NonNull ObjectgetExperimentalProperties()

getMinSdk

@Incubating
abstract Integer getMinSdk()

getMinSdkPreview

@Incubating
abstract String getMinSdkPreview()

getNamespace

@Incubating
abstract String getNamespace()

getSigningConfig

@Incubating
abstract @NonNull SigningConfig getSigningConfig()

setBuildToolsVersion

@Incubating
abstract void setBuildToolsVersion(@NonNull String buildToolsVersion)

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.

setCompileSdk

@Incubating
abstract void setCompileSdk(Integer compileSdk)

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.

setCompileSdkExtension

@Incubating
abstract void setCompileSdkExtension(Integer compileSdkExtension)

setCompileSdkPreview

@Incubating
abstract void setCompileSdkPreview(String compileSdkPreview)

setMinSdk

@Incubating
abstract void setMinSdk(Integer minSdk)

setMinSdkPreview

@Incubating
abstract void setMinSdkPreview(String minSdkPreview)

setNamespace

@Incubating
abstract void setNamespace(String namespace)

signingConfig

@Incubating
abstract void signingConfig(
    @ExtensionFunctionType @NonNull Function1<SigningConfigUnit> action
)