ru.pocketbyte.locolaser.ConfigResourceBuilder+GoogleSheet.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resource-googlesheet Show documentation
Show all versions of resource-googlesheet Show documentation
Implementation of source for LocoLaser tool to work with Google Sheets.
package ru.pocketbyte.locolaser
import ru.pocketbyte.locolaser.config.ResourcesSetConfigBuilder
import ru.pocketbyte.locolaser.google.GoogleSheetResourcesConfigBuilder
/**
* Create and configure Google Sheet resources config.
*/
fun ResourcesSetConfigBuilder.googleSheet(action: GoogleSheetResourcesConfigBuilder.() -> Unit) {
add(GoogleSheetResourcesConfigBuilder(), action)
}
/**
* Create and configure Google Sheet resources config.
*/
@Deprecated(
message = "This extension is deprecated. Use `googleSheet` instead.",
replaceWith = ReplaceWith("googleSheet(action)")
)
fun ResourcesSetConfigBuilder.googlesheet(action: GoogleSheetResourcesConfigBuilder.() -> Unit) {
add(GoogleSheetResourcesConfigBuilder(), action)
}