KitePlatformExtension

What every platform block shares: the app facts it may differ on.

A platform block holds two kinds of thing. Differences from the shared facts live here. Settings that mean nothing anywhere else live on the block itself, so sdk(...) exists only on Android and roundMac only on desktop.

kiteConfig {
appName = "Jetzy"
appId = "com.example.jetzy"

android {
appId { suffix = ".android" } // com.example.jetzy.android
}
desktop {
appName = "Jetzy Desktop" // only this platform differs
}
}

Nothing is copied when the block opens. A leaf you do not set here keeps following the shared value, whichever order the two were written in.

See also

for the suffix and the delivery switch.

for the name's delivery switch.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val appId: Property<String>

The exact application identifier on this platform.

Link copied to clipboard
abstract val appName: Property<String>

The display name on this platform. Unset means the shared appName.

Link copied to clipboard
abstract val autoApply: Property<Boolean>

Apply this platform's source changes automatically. Unset means the shared autoApply.

Link copied to clipboard
abstract val platform: KitePlatform
Link copied to clipboard
abstract val version: Property<String>

The release version on this platform. Unset means the shared version.

Functions

Link copied to clipboard
fun appId(action: Action<in KiteAppIdScope>)

This platform's identifier suffix and delivery switch.

Link copied to clipboard
fun appName(action: Action<in KiteAppNameScope>)

Whether this platform receives the app name.

Link copied to clipboard
fun version(action: Action<in KitePlatformVersionScope>)

This platform's build number, counter, scheme, and delivery switch.