https://kotlinlang.org
Join Slack
Has anyone embedded CEF or any other browser into their Compose Desktop application I wonder?
s

spierce7

about 3 years ago
Has anyone embedded CEF or any other browser into their Compose Desktop application I wonder?
s
o
+4
  • 6
  • 14
  • 426
Hi guys! i fell in love with http4k for its simplicity. Now i am looking for a dependency injection ...
s

Simon Hilz

over 4 years ago
Hi guys! i fell in love with http4k for its simplicity. Now i am looking for a dependency injection solution for it. Koin seems to be the kool kid in school right now. However i hardly find anyone talking about it in the context of backend/server side of things. i feel like Koin has similar philosophies as http4k has (simplicitly, explicit over implicit, no magic) and might be a good fit here. Code generation things like dagger i do not really like and these sorts of things were the reason why i even started moving away from spring boot/java stack. what are you guys using?
s
d
t
  • 3
  • 9
  • 426
I have a serializable data class that I am using with ktor client ```@Serializable data class Job ( ...
c

Chad Gregory

almost 3 years ago
I have a serializable data class that I am using with ktor client
@Serializable
data class Job (
    val information: JobInformation = JobInformation(),
    val additional: AdditionalInformation = AdditionalInformation(),
    val bom: PersistentList<BOM> = persistentListOf()
)

@Serializable
data class BOM(
    @SerialName("comp_item")
    val compItem: String = "",
    val sequence: String = "",
    @SerialName("comp_qty")
    val compQty: String = "",
    @SerialName("comp_uom")
    val compUom: String = "",
    val operation: String = "",
    val type: String = ""
)
but when ktor client tries to decode the data from the request response I get this error
kotlinx.serialization.json.internal.JsonDecodingException: Expected class kotlinx.serialization.json.JsonObject (Kotlin reflection is not available) as the serialized body of kotlinx.serialization.Polymorphic<PersistentList>, but had class kotlinx.serialization.json.JsonArray (Kotlin reflection is not available)
I understand what the error is saying but I don't know how to fix it.
c
a
  • 2
  • 16
  • 425
Do people pass their ViewModel into their RecyclerView adapter? I always figured that you wouldn't w...
b

blakelee

over 4 years ago
Do people pass their ViewModel into their RecyclerView adapter? I always figured that you wouldn't want to so that you can keep the adapter generic
b
j
+5
  • 7
  • 6
  • 425
I really stuck with this: I need to integrate flyway with the ktor and a custom application.conf fil...
s

Szymon Lipiński

about 6 years ago
I really stuck with this: I need to integrate flyway with the ktor and a custom application.conf file. I have my database connection configured in the application.conf, so I need to have it also use in the flyway when applying migrations... and the place where the conf file is read changes, on my machine is resources/application.conf, on production, who knows, it will be passed as an argument. It looks like a normal configuration, however, it's not really easy to do it.
s
e
+2
  • 4
  • 22
  • 425
Hey there :wave: Is it possible to use a Go library from Kotlin multiplatform code?
s

Severiano Jaramillo

over 1 year ago
Hey there 👋 Is it possible to use a Go library from Kotlin multiplatform code?
s
b
+2
  • 4
  • 8
  • 424
We have a detekt rule against nested block depth. Rather than surpressing it I want to maybe simpli...
c

Colton Idle

over 2 years ago
We have a detekt rule against nested block depth. Rather than surpressing it I want to maybe simplify some things. I'm wondering if two inner ForEach statements can be simplified into 1 somehow? e.g.
outerList.forEach { outerItem ->
    innerList.forEach { innterItem ->
c
s
+5
  • 7
  • 16
  • 424
Hi! I have to use `BottomSheetDialogFragment` together with scrollable column, but I’m experiencing ...
r

Rihards

almost 3 years ago
Hi! I have to use
BottomSheetDialogFragment
together with scrollable column, but I’m experiencing the same issue that is mentioned here. For that reason I’m implementing a workaround to detect vertical drag gestures for top handle of the bottom sheet, but at the moment only compose UI us moving as expected, but not the bottomsheet. Is there a way I can stick the bottomsheet to UI’s top so it’s also moving when surface height is changing? 😕
✅ 1
r
a
  • 2
  • 5
  • 424
Just saw question about "running detekt on a single file" on my notifications. I came here to answer...
g

gammax

over 3 years ago
Just saw question about "running detekt on a single file" on my notifications. I came here to answer, but the message is gone 😅 Anyway, you can use the
--input
arg. More on this here https://detekt.dev/docs/gettingstarted/git-pre-commit-hook
g
b
  • 2
  • 8
  • 424
What is the latest preferred way of dealing with JaCoCo and `@Serializable` classes? I see several S...
k

Klitos Kyriacou

over 3 years ago
What is the latest preferred way of dealing with JaCoCo and
@Serializable
classes? I see several StackOverflow questions and answers that are 3+ years old, and there is a still outstanding issue 961. Has anyone solved the problem satisfactorily?
k
m
t
  • 3
  • 7
  • 424
Previous158159160Next

kotlinlang

A modern programming language that makes developers happier.

Powered by