Any thoughts about using App Startup library to in...
# koin
m
Any thoughts about using App Startup library to initialize Koin (instead of Application subclass)? https://proandroiddev.com/app-startup-under-the-hood-with-koin-library-example-380e188568ad
t
Works well 👍
a
Great to see 🙂
s
very aspirational
m
One potential issue with this is that when calling koin’s
androidContext()
function, we pass in the
Context
given by the App Startup library (see
Initializer.create(Context)
). From my initial testing, this appears to be an
Application
instance, but since the signature is
Context
it is not guaranteed. Whereas, when setting up Koin in
Application
subclass, we are guaranteed to have an
Application
instance to pass to
androidContext()