Package-level declarations

Types

Link copied to clipboard
class Android(val folder: File, val pluginPackageName: String, val pluginClassName: String)

Wrapper class with a file instance pointing to the android submodule.

Link copied to clipboard
Link copied to clipboard
data class Config(val dependencies: Dependencies = Dependencies(), val bomVersion: String = klutterBomVersion, val flutterVersion: String? = null, val featureProtobufEnabled: Boolean? = null)
Link copied to clipboard
data class Dependencies(val klutter: String? = null, val klutterUI: String? = null, val squint: String? = null, val embedded: Set<String> = emptySet())
Link copied to clipboard
data class FlutterDistribution(val version: Version, val os: OperatingSystem, val arch: Architecture)
Link copied to clipboard

The full Flutter distribution version in format major.minor.patch.platform.architecture.

Link copied to clipboard
class IOS(val folder: File, val pluginName: String, val pluginClassName: String)

Wrapper class with a path to the root/ios.

Link copied to clipboard
Link copied to clipboard
class Platform(val folder: File, pluginName: String)

Wrapper class with a file instance pointing to the kmp sub-module in root/platform.

Link copied to clipboard

The full Flutter distribution version in format major.minor.patch (platform architecture).

Link copied to clipboard
data class Project(val root: Root, val ios: IOS, val android: Android, val platform: Platform)

A representation of the structure of a project made with the Klutter Framework. Each property of this object represents a folder containing one or more folders and/or files which are in some way used or needed by Klutter.

Link copied to clipboard
data class Pubspec(val name: String? = null, val description: String? = null, val version: String? = null, val flutter: PubspecFlutter? = null)

The parsed pubspec.yaml file.

Link copied to clipboard
data class PubspecFlutter(val plugin: PubspecPlugin?)

flutter: plugin: platforms: android: package: com.example.super_awesome pluginClass: SuperAwesomePlugin ios: pluginClass: SuperAwesomePlugin

Link copied to clipboard
data class PubspecPlugin(val platforms: PubspecPluginPlatforms?)

plugin: platforms: android: package: com.example.super_awesome pluginClass: SuperAwesomePlugin ios: pluginClass: SuperAwesomePlugin

Link copied to clipboard
data class PubspecPluginClass(val pluginPackage: String? = null, val pluginClass: String?)
Link copied to clipboard
data class PubspecPluginPlatforms(val android: PubspecPluginClass?, val ios: PubspecPluginClass?)

platforms: android: package: com.example.super_awesome pluginClass: SuperAwesomePlugin ios: pluginClass: SuperAwesomePlugin

Link copied to clipboard
class Root(val pluginName: String, file: File)
Link copied to clipboard
data class Version(val major: Int, val minor: Int, val patch: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Get current OperatingSystem from System Properties.

Link copied to clipboard
Link copied to clipboard

Generate a unique folder name for this Flutter configuration.

Link copied to clipboard

Dependencies instance which uses GIT for all dependencies.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The version of Klutter Gradle Executable Tool.

Link copied to clipboard

The version of the klutter Pub Plugin.

Link copied to clipboard

The version of the klutter-ui Pub Plugin.

Link copied to clipboard

The root/kradle.env File.

Link copied to clipboard

Path to Klutter projects cache folder which is /.kradle.

Link copied to clipboard

The root/kradle.yaml File.

Link copied to clipboard
const val latestVersionPlaceholder: Int = 9999
Link copied to clipboard
val mapper: ObjectMapper

Mapper to read/write YAML.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Generate a unique display name for this Flutter configuration.

Link copied to clipboard

Pattern to be used to add properties to local/public configuration files (kradle.yaml, kradle.env).

Link copied to clipboard

Path to Klutter projects protoc folder which is kradleHome/.cache/protobuf/protoc.

Link copied to clipboard

Path to SDK folder Flutter which is /.kradle/cache/.

Link copied to clipboard

The version of the squint_json Pub Plugin.

Link copied to clipboard

Pattern to be used to add system properties to local/public configuration files (kradle.yaml, kradle.env).

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun examplePubspecInit(examplePubspecFile: File, rootPubspec: Pubspec, config: Config? = null): File
Link copied to clipboard

Path to Klutter cache folder which is /.kradle/cache.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun File.plugin(pluginName: String): Project
fun String.plugin(pluginName: String): Project
Link copied to clipboard

Try to replace all project properties projectPropertyPattern and return File content.

Link copied to clipboard

Try to replace all system properties systemPropertyPattern and return File content.

Link copied to clipboard
fun rootPubspecInit(pubspecFile: File, pubspec: Pubspec, config: Config? = null): File
Link copied to clipboard
Link copied to clipboard