LibraryBaseFlavor

interface LibraryBaseFlavor : BaseFlavor, LibraryVariantDimension
com.android.build.api.dsl.LibraryBaseFlavor

Summary

Public methods

abstract Unit
setTargetSdkVersion(targetSdkVersion: String?)

abstract Unit
targetSdkVersion(targetSdkVersion: Int)

abstract Unit
targetSdkVersion(targetSdkVersion: String?)

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

Public methods

setTargetSdkVersion

@Incubating abstract fun setTargetSdkVersion(targetSdkVersion: String?): Unit

Deprecated.

targetSdkVersion

@Incubating abstract fun targetSdkVersion(targetSdkVersion: Int): Unit

Deprecated.

targetSdkVersion

@Incubating abstract fun targetSdkVersion(targetSdkVersion: String?): Unit

Deprecated.

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.