You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple framework/library designed to make desktop app development easier for Android developers
It is possible to use this both in compose desktop and compose for web, however web support is experimental and may not work at all.
Installation
In build.gradle.kts
apply following plugins:
plugins {
// other plugins
kotlin(PLATFORM) version "1.7.20"// replace platform with jvm or js
id("org.jetbrains.compose") version "1.2.2"
application // Only for desktop
}
add compose dev repo to plugin repositories in settings.gradle.kts
add these dependencies (replace "TAG" with the newest release, alternatively replace with "master-SNAPSHOT" to get the latest commit)
dependencies {
// other dependencies
implementation(compose.PLATFORM) // replace platform with desktop.currentOs for desktop and with "web.core" for web
implementation("com.github.KamilKurde.cdalf:cdalf-PLATFORM:TAG") // replace platform with jvm for desktop, and with js for web
}
Usage
Starting an app
Use invoke method on Application object provided with this framework as a result for main function
example:
funmain() =Application {
// Put yours program code here
}