Android 12 Developer Preview is here! Try it out, and give us your feedback!

LibraryBaseFlavor

@Incubating interface LibraryBaseFlavor<SigningConfigT : ApkSigningConfig> : BaseFlavor, LibraryVariantDimension<SigningConfigT>
com.android.build.api.dsl.LibraryBaseFlavor

Summary

Inherited functions

Properties

abstract Int?

The target SDK version used for building the test APK.

abstract String?

The target SDK version used for building the test APK.

Inherited properties

Properties

targetSdk

abstract var targetSdk: Int?

The target SDK version used for building the test APK.

This is propagated in the library manifest, but that is only advisory for libraries that depend on this library.

Setting this it will override previous calls of targetSdk and targetSdkPreview setters. Only one of targetSdk and targetSdkPreview should be set.

See uses-sdk element documentation.

targetSdkPreview

abstract var targetSdkPreview: String?

The target SDK version used for building the test APK.

This is propagated in the library manifest, but that is only advisory for libraries that depend on this library.

Setting this it will override previous calls of targetSdk and targetSdkPreview setters. Only one of targetSdk and targetSdkPreview should be set.

See uses-sdk element documentation.