All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.co.touchlab.skie.plugin.defaultarguments.DisableCachingForDefaultArguments.kt Maven / Gradle / Ivy

There is a newer version: 0.9.0-RC.5
Show newest version
package co.touchlab.skie.plugin.defaultarguments

import co.touchlab.skie.plugin.SkieTarget
import co.touchlab.skie.plugin.configuration.skieExtension
import org.gradle.api.Project

fun SkieTarget.disableCachingIfNeeded() {
    if (project.areDefaultArgumentsInCachedLibrariesEnabled) {
        project.extensions.extraProperties.set("kotlin.native.cacheKind.${konanTarget.presetName}", "none")
    }
}

val Project.areDefaultArgumentsInCachedLibrariesEnabled: Boolean
    get() = project.skieExtension.features.defaultArgumentsInExternalLibraries.get()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy