https://kotlinlang.org
Join Slack
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
  • 1457
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
  • 1449
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
  • 1446
If anyone has been looking for a Rich Text editor composable, I ported a Jetpack compose library som...
a

Adam Brown

over 3 years ago
If anyone has been looking for a Rich Text editor composable, I ported a Jetpack compose library someone made to multiplatform compose (w_ith the original authors blessing_) https://github.com/Wavesonics/richtext-compose-multiplatform it's still pretty early, but I'm continuing to work on it.
πŸ‘ 2
❀️ 4
K 5
πŸ‘πŸ» 1
πŸŽ‰ 8
πŸ‘πŸΎ 1
a
j
+2
  • 4
  • 8
  • 1439
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
  • 1436
Is there an way to mock a function that receives a callback as parameter? For example, assuming that...
i

igorvd

over 6 years ago
Is there an way to mock a function that receives a callback as parameter? For example, assuming that I have an assync operation, and the way to get the result is using an interface as callback. I want to unit test this method, defining responses in this callback. The problem lies in the fact that the callback is declared as anonymous (I will put an example below). Is possible to mock this callback and define its responses using MockK? Here is an example:
class ViewModel {

	fun loadSomeStuff() {
		myObject.asyncOperation(object : Callback {
			//callback methods implementation
		})
	}
}
I know if I change the callback for a parameter in my class, it will be easily mocked. But, in my opinion it doesn't make sense, because it's related to the operation I need in the method. (This example is just for learning purposes, I was trying to teach a colleague about unit tests, and I got stocked in this scenario)
i
h
  • 2
  • 4
  • 1433
Is there any way to disable scroll and clicks on children in a LazyColumn?
u

Utkarsh Tiwari

over 4 years ago
Is there any way to disable scroll and clicks on children in a LazyColumn?
u
a
g
  • 3
  • 5
  • 1426
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
  • 1424
How to make one item in LazyVerticalGrid fill all the parent width ? Scenario: LazyVerticalGrid wit...
a

Akram Bensalem

over 3 years ago
How to make one item in LazyVerticalGrid fill all the parent width ? Scenario: LazyVerticalGrid with diffrent Lists every list should have it own header How I can implement the header to take all the width ?
a
o
c
  • 3
  • 4
  • 1422
Hello, everyone! What is the best way to generate OpenAPI docs basing on Ktor routings (already writ...
a

aazavoykin

almost 3 years ago
Hello, everyone! What is the best way to generate OpenAPI docs basing on Ktor routings (already written)? There`s Ktor OpenAPI Generator (https://github.com/papsign/Ktor-OpenAPI-Generator), but the project seems not very active.
a
c
+3
  • 5
  • 9
  • 1418
Previous212223Next

kotlinlang

A modern programming language that makes developers happier.

Powered by