
Facilitates componentization of Compose UI with coroutine-first approach, eliminating Android dependencies. Offers simplified API inspired by Decompose, enhancing UI hierarchy restoration and channel management.
Kotlin Multiplatform library for componentization of Compose UI. The library is based on concepts proposed and implemented by awesome Decompose. The differences are:
Use it only if you know what you do.
In gradle/libs.versions.toml
[versions]
kotlin = "2.0.20"
componental = "0.7"
[libraries]
componental = { module = "de.halfbit:componental", version.ref = "componental" }
componental-compose = { module = "de.halfbit:componental-compose", version.ref = "componental" }
[plugins]
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }Shared code in shared/build.gradle.kts
plugins {
alias(libs.plugins.kotlin.multiplatform)
}
kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.componental)
}
}
}Android code in appAndroid/build.gradle.kts
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
}
dependencies {
api(libs.componental.compose)
}root.publication.gradle.kts
./gradlew clean build publishAllPublicationsToCentralRepositoryX.X-SNAPSHOT version in root.publication.gradle.kts
./gradlew clean build publishToMavenLocalcomponental is exposed as API from componental.compose
Copyright 2024 Sergej Shafarenka, www.halfbit.de
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Kotlin Multiplatform library for componentization of Compose UI. The library is based on concepts proposed and implemented by awesome Decompose. The differences are:
Use it only if you know what you do.
In gradle/libs.versions.toml
[versions]
kotlin = "2.0.20"
componental = "0.7"
[libraries]
componental = { module = "de.halfbit:componental", version.ref = "componental" }
componental-compose = { module = "de.halfbit:componental-compose", version.ref = "componental" }
[plugins]
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }Shared code in shared/build.gradle.kts
plugins {
alias(libs.plugins.kotlin.multiplatform)
}
kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.componental)
}
}
}Android code in appAndroid/build.gradle.kts
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
}
dependencies {
api(libs.componental.compose)
}root.publication.gradle.kts
./gradlew clean build publishAllPublicationsToCentralRepositoryX.X-SNAPSHOT version in root.publication.gradle.kts
./gradlew clean build publishToMavenLocalcomponental is exposed as API from componental.compose
Copyright 2024 Sergej Shafarenka, www.halfbit.de
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.