❌ Cross Library

Cross Library

A zero-purpose library published to demonstrate the ease of the process.

You can take a look at the blog article in the related links for a practical how-to guide.

It is published for Scala 2.13+ and 3.3+ and fully supports Scala.js 1.13.1+ and Scala Native 0.4.14+.

QuickStart

//> using dep dev.toniogela::cross::0.0.2
libraryDependencies ++= Seq(
  "dev.toniogela" %% "cross" % "0.0.2"
)

and then use it like

import dev.toniogela.cross.Platform

// Using Scala 3+ on JVM
Platform.platformAndVersion
// res0: String = "jvm-3"

Platform.platformAndVersion depends on the platform and the Scala version you're using.