Util is the non-android common utility library for all of Dairy.

Features:

  • Type safe units system
  • Cells, boxed references that are also observable, and amazing for delegation in kotlin

Installation:

Core and Sinister contain an installation of Util, but you may wish to install a custom version of it.

  1. Repository

This only needs to be done once, if you already have this, no need to add it again.

Add

repositories {
	maven {
		url "https://repo.dairy.foundation/releases"
	}
}

To TeamCode’s build.gradle, above dependencies.

  1. Implementation

Add the newest version of Util found here to the dependencies block:

dependencies {
	// ...
	implementation "dev.frozenmilk.dairy:Util:<MAJ.MIN.ENG>"
	// ...
}

The repo will give you the line to add.

  1. Sync

Run a gradle sync.