-
Notifications
You must be signed in to change notification settings - Fork 41
refactor: Preparing core module for Compose support #198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| [versions] | ||
| agp = "8.12.3" | ||
| compose = "1.9.3" | ||
| compose-mini = "0.0.1" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the dependency I mentioned for some compose helpers, repo here: https://github.com/0ffz/compose-mini. I've tried to split things into modules where it makes sense and support all the current targets, the only thing it's necessary for in the core module is a cross platform
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think adding it to val precisionTime: Double get() = nanoTime / 1_000_000_000.0
val nanoTime: Long get() {
val now = Clock.System.now()
return now.epochSeconds * 1_000_000_000L + now.nanosecondsOfSecond
}
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated the implementation to use this and removed the dependency in core module 👍 |
||
| kotlin = "2.3.0" | ||
| kotlin-coroutines = "1.10.2" | ||
| kotlin-serialization = "1.9.0" | ||
|
|
@@ -51,8 +53,11 @@ physx-wasm = { group = "npm", name = "physx-js-webidl", version.ref = "physx-was | |
| box2d-jni = { group = "de.fabmax.box2d-jni", name = "box2d-jni", version.ref = "box2d-jni" } | ||
| box2d-android = { group = "de.fabmax.box2d-jni", name = "box2d-jni-android", version.ref = "box2d-jni" } | ||
| box2d-wasm = { group = "npm", name = "kool-box2d-wasm", version.ref = "box2d-wasm" } | ||
|
|
||
| # wgpu backend | ||
| compose-runtime = { module = "org.jetbrains.compose.runtime:runtime", version.ref = "compose" } | ||
| compose-mini-runtime = { group = "me.dvyy.compose.mini", name = "runtime", version.ref = "compose-mini"} | ||
| compose-mini-modifier = { group = "me.dvyy.compose.mini", name = "modifier", version.ref = "compose-mini" } | ||
| compose-mini-modifier-composed = { group = "me.dvyy.compose.mini", name = "modifier-composed", version.ref = "compose-mini"} | ||
| # wgpu backcend | ||
| wgpu4k = { module = "io.ygdrasil:wgpu4k", version.ref = "wgpu4k" } | ||
| webgpu-descriptors = { module = "io.ygdrasil:webgpu-ktypes-descriptors", version.ref = "webgpu-ktypes" } | ||
| rococoa = { module = "io.ygdrasil:rococoa", version.ref = "rococoa" } | ||
|
|
@@ -71,6 +76,9 @@ plugindep-maven-publish = { group = "com.vanniktech", name = "gradle-maven-publi | |
|
|
||
| [plugins] | ||
| webidl = { id = "de.fabmax.webidl-util", version = "0.10.5" } | ||
| compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" } | ||
| jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose" } | ||
|
|
||
|
|
||
| [bundles] | ||
| lwjgl = ["lwjgl-core", "lwjgl-glfw", "lwjgl-jemalloc", "lwjgl-opengl", "lwjgl-vulkan", "lwjgl-vma", "lwjgl-shaderc", "lwjgl-nfd", "lwjgl-stb", "lwjgl-jawt", "lwjgl-msdfgen"] | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| package de.fabmax.kool | ||
|
|
||
| @RequiresOptIn( | ||
| level = RequiresOptIn.Level.ERROR, | ||
| message = "This is internal Kool API that may lead to unexpected behavior or change without warning." | ||
| ) | ||
| @Target( | ||
| AnnotationTarget.CLASS, | ||
| AnnotationTarget.FUNCTION, | ||
| AnnotationTarget.PROPERTY, | ||
| AnnotationTarget.PROPERTY_GETTER, | ||
| AnnotationTarget.PROPERTY_SETTER, | ||
| ) | ||
| @Retention(AnnotationRetention.BINARY) | ||
| annotation class InternalKoolAPI |
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.