-
-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StrictMode violation in Application.onCreate on Android #96
Comments
Fixed for 0.9.2. Please check the |
I'm still seeing the same issue with
|
did you disable the Koin properties loading from assets with |
Hmm no, although I don't see a So, at the moment I'm starting Koin with the following in my Application class:
|
replace your startKoin code with the Android start version: startKoin(
this,
listOf(
appContextModule(this),
frescoModule()
),
loadProperties = false
) |
I've changed my code as above however that doesn't make a difference because the issue is caused by the attempt to load |
Ok. I'll check that. |
Ok. Fixed in |
Thanks, works like a charm |
With StrictMode enabled on Android, Koin v0.9.1 causes a violation due to disk access when initialised from the main thread in
Application.onCreate
. This is caused by the access toClassLoader.getResources
inbindKoinProperties
.StrictMode enabled with the following:
Could a property be added to
startKoin
to disable this initialisation by default as in most instances I assume this file won't exist so the attempted loading would be unnecessary?The text was updated successfully, but these errors were encountered: