Sean Proctor
07/13/2022, 12:49 AMxxfast
07/13/2022, 1:01 AMcommonMain
anyways. commonMain
is only for pure-kotlin (jvm-free)xxfast
07/13/2022, 1:03 AM//commonMain
expect class Random
//jvmMain
actual typealias Random = java.util.Random
//androidMain
actual typealias Random = java.util.Random
keep in mind, that jvm and android are two different targets and the Random
above may not be the sameSean Proctor
07/13/2022, 1:04 AMSean Proctor
07/13/2022, 1:07 AMephemient
07/13/2022, 1:37 AMactual
only once. then using that a commonMain
dependency in your JVM+Android project, you'll have the same actual in bothSean Proctor
07/13/2022, 2:28 AMephemient
07/13/2022, 2:29 AMSean Proctor
07/13/2022, 2:31 AM