koin-annotations icon indicating copy to clipboard operation
koin-annotations copied to clipboard

feat: make @scope repeatable to configure multiple scopes

Open oraz opened this issue 7 months ago • 3 comments
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()) } 
}

oraz avatar Apr 04 '25 19:04 oraz

isn't it in relation to Scope Archetypes? https://insert-koin.io/docs/reference/koin-android/scope#scope-archetypes-410

arnaudgiuliani avatar Jun 10 '25 14:06 arnaudgiuliani

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.*

oraz avatar Jun 12 '25 15:06 oraz

let's try to see with more widely this question of scope. Stay tuned in next 2.2

arnaudgiuliani avatar Jul 11 '25 14:07 arnaudgiuliani