|
|
@@ -0,0 +1,14 @@
|
|
|
+package com.mrozon.core_api.viewmodel
|
|
|
+
|
|
|
+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>)
|