https://kotlinlang.org
Join Slack
Hi i have a strange runtime exception in my android application i employ arrow retrofit call adapter...
t

Tower Guidev2

about 2 years ago
Hi i have a strange runtime exception in my android application i employ arrow retrofit call adapter and can successfully build a release build using proguard which is available on the google play store. that production version of my application employs AGP 7.4.2
t
s
s
  • 3
  • 9
  • 782
I have a Compose Text that I want to update every second, because it shows a remaining time. Is the ...
t

Travis Griggs

over 2 years ago
I have a Compose Text that I want to update every second, because it shows a remaining time. Is the following the right/idiomatic way to express that?
var remaining by remember { mutableStateOf(keyInfo.remaining) }
LaunchedEffect(remaining) {
   delay(1.seconds)
   remaining = keyInfo.remaining
}
SettingsLabel(text = remaining.clockPrinted())
t
e
+2
  • 4
  • 10
  • 782
How do you guys work with LocalDateTime and all its siblings on the Native side? I have models in my...
k

kalpeshp0310

over 2 years ago
How do you guys work with LocalDateTime and all its siblings on the Native side? I have models in my multiplatform app’s common code, with fields with LocalDate type. It’s a pain to create an instance of
Kotlinx_datetimeLocalDate
from Swift, and iOS developers do not feel comfortable working with it.
k
d
  • 2
  • 5
  • 782
I have a pre packaged SQL database. Which has couple of Boolean fields. When I import that DB using...
p

pollux-

almost 5 years ago
I have a pre packaged SQL database. Which has couple of Boolean fields. When I import that DB using Room it's throwing an error staying Pre packaged database has invalid schema I'm guessing problem is that, DB has boolen field type but Room table we can't have Boolean its being used and Integer field. How can I solve this?? Thanks
p
m
  • 2
  • 5
  • 782
What’s the proper way to inject the `CoroutineDispatcher` for `LifecycleCoroutineScope` in productio...
z

zak.taccardi

about 5 years ago
What’s the proper way to inject the
CoroutineDispatcher
for
LifecycleCoroutineScope
in production? Seems it’s hardcoded to
Dispatchers.Main.immediate
and
SupervisorJob
which is something I desire flexibility around https://developer.android.com/topic/libraries/architecture/coroutines#lifecyclescope
z
w
+2
  • 4
  • 117
  • 782
Is there a Kotlin multi-platform library for encoding/decoding JWT? I’m trying to add JWT functional...
a

Andrea Prearo

almost 5 years ago
Is there a Kotlin multi-platform library for encoding/decoding JWT? I’m trying to add JWT functionality in my KMP code and, if possible, I’d like to avoid having to embed platform specific JWT libraries for Android and iOS.
a
s
+2
  • 4
  • 7
  • 781
Hi, can you show me an example of how to use zipOrAccumulate method using coroutines? Just basic acc...
m

Michal Patejko

over 2 years ago
Hi, can you show me an example of how to use zipOrAccumulate method using coroutines? Just basic accumulation of 2/3 eithers and returning lefts (or all lefts merged into single object) if there's any.
m
a
+2
  • 4
  • 10
  • 780
Hi, How I can collect value when my flow emit the same value? Now when I emit Option.Default, printl...
i

Ink

over 1 year ago
Hi, How I can collect value when my flow emit the same value? Now when I emit Option.Default, println doesn't invoke
var option: Option by mutableStateOf(Option.Default)
fun optionsFlow(): Flow<Option> = snapshotFlow { option }
option = Option.Default
launch{
state.optionsFlow().collectLatest{
println(it)
}
}
i
c
z
  • 3
  • 6
  • 779
I'm getting Engine exception when trying to run Kotest tests on JVM: ```LightColorTemperatureViewMod...
l

Lukasz Kalnik

over 3 years ago
I'm getting Engine exception when trying to run Kotest tests on JVM:
LightColorTemperatureViewModelKotest has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
l
  • 1
  • 5
  • 779
Hi guys, how can I add `stickyHeader` in `LazyVerticalGrid` ?
r

Ruben Quadros

over 3 years ago
Hi guys, how can I add
stickyHeader
in
LazyVerticalGrid
?
r
f
c
  • 3
  • 2
  • 778
Previous596061Next

kotlinlang

A modern programming language that makes developers happier.

Powered by