MinCompileSdkSpec

Added in 9.2.0-alpha02

interface MinCompileSdkSpec


Specifies the minimum compileSdk this Gradle project imposes on projects that depend on it, both within the same build and when publishing AARs.

This defaults to the compile SDK of your project. If you set this value to lower than your compileSdk, you should take care to only use Android APIs from that lower API level to not create problems (such as with dexing and resource references) to projects that depend on your library.

Summary

Public functions

CompileSdkVersion
release(version: Int)

To set min compile SDK version with a released API level, use this function to compute the CompileSdkVersion and assign it to MinCompileSdkSpec.version property.

CompileSdkVersion
release(version: Int, action: CompileSdkReleaseSpec.() -> Unit)

To set min compile SDK version with a released API level, use this function to compute the CompileSdkVersion and assign it to MinCompileSdkSpec.version property.

Public properties

CompileSdkVersion?

The min compile SDK version set for this project.

Public functions

release

Added in 9.2.0-alpha02
fun release(version: Int): CompileSdkVersion

To set min compile SDK version with a released API level, use this function to compute the CompileSdkVersion and assign it to MinCompileSdkSpec.version property.

release

Added in 9.2.0-alpha02
fun release(version: Int, action: CompileSdkReleaseSpec.() -> Unit): CompileSdkVersion

To set min compile SDK version with a released API level, use this function to compute the CompileSdkVersion and assign it to MinCompileSdkSpec.version property. You can also set minor API level and SDK extension level via CompileSdkReleaseSpec block.

Public properties

version

Added in 9.2.0-alpha02
var versionCompileSdkVersion?

The min compile SDK version set for this project.