koin-annotations
koin-annotations copied to clipboard
feat: make @scope repeatable to configure multiple scopes
trafficstars
make @Scope repeatable to configure multiple scopes e.g.
@Scope(MyScope::class)
@Scope(MyAnotherScope::class)
class MyClass(val d : MyDependency)
will generate:
scope<MyScope> {
scoped { MyClass(get()) }
}
scope<MyAnotherScope> {
scoped { MyClass(get()) }
}
isn't it in relation to Scope Archetypes? https://insert-koin.io/docs/reference/koin-android/scope#scope-archetypes-410
isn't it in relation to Scope Archetypes? https://insert-koin.io/docs/reference/koin-android/scope#scope-archetypes-410
Actually, yes. But unfortunately I can't use Koin 4.1.0 and have to use 3.*
let's try to see with more widely this question of scope. Stay tuned in next 2.2