https://kotlinlang.org
Join Slack
With SQLDelight is there any way for a bulk insert beyond a for loop in a transaction? I'm doing th...
w

william

over 4 years ago
With SQLDelight is there any way for a bulk insert beyond a for loop in a transaction? I'm doing this
messageDao.transaction {
    newMessages
        .map { it.toDbMessage(groupId) }
        .forEach(messageDao::insertOrIgnore)
}
and with about 1000 messages its taking 200-300 ms (on an emulator). i imagine a real device might be slightly faster but not an order of magnitude faster. Is there anything else I can do to speed this up? table details in thread
w
l
  • 2
  • 2
  • 976
how would i check if a float number has any non-zero decimal places 1f vs 1.2f
l

liminal

almost 7 years ago
how would i check if a float number has any non-zero decimal places 1f vs 1.2f
l
h
n
  • 3
  • 6
  • 976
Hey all, could somebody assist me with running my Multiplatform app on an actual iPad? It seems to r...
a

Andrew O Hart

over 3 years ago
Hey all, could somebody assist me with running my Multiplatform app on an actual iPad? It seems to run using the simulator, but I keep getting this: ld: framework not found Pods_iosApp clang: error: linker command failed with exit code 1 (use -v to see invocation) When I try to build in xcode
a
k
  • 2
  • 76
  • 975
Hello, there is a way to use KSP with Lombok and Mapstruct?
j

Jerv Norsk

over 2 years ago
Hello, there is a way to use KSP with Lombok and Mapstruct?
j
b
j
  • 3
  • 4
  • 974
Hi , Is there a way to make ModalBottomSheetLayout non dismissable.
w

wintersoldier

almost 3 years ago
Hi , Is there a way to make ModalBottomSheetLayout non dismissable.
w
t
  • 2
  • 12
  • 971
Hey, I'm using koin in an android compose app and pass some parameters to some view model. I assumed...
f

Fabian Vorholt

over 3 years ago
Hey, I'm using koin in an android compose app and pass some parameters to some view model. I assumed that the view model will be recreated every time the parameters change because the remember uses
parameters
as key in
ViewModelComposeExt
:
return remember(qualifier, parameters) {
        scope.getViewModel(qualifier, { owner }, parameters)
    }
But actually it isn't like that. It returns the same view model with old parameters. Is that behavior intended? Am I missing something?
👍 1
f
c
l
  • 3
  • 23
  • 968
Is there a way to get Compose Texts to autodetect clickable links in their text? Looking for somethi...
t

Travis Griggs

about 3 years ago
Is there a way to get Compose Texts to autodetect clickable links in their text? Looking for something like iOS TextView url data detectors basically
t
e
u
  • 3
  • 8
  • 967
Which is a better choice for kotlin, quarkus or micronaut?
i

Iwan Aucamp

over 3 years ago
Which is a better choice for kotlin, quarkus or micronaut?
ktor 11
i
c
+5
  • 7
  • 35
  • 967
hey guys, how to make status bar color same as top app bar color in material 3 in jetpack compose? I...
h

Hristijan

over 2 years ago
hey guys, how to make status bar color same as top app bar color in material 3 in jetpack compose? If i just change it using the systemUiController by reacting to the overlappedFraction from the scaffold state, the animation is janky, I want everything to happen at once, like in the Clock app from Google
h
s
  • 2
  • 5
  • 966
Ok i've got a mix of gradle version/multiplatform version/intelliJ version that is actually working,...
a

Adam Brown

almost 3 years ago
Ok i've got a mix of gradle version/multiplatform version/intelliJ version that is actually working, no one touch anything 😂 except after updating various things, my Android Module now thinks it doesn't have a compose runtime:
IncompatibleComposeRuntimeVersionException: The Compose Compiler requires the Compose Runtime to be on the class path, but none could be found. The compose compiler plugin you are using (version 1.3.2) expects a minimum runtime version of 1.0.0.
Anyone run into this before?
a
l
  • 2
  • 39
  • 966
Previous484950Next

kotlinlang

A modern programming language that makes developers happier.

Powered by