https://kotlinlang.org
Join Slack
how do i read a string from a `ByteReadChannel` ? i know there is `.readUTF8Line()` but what if my s...
l

LastExceed

almost 5 years ago
how do i read a string from a
ByteReadChannel
? i know there is
.readUTF8Line()
but what if my string contains newlines ? do i have to convert the string to a bytearray and send that (preceded with its size) or is there a better way ?
l
e
  • 2
  • 5
  • 841
Is there a way to update an object in SqlDelight? `INSERT OR REPLACE` would cause the record to be d...
e

Elka

almost 5 years ago
Is there a way to update an object in SqlDelight?
INSERT OR REPLACE
would cause the record to be deleted and reinserted which might trigger foreignkey updates like ON CASCADE DELETE...
e
k
a
  • 3
  • 9
  • 839
Is it possible to use HTML with a compose Multiplatform for a js target? I am trying to build a cros...
h

Hendre Page

10 months ago
Is it possible to use HTML with a compose Multiplatform for a js target? I am trying to build a cross platform media player so I am using expect/actual to implement a platform specific compose function. I want my js target to use a default html5 audio player tag.. is this possible?
h
h
+2
  • 4
  • 6
  • 838
Is anyone using avro4k to manage their serialisation to Avro for Kafka? How are you getting it to wo...
k

kushalp

over 5 years ago
Is anyone using avro4k to manage their serialisation to Avro for Kafka? How are you getting it to work with the
KafkaAvroDeserializer
? I'm getting the following error:
Unsupported Avro type. Supported types are null, Boolean, Integer, Long, Float, Double, String, byte[] and IndexedRecord
https://github.com/sksamuel/avro4k
k
r
+2
  • 4
  • 21
  • 838
Is there a simple way of accessing the cache directory path from common kotlin code, without passing...
s

Sam

over 2 years ago
Is there a simple way of accessing the cache directory path from common kotlin code, without passing it through from iOS/Android? I want to write some common caching logic that reads and writes from files in the cache directory
s
a
+2
  • 4
  • 12
  • 837
Hey everyone, how can we build native WIndows Apps with the help of Kotlin Multiplatform? I know we ...
s

Shubham Singh

over 2 years ago
Hey everyone, how can we build native WIndows Apps with the help of Kotlin Multiplatform? I know we generally use Compose Desktop for the UI but that is still a JVM application, right? Isn't it different from building native Windows apps? And if it is possible, is there a UI framework for that? I'm expecting to use frameworks like WinUI3 but afaik, it's written in C#
s
j
+2
  • 4
  • 10
  • 836
Hello all, I'm trying to run the tests, but it's giving the following error. ```Cannot inline byteco...
r

Rodrigo Silva

over 2 years ago
Hello all, I'm trying to run the tests, but it's giving the following error.
Cannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option
my config
tasks {
    test { useJUnitPlatform() }
    compileKotlin { kotlinOptions.jvmTarget = "17" }
    ...
}
What am I doing wrong?
r
e
  • 2
  • 4
  • 836
I'm trying to use `LazyColumn` inside a `NestedScrollView`, it works... But the list does not scroll...
j

Jhonatan Sabadi

about 3 years ago
I'm trying to use
LazyColumn
inside a
NestedScrollView
, it works... But the list does not scroll. Is there a way to make it work?
j
k
+2
  • 4
  • 9
  • 835
Is there a way to create a frosted glass effect using Jetpack Compose? My background is dynamic and ...
s

Shivam Dhuria

over 3 years ago
Is there a way to create a frosted glass effect using Jetpack Compose? My background is dynamic and I only want the part behind the card to be blurred. (for versions > android 8) I am trying to make something like this -
s
f
+2
  • 4
  • 4
  • 835
Hello everyone. I am a bit puzzled after I installed the latest version of IntelliJ Idea (2023.2.5),...
m

Marc

over 1 year ago
Hello everyone. I am a bit puzzled after I installed the latest version of IntelliJ Idea (2023.2.5), there is no project template for "kotlin multiplatform" anymore. Is it only available on Android Studio (because it was availble before I had to reinstall my system)?
m
j
+3
  • 5
  • 7
  • 834
Previous525354Next

kotlinlang

A modern programming language that makes developers happier.

Powered by