add generator for koin definitions

This commit is contained in:
2023-02-22 01:34:42 +06:00
parent 2b76ad0aa9
commit 9c40d7da3d
15 changed files with 404 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
package dev.inmo.micro_utils.koin.annotations
import kotlin.reflect.KClass
@Target(AnnotationTarget.FILE)
@Repeatable
annotation class GenerateKoinDefinition(
val name: String,
val type: KClass<*>,
vararg val typeArgs: KClass<*>,
val nullable: Boolean = true,
val generateSingle: Boolean = true,
val generateFactory: Boolean = true
)