ApplicationBaseFlavor

@Incubating interface ApplicationBaseFlavor : BaseFlavor, ApplicationVariantDimension
com.android.build.api.dsl.ApplicationBaseFlavor

Summary

Public methods

abstract Unit
maxSdkVersion(maxSdkVersion: Int)

abstract Unit
setTargetSdkVersion(targetSdkVersion: String?)

abstract Unit
targetSdkVersion(targetSdkVersion: Int)

abstract Unit
targetSdkVersion(targetSdkVersion: String?)

Inherited functions

Properties

abstract String?

The application ID.

abstract Int?

The maxSdkVersion, or null if not specified.

abstract Int?

The target SDK version.

abstract String?

The target SDK version.

abstract Int?

Version code.

abstract String?

Version name.

Inherited properties

Public methods

maxSdkVersion

abstract fun maxSdkVersion(maxSdkVersion: Int): Unit

Deprecated.

setTargetSdkVersion

abstract fun setTargetSdkVersion(targetSdkVersion: String?): Unit

Deprecated.

targetSdkVersion

abstract fun targetSdkVersion(targetSdkVersion: Int): Unit

Deprecated.

targetSdkVersion

abstract fun targetSdkVersion(targetSdkVersion: String?): Unit

Deprecated.

Properties

applicationId

abstract var applicationId: String?

The application ID.

See Set the Application ID

maxSdk

abstract var maxSdk: Int?

The maxSdkVersion, or null if not specified. This is only the value set on this produce flavor.

See uses-sdk element documentation.

targetSdk

abstract var targetSdk: Int?

The target SDK version. 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. 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.

versionCode

abstract var versionCode: Int?

Version code.

See Versioning Your Application

versionName

abstract var versionName: String?

Version name.

See Versioning Your Application