- You only need to have Kotlin and Java 1.8
To install KRef you need to follow these steps:
- Clone the repository:
git clone https://github.com/NKB03/KRef <target_dir>
- Build with gradle:
gradle build
- Publish to maven local to make the library available for other projects:
gradle publishToMavenLocal
- Open in IntelliJ or any other IDE
If any errors occur while installing please feel free to create an issue or write me an e-mail.
To run the tests you IntelliJ and the Kotlin Spek Plugin.
Just the Spec
in package org.nikok.kref
in the test source root and see the results.
Testing via gradle is not supported.
Contributing is very much appreciated. Please feel free to suggest any improvements by creating an issue.
If you have questions about the API or the internals just contact me via e-mail.
- Nikolaus Knop (niko.knop003@gmail.com)
val int by strong(23)
val int by soft(34)
val i by weak(45)
var int by mutableStrong(23)
var int by mutableSoft(34)
var i by mutableWeak(45)
Reference wrappers simplify changing the kind of reference to an object