![]() ![]() Of course, in Swift you mostly want to convert it from/to Date, as you don’t want to write your code with Kotlinx_datetime*. Depend on your use case, this may not be a bad approach.Īnother solution is to use the Swift version Kotlinx_datetime* in your APIs. If absent, just return the original converter and dont change its behavior. Check if the annotation is present in annotations If present, wrap the converter and check the response code, throwing an error on failure. So what if you want to pass it from/to a KMM library?įirst solution is very straightforward: we only use kotlinx-datetime in KMM, and in APIs, we use timestamp instead. Use retrofit.(nextRequestBod圜onverternextResponseBod圜onverter)to retrieve the actual converter for the method type. ![]() There is a component kotlinx-datetime that works for both platform in KMM, but it is an actual implementation, i.e.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |