Dagger: start setup

This commit is contained in:
ganfra 2022-12-09 19:27:04 +01:00
parent 32dbaaf836
commit cb92ff5d3b
22 changed files with 290 additions and 4 deletions

1
libraries/daggerscopes/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/build

View file

@ -0,0 +1,7 @@
plugins {
alias(libs.plugins.kotlin.jvm)
}
dependencies {
api(libs.inject)
}

View file

@ -0,0 +1,3 @@
package io.element.android.x.di
abstract class AppScope private constructor()

View file

@ -0,0 +1,3 @@
package io.element.android.x.di
abstract class SessionScope private constructor()

View file

@ -0,0 +1,8 @@
package io.element.android.x.di
import javax.inject.Scope
import kotlin.reflect.KClass
@Scope
@Retention(AnnotationRetention.RUNTIME)
annotation class SingleIn(val clazz: KClass<*>)