https://kotlinlang.org
Join Slack
Hi, does anyone know how to solve "No such module composeApp" error
s

Saul

over 1 year ago
Hi, does anyone know how to solve "No such module composeApp" error
s
p
  • 2
  • 6
  • 1453
Compose for Web on Canvas/Skia/Wasm: I have a simple function `BrowserViewportWindow` for the initia...
o

Oliver.O

about 3 years ago
Compose for Web on Canvas/Skia/Wasm: I have a simple function
BrowserViewportWindow
for the initial window. It is easy to use, supports resizing, fills the entire browser viewport, sets the window title correctly and does not require a stylesheet. Inspired by code in @Tlaster's PreCompose. If you want to try: Code in 🧵
šŸ‘šŸ¾ 1
šŸ‘ 11
o
d
+12
  • 14
  • 59
  • 1449
I am trying to setup KSP in the Multiplatform project (for Android and iOS). I've let the Android St...
p

Pavel Lahoda

over 2 years ago
I am trying to setup KSP in the Multiplatform project (for Android and iOS). I've let the Android Studio to create a default multiplatform project, then added new module ksp with my ksp processor (taking it straight from another project, where it worked as expected). I have the META-INF.services SymbolProcessorProvider file defined. However, when I add following into the gradle file of my shared module :
add("kspAndroid", project(":ksp"))
I am getting an error:
Task :shared:kspDebugKotlinAndroid FAILED
e: [ksp] No providers found in processor classpath.
Not sure where the info about "debugKotlinAndroid" is comming from, there is no such target nor module in the project. When I replace the dependencies with:
add("kspIosX64", project(":ksp"))
The project make works, but the ksp processor is not invoked. I would try to put the dependencies into the individual modules for both platforms, but this is not possible as there is no gradle file on the iOS platform. Anybody has a success with setting up KSP with Android and iOS multiplatform project? Any idea what I might be doing wrong?
p
j
  • 2
  • 2
  • 1446
what do you guys use to persist data in compose multiplatform? is there some library that does datas...
f

Fudge

over 1 year ago
what do you guys use to persist data in compose multiplatform? is there some library that does datastore on android, local storage on web, etc
f
k
+3
  • 5
  • 16
  • 1443
Has anyone tried measuring the size increase on a Compose multiplatform app? I built a one-screen sa...
j

Jacob Ras

about 2 years ago
Has anyone tried measuring the size increase on a Compose multiplatform app? I built a one-screen sample app that loads a list of cat pictures and shows them in a list. Clicking one enlarges it. I built it native (SwiftUI on iOS), KMP (Compose) and in Flutter to compare the three. On Android I'm seeing expected results (available in repo below). On iOS however, the size increase seems excessive. A thinned release build: native 1.7 MB, Compose: 24.8 MB, Flutter 48.1 MB. Debug build for simulator shows a similar ratio (4.6 / 57.6 / 91.8 MB). I don't think the Compose build is supposed to be that big, since I'm just using a couple of components. Please correct me if I'm wrong! šŸ™ I have one guess: that the library isn't being stripped. I tried opening up the iOS archive without any luck (only binary files, didn't understand much of it 😬) All code + Android comparison results: https://github.com/jacobras/flutter-vs-native-vs-kmp Feel free to play around with it.
😮 2
šŸ‘ 6
j
p
+4
  • 6
  • 13
  • 1439
I upgraded the Kotest version from <kotest.version>4.6.4</kotest.version> to <kotest....
r

Rajkumar Singh

almost 4 years ago
I upgraded the Kotest version from <kotest.version>4.6.4</kotest.version> to <kotest.version>5.1.0</kotest.version> in my maven pom. and now I'm getting the following error. this is a spring boot project with 100% Kotlin.
r
t
  • 2
  • 14
  • 1437
How do I cast a json field to a string in exposed DSL (using postgres db)?
d

dave08

about 4 years ago
How do I cast a json field to a string in exposed DSL (using postgres db)?
d
b
t
  • 3
  • 11
  • 1436
I'm trying to enable context receivers in a multiplatform project. It works for the JVM module if I ...
d

diesieben07

about 3 years ago
I'm trying to enable context receivers in a multiplatform project. It works for the JVM module if I do
kotlinOptions.freeCompilerArgs += listOf("-Xcontext-receivers")
in the JVM compilation. But I don't know how to do it for the common module, since it does not seem to have a compilation. The IDE keeps reporting "The feature "context receivers" is experimental and should be enabled explicitly" in common code.
d
e
  • 2
  • 2
  • 1434
What’s the best way to get the ā€œcurrent scopeā€ for a suspend function? In other words, `suspend fun ...
s

sam

about 6 years ago
What’s the best way to get the ā€œcurrent scopeā€ for a suspend function? In other words,
suspend fun foo() { async { ... } }
. I’d like to use async inside foo, and inherit from whatever scope foo was called with.
s
w
o
  • 3
  • 26
  • 1434
Which database is recommend to use in a compose-desktop proy?
l

Luis Alonso Ato Neyra

over 3 years ago
Which database is recommend to use in a compose-desktop proy?
l
a
+2
  • 4
  • 4
  • 1423
Previous202122Next

kotlinlang

A modern programming language that makes developers happier.

Powered by