Closed ArcherEmiya05 closed 4 months ago
If you use kotlinx-datetime
in a KMM project and enable core library desugaring, it will only affect the JVM target. The other targets will use their own implementations in any case, without delegating to the JVM.
What if a feature module that supposed to be a platform agnostic depends on KotlinX DateTime? Does it still need to include desugar library or only on the androidApp module? I am planning to adapt this module to be use as shared/common module for a KMM project.
Only the application must enable the desugaring. Intermediate modules shouldn't do that.
I am in migration of Java 8+ APIs Desugar to KotlinX DateTime for an app that supports SDK 21 to 34, upon reading the README.md with the statement below I was confuse.
Isn't Java 8+ APIs Desugar depends on JVM hence cannot be use for KMM project?