15 lines
358 B
Kotlin
15 lines
358 B
Kotlin
package cash.z.ecc.android.di.annotation
|
|
|
|
import androidx.lifecycle.ViewModel
|
|
import dagger.MapKey
|
|
import kotlin.reflect.KClass
|
|
|
|
@Target(
|
|
AnnotationTarget.FUNCTION,
|
|
AnnotationTarget.PROPERTY_GETTER,
|
|
AnnotationTarget.PROPERTY_SETTER
|
|
)
|
|
@Retention(AnnotationRetention.RUNTIME)
|
|
@MapKey
|
|
annotation class ViewModelKey(val value: KClass<out ViewModel>)
|