https://kotlinlang.org
Join Slack
Hi, new to KMM. Wondering what the recommended approach to navigation is for a Android/iOS app targe...
s

Smorg

almost 3 years ago
Hi, new to KMM. Wondering what the recommended approach to navigation is for a Android/iOS app target? Is there some kind of library that can be used to handle navigation on both platforms, or is it better to just handle navigation independently on each platform (since navigation is related to UI, and it's better to write UIs independently)?
s
a
+8
  • 10
  • 15
  • 1176
When kapt complains, that it can't find a `tools.jar` (which is correct, because I'm not using Java ...
h

hho

about 4 years ago
When kapt complains, that it can't find a
tools.jar
(which is correct, because I'm not using Java 8 anymore) – what doesn't work then? Any way to suppress that warning (I'm using Maven)?
h
a
m
  • 3
  • 7
  • 1173
```Experimental context receivers are deprecated and will be superseded by context parameters. Pleas...
p

phldavies

12 months ago
>
Experimental context receivers are deprecated and will be superseded by context parameters. Please don't use context receivers. You can either pass parameters explicitly or use members with extensions.  
> 
> See new context parameters proposal: <https://github.com/Kotlin/KEEP/blob/context-parameters/proposals/context-parameters.md>. During the transition period, neither context receivers nor context parameters will be supported. This warning will become an error in future releases.
As a quick straw poll, how are most of us
context-receivers
lovers expecting to handle the migration? 1️⃣ go full ostrich, ignore it, stick to the last kotlin version that supports
context-receivers
and hope we can wait out the kotlin release that enables
context-parameters
2️⃣ stop using
context-receivers
for the time being, revert to
.bind()
et al, or where possible use
Raise<E>
as an extension receiver 😭 find a corner and cry until it all blows over
1️⃣ 5
😭 15
p
k
+3
  • 5
  • 5
  • 1170
Does anybody here use KotlinxSerialization with Retrofit?
c

Chetan Tuteja

about 4 years ago
Does anybody here use KotlinxSerialization with Retrofit?
c
w
  • 2
  • 9
  • 1169
Hello, When I try to make a request on a route that does not exist, instead of receiving a 404 I sy...
j

Jamy

over 2 years ago
Hello, When I try to make a request on a route that does not exist, instead of receiving a 404 I systematically receive a 200 code. Even if I use the StatusPages plugin and I try to modify the behavior of the NotFound status as indicated in the documentation, nothing happens. The 404 code and status are never sent. Do any of you know where this can come from? I confess that I do not see at all where it can come from and I can not isolate the code responsible for this so difficult to send you an example. I specify that the trace marks well that the road is not known:
/, segment:0 -> SUCCESS @ /
    /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET)
    /error, segment:0 -> FAILURE "Selector didn't match" @ /error
Matched routes:
  No results
Route resolve result:
  FAILURE "No matched subtrees found" @ /
j
a
  • 2
  • 15
  • 1166
Is there any plan to support edge-to-edge on iOS and Android platforms under Compose Multiplatform? ...
a

Armond Avanes

over 1 year ago
Is there any plan to support edge-to-edge on iOS and Android platforms under Compose Multiplatform? Or if there is any existing implementation/library, I'd like to know about it.
a
c
a
  • 3
  • 7
  • 1165
Hey there! Is there any way to get the file name in a Kotlin file? This functionality could be helpf...
m

Marc Reichelt

over 3 years ago
Hey there! Is there any way to get the file name in a Kotlin file? This functionality could be helpful with e.g. logging, where the other approaches have drawbacks: • need to manually define tag (manual, can be messed up when filename changes) • or: throw a full
Throwable()
, to only get the file / class name (performance issues) • or: using
reified
to get the class name (will print weird log tags when scope changes (e.g. it will print
CoroutineScope
in some instances))
m
e
+5
  • 7
  • 18
  • 1165
If I have a suspend function that I want to call on a button click event what's the best way to do t...
a

andrewreitz

over 4 years ago
If I have a suspend function that I want to call on a button click event what's the best way to do that? Example
Button(
   onClick = { runit() }
) {
  Text("Run")
}
Where runit is the suspend function. I can put it in a runBlocking, but that locks up the whole UI and seems incorrect in this situation.
a
j
  • 2
  • 4
  • 1165
What's the best way to generate an .aar file from a multiplatform build.gradle file? My iOS targets ...
s

Sylvain Patenaude

over 5 years ago
What's the best way to generate an .aar file from a multiplatform build.gradle file? My iOS targets generate .framework outputs, but I would now like to wrap my android target jar file in an .aar file. Thanks in advance.
s
k
  • 2
  • 33
  • 1165
I keep having `Module with the Main dispatcher is missing. Add dependency providing the Main dispatc...
r

Raphael TEYSSANDIER

about 2 years ago
I keep having
Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core'
on a
jvm
target
r
e
  • 2
  • 9
  • 1156
Previous272829Next

kotlinlang

A modern programming language that makes developers happier.

Powered by