https://kotlinlang.org logo
#koin
Title
# koin
s

Sudhanshu Singh

10/20/2023, 10:25 AM
how do I use
context
in constructor with koin-annotation?
j

Jacob Ras

10/20/2023, 10:41 AM
Just use it :-) It seems to be provided by default when you use
androidContext
inside
startKoin
Note: that will be the application context then
s

Sudhanshu Singh

10/20/2023, 10:42 AM
works in single module.. but not in multi module
e: [ksp] --> Missing Definition type 'android.content.Context' for 'app.data.module.provideSqlDriver'. Fix your configuration to define type 'Context'.
a

arnaud.giuliani

10/20/2023, 1:14 PM
yes, with config check we may have this issue. Can you raise an issue on koin-annotations repo @Sudhanshu Singh?
👍 1
7 Views