https://kotlinlang.org
Join Slack
Intercepting a request using HttpSend (like in <https://ktor.io/docs/http-send.html>) , what would b...
h

harry248

over 3 years ago
Intercepting a request using HttpSend (like in https://ktor.io/docs/http-send.html) , what would be the recommended way to prevent the request from being sent. Throwing an exception?
h
a
  • 2
  • 9
  • 1072
Has anyone here figured out how to get jacoco to ignore inline function coverage? I’m asking here si...
s

Steven Sherry

over 5 years ago
Has anyone here figured out how to get jacoco to ignore inline function coverage? I’m asking here since Arrow uses inline quite a bit (and is the cause of my uncovered inline woes) and I’m sure other people in this channel have run into it. I don’t really care if it’s “scalable”, we just have arbitrary test coverage metrics in our company and I need to massage out the lack of inline function coverage of the report that ends up getting consumed by sonarqube
s
m
+2
  • 4
  • 20
  • 1071
Is it possible to set a height dynamically on a LazyRow based the largest child it will display?
c

czuckie

almost 3 years ago
Is it possible to set a height dynamically on a LazyRow based the largest child it will display?
c
c
c
  • 3
  • 6
  • 1071
Are there any multiplatform implementations of Android's `BackHandler`?
e

eygraber

almost 2 years ago
Are there any multiplatform implementations of Android's
BackHandler
?
e
p
  • 2
  • 15
  • 1070
Is it possible to use HTML with a compose Multiplatform for a js target? I am trying to build a cros...
h

Hendre Page

about 1 year 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
  • 1069
I need implement animation of lazy column. The every item of lazy column will fast out from the bot...
m

Mathew xu

almost 3 years ago
I need implement animation of lazy column. The every item of lazy column will fast out from the bottom then slow in to the top. It will play the animation when the new item will be added in lazy column, but the existed item will keep still. I try it with animatewith state, but i failed. Does anyone know how to do it. are there some library can do it?. I searched it on GitHub, but failed to find it.
m
c
q
  • 3
  • 8
  • 1069
Hi there, how can I pass a cookie at Ktor client headers? I am trying the below code ```header("Cook...
p

ptsiogas

about 4 years ago
Hi there, how can I pass a cookie at Ktor client headers? I am trying the below code
header("Cookie", cookie)
but Ktor seems to ignore it.
p
a
h
  • 3
  • 17
  • 1068
is it possible to convert a Kotlin `ByteArray` to Swift `Data` without copying every byte?
d

David Stolarsky

over 6 years ago
is it possible to convert a Kotlin
ByteArray
to Swift
Data
without copying every byte?
d
j
  • 2
  • 4
  • 1066
How can I specify a BOM in a multiplatform project? ```kotlin { jvm() android() sourceS...
c

CLOVIS

over 2 years ago
How can I specify a BOM in a multiplatform project?
kotlin {
    jvm()
    android()

    sourceSets {
        val androidMain by getting {
            dependencies {
                implementation(platform(libs.androidx.compose.bom)) // Unresolved reference: platform
                implementation(libs.androidx.compose.material3)
            }
        }
    }
}
c
e
a
  • 3
  • 23
  • 1063
I’ve mostly implemented androidx compose-navigation, but am having issues with using `navController`...
m

Mark

almost 2 years ago
I’ve mostly implemented androidx compose-navigation, but am having issues with using
navController
too soon after cold launch. For example, after force stopping the app and then sharing a file (from e.g. Solid Explorer) to my app, I get:
java.lang.IllegalArgumentException: Cannot navigate to NavDeepLinkRequest{ uri=<android-app://androidx.navigation/foo?uri=><encoded uri> }. Navigation graph has not been set for NavController androidx.navigation.NavHostController@66e3bed.
    at androidx.navigation.NavController.navigate(NavController.kt:1803)
If I stick in an arbitrary length delay then it all works fine. But how to handle this properly?
m
i
  • 2
  • 30
  • 1062
Previous404142Next

kotlinlang

A modern programming language that makes developers happier.

Powered by