From fb0e3833705437fcf41b54dec913f5deb8e62182 Mon Sep 17 00:00:00 2001 From: Ilya Stepanyuk Date: Sun, 16 Feb 2025 02:31:54 +0300 Subject: [PATCH] Create README.md --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..dca5044 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +[![Maven Central](https://img.shields.io/maven-central/v/io.github.stslex/compiler-plugin)](https://central.sonatype.com/search?namespace=io.github.stslex) + +> Check annotated functions arguments. If they don't change - return last result. +> Functions could be logged. + +import compiler plugin: +```kotlin +dependencies { + implementation("io.github.stslex:compiler-plugin:0.0.1") + kotlinCompilerPluginClasspath("io.github.stslex:compiler-plugin:0.0.1") +} +``` + +in code: +```kotlin +import io.github.stslex.compiler_plugin.DistinctUntilChangeFun + +@DistinctUntilChangeFun +fun setUserName(username: String){ + // function logic +} +```