PropertyResolver

class PropertyResolver(project: Project, startParameterProperty: (String) -> Provider<String> = project.emptyStringProvider(), globalLocalProperty: (String) -> Provider<String> = project.emptyStringProvider())(source)

A property resolver that handles multiple property sources.

Constructors

Link copied to clipboard
constructor(project: Project, startParameterProperty: (String) -> Provider<String> = project.emptyStringProvider(), globalLocalProperty: (String) -> Provider<String> = project.emptyStringProvider())

Functions

Link copied to clipboard
fun booleanProvider(key: String): Provider<Boolean>
fun booleanProvider(key: String, defaultValue: Boolean = false): Provider<Boolean>
fun booleanProvider(key: String, defaultValue: Provider<Boolean>): Provider<Boolean>
Link copied to clipboard
fun booleanValue(key: String, defaultValue: Boolean = false): Boolean
fun booleanValue(key: String, defaultValue: Provider<Boolean>): Boolean
Link copied to clipboard
fun intProvider(key: String, defaultValue: Int = -1): Provider<Int>
fun intProvider(key: String, defaultValue: Provider<Int>): Provider<Int>
Link copied to clipboard
fun intValue(key: String, defaultValue: Int = -1): Int
fun intValue(key: String, defaultValue: Provider<Int>): Int
Link copied to clipboard
fun optionalStringProvider(key: String): Provider<String>
fun optionalStringProvider(key: String, defaultValue: String? = null): Provider<String>
Link copied to clipboard
fun optionalStringValue(key: String, defaultValue: String? = null): String?
Link copied to clipboard
fun providerFor(key: String): Provider<String>

Returns a "safe" property Provider mechanism that handles multiple property sources in a hierarchical fashion.

Link copied to clipboard
fun stringValue(key: String, defaultValue: String): String