Skip to content

carthas/common

Repository files navigation

Carthas Common

Maven Central License: Apache 2.0

Carthas Common is a collection of utilities designed to streamline our development with Compose Multiplatform. It offers shared tools and abstractions to enhance code reuse and maintainability across Android, iOS, desktop, and web platforms.

✨ Features

  • Lightweight MVI base classes and fully object-oriented navigation
  • Several idiomatic DSL extensions for common CMP use cases
  • Modifier.shader implementations for custom SkSL shader application
  • Supports Android, Desktop, iOS, and Web (Wasm) targets

📦 Installation

Requirements

  • In order for your Screen implementations to be able to use the CarthasContent DSL function, you must have Koin set up in your application, with scoped definitions for all your CarthasViewModel implementations. We strongly recommend using the scopedViewModelOf() helper functions that we provide, to ensure that your VM resources are cleared when the VM goes out of scope.

Add the following to your libs.versions.toml file:

[versions]
carthas-common = "0.7.0"

[libraries]
carthas-common = { module = "com.carthas:common", version.ref = "carthas-common" }

Then, include it in your build.gradle.kts:

dependencies {
    implementation(libs.carthas.common)
}

About

Common utilities for Compose Multiplatform development.

Resources

License

Stars

Watchers

Forks

Contributors

Languages