Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.5 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.5 KB

kotlin-extensions

Build

A simple Kotlin library that adds a few extra extensions on top of the Kotlin stdlib.

📦 Install

The current version of the library is published to the GitHub Package Registry for this repo.

https://github.com/smyrick/kotlin-extensions/packages

⌨️ Usage

This library exposes a few helpful functions that you just need to import. They are mostly Kotlin extensions functions

import dev.smyrick.kotlin.bool.toNonNull

val nullableBoolean: Boolean? = null

// Without helper
if (nullableBoolean == false || nullableBoolean == null) {
  // Do something
}

// With helper
if (nullableBoolean.toNonNull() == false) {
  // Do something
}

👥 Contact

This project is currently maintained soley by @smyrick.

If you need to raise an issue or question about this library, please create an issue here and tag it with the appropiate label.

If you need to contact me directly, please see my contact details on my profile page.

✏️ Contributing

To get started, please fork the repo and checkout a new branch. You can then build the library locally with the Gradle wrapper

./gradlew build

See more info in CONTRIBUTING.md

⚖️ License

This library is licensed under the MIT License