Dagger: start setup
This commit is contained in:
parent
32dbaaf836
commit
cb92ff5d3b
22 changed files with 290 additions and 4 deletions
1
libraries/daggerscopes/.gitignore
vendored
Normal file
1
libraries/daggerscopes/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/build
|
||||
7
libraries/daggerscopes/build.gradle.kts
Normal file
7
libraries/daggerscopes/build.gradle.kts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
plugins {
|
||||
alias(libs.plugins.kotlin.jvm)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(libs.inject)
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
package io.element.android.x.di
|
||||
|
||||
abstract class AppScope private constructor()
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
package io.element.android.x.di
|
||||
|
||||
abstract class SessionScope private constructor()
|
||||
|
|
@ -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<*>)
|
||||
Loading…
Add table
Add a link
Reference in a new issue